From 9ebb684769f616450ede4a1043a4a3b48d7f56ed Mon Sep 17 00:00:00 2001 From: Urhengulas Date: Fri, 3 Feb 2023 22:36:33 +0100 Subject: [PATCH 1/2] Enable `ftdi` feature of `probe-rs` It's hiddeen behind the `tfdi` feature. --- Cargo.lock | 13 +++++++++++++ Cargo.toml | 3 +++ 2 files changed, 16 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index eb296953..1d0fc71e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -513,6 +513,18 @@ version = "0.2.139" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79" +[[package]] +name = "libftdi1-sys" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ff6928872c7d13bec3c8a60c4c92f41f6252f3369b7552a5b4f9c90c8ba2338" +dependencies = [ + "cfg-if", + "libc", + "pkg-config", + "vcpkg", +] + [[package]] name = "libusb1-sys" version = "0.6.4" @@ -716,6 +728,7 @@ dependencies = [ "jaylink", "jep106", "kmp", + "libftdi1-sys", "num-traits", "object", "once_cell", diff --git a/Cargo.toml b/Cargo.toml index 2e08a6d0..226ba757 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -37,3 +37,6 @@ pretty_assertions = "1" rstest = { version = "0.16", default-features = false } nix = "0.26" serial_test = { version = "1", default-features = false } + +[features] +ftdi = ["probe-rs/ftdi"] From 5f9c1c821a709d1af746c7089c79c1c7be5f873f Mon Sep 17 00:00:00 2001 From: Urhengulas Date: Tue, 7 Feb 2023 12:00:03 +0100 Subject: [PATCH 2/2] Update `CHANGELOG.md` --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b93e4372..46d7b000 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,11 +7,13 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p ## [Unreleased] - [#384] Satisfy clippy +- [#381] Add feature `ftdi` to enable `ftdi` debuggers - [#380] Add `--erase-all` flag - [#379] Update to `probe-rs v0.17` - [#378] Update to `probe-rs v0.16` [#384]: https://github.com/knurling-rs/probe-run/pull/384 +[#381]: https://github.com/knurling-rs/probe-run/pull/381 [#380]: https://github.com/knurling-rs/probe-run/pull/380 [#379]: https://github.com/knurling-rs/probe-run/pull/379 [#378]: https://github.com/knurling-rs/probe-run/pull/378