From 3f2a0b3a7ade4c2057fecf12c21df9dfcdadd49e Mon Sep 17 00:00:00 2001 From: gnxlxnxx Date: Sat, 5 Feb 2022 19:08:19 +0100 Subject: [PATCH] Update dfu-libusb this partially fixes the problem with the gd32vf103 (every second time flashing the chip works...) --- Cargo.lock | 71 ++++-------------------------------------------------- Cargo.toml | 5 +--- 2 files changed, 6 insertions(+), 70 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 47e47ff..e977277 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -35,12 +35,6 @@ dependencies = [ "winapi", ] -[[package]] -name = "anyhow" -version = "1.0.52" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84450d0b4a8bd1ba4144ce8ce718fbc5d071358b1e5384bace6536b3d1f2d5b3" - [[package]] name = "atty" version = "0.2.14" @@ -166,24 +160,11 @@ dependencies = [ "winapi", ] -[[package]] -name = "console" -version = "0.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a28b32d32ca44b70c3e4acd7db1babf555fa026e385fb95f18028f88848b3c31" -dependencies = [ - "encode_unicode", - "libc", - "once_cell", - "terminal_size", - "winapi", -] - [[package]] name = "dfu-core" -version = "0.1.0" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2ad086a5a9b918afe8423e8a858998b48cdd3fceb0f67ce20eab7bc46d8b6ee" +checksum = "3b82ffc1790e4af9371dbc3399c6c068a3ee506357632e21eb7111df199c59f3" dependencies = [ "bytes", "displaydoc", @@ -192,15 +173,13 @@ dependencies = [ [[package]] name = "dfu-libusb" -version = "0.1.0" -source = "git+https://github.com/dfu-rs/dfu-libusb.git?rev=84d05c366671bc2608c8d2b68fe79a67a327d3a3#84d05c366671bc2608c8d2b68fe79a67a327d3a3" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c2092d59a31cc15f8e9a916ff6b020a0fe794b1ec8626d08eefeb7ad2bcb8f7" dependencies = [ - "anyhow", "dfu-core", - "indicatif", "libusb1-sys", "rusb", - "structopt", "thiserror", ] @@ -215,12 +194,6 @@ dependencies = [ "syn", ] -[[package]] -name = "encode_unicode" -version = "0.3.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a357d28ed41a50f9c765dbfe56cbc04a64e53e5fc58ba79fbc34c10ef3df831f" - [[package]] name = "env_logger" version = "0.6.2" @@ -306,18 +279,6 @@ dependencies = [ "quick-error", ] -[[package]] -name = "indicatif" -version = "0.16.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d207dc617c7a380ab07ff572a6e52fa202a2a8f355860ac9c38e23f8196be1b" -dependencies = [ - "console", - "lazy_static", - "number_prefix", - "regex", -] - [[package]] name = "lazy_static" version = "1.4.0" @@ -392,12 +353,6 @@ dependencies = [ "autocfg", ] -[[package]] -name = "number_prefix" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "830b246a0e5f20af87141b25c173cd1b609bd7779a4617d6ec582abaf90870f3" - [[package]] name = "object" version = "0.27.1" @@ -407,12 +362,6 @@ dependencies = [ "memchr", ] -[[package]] -name = "once_cell" -version = "1.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da32515d9f6e6e489d7bc9d84c71b060db7247dc035bbe44eac88cf87486d8d5" - [[package]] name = "pkg-config" version = "0.3.22" @@ -625,16 +574,6 @@ dependencies = [ "winapi-util", ] -[[package]] -name = "terminal_size" -version = "0.1.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "633c1a546cee861a1a6d0dc69ebeca693bf4296661ba7852b9d21d159e0506df" -dependencies = [ - "libc", - "winapi", -] - [[package]] name = "textwrap" version = "0.11.0" diff --git a/Cargo.toml b/Cargo.toml index 0d765e3..6c54876 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,7 +22,4 @@ cargo-project = "0.2.4" structopt = "0.3.2" maplit = "1.0.2" log = "0.4.6" - -[dependencies.dfu-libusb] -git = "https://github.com/dfu-rs/dfu-libusb.git" -rev = "84d05c366671bc2608c8d2b68fe79a67a327d3a3" +dfu-libusb = "0.2.0"