Commit ·
03d64cc
1
Parent(s): 4ee114e
Use bitvec v.1+ instead of bitvec v0.22.3 which is broken
Browse files- Cargo.lock +37 -30
- blflash/Cargo.toml +2 -2
- blflash/src/image/partition.rs +1 -1
Cargo.lock
CHANGED
|
@@ -75,9 +75,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
|
|
| 75 |
|
| 76 |
[[package]]
|
| 77 |
name = "bitvec"
|
| 78 |
-
version = "0.
|
| 79 |
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 80 |
-
checksum = "
|
| 81 |
dependencies = [
|
| 82 |
"funty",
|
| 83 |
"radium",
|
|
@@ -246,9 +246,9 @@ dependencies = [
|
|
| 246 |
|
| 247 |
[[package]]
|
| 248 |
name = "darling"
|
| 249 |
-
version = "0.
|
| 250 |
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 251 |
-
checksum = "
|
| 252 |
dependencies = [
|
| 253 |
"darling_core",
|
| 254 |
"darling_macro",
|
|
@@ -256,9 +256,9 @@ dependencies = [
|
|
| 256 |
|
| 257 |
[[package]]
|
| 258 |
name = "darling_core"
|
| 259 |
-
version = "0.
|
| 260 |
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 261 |
-
checksum = "
|
| 262 |
dependencies = [
|
| 263 |
"fnv",
|
| 264 |
"ident_case",
|
|
@@ -270,9 +270,9 @@ dependencies = [
|
|
| 270 |
|
| 271 |
[[package]]
|
| 272 |
name = "darling_macro"
|
| 273 |
-
version = "0.
|
| 274 |
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 275 |
-
checksum = "
|
| 276 |
dependencies = [
|
| 277 |
"darling_core",
|
| 278 |
"quote",
|
|
@@ -281,9 +281,9 @@ dependencies = [
|
|
| 281 |
|
| 282 |
[[package]]
|
| 283 |
name = "deku"
|
| 284 |
-
version = "0.
|
| 285 |
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 286 |
-
checksum = "
|
| 287 |
dependencies = [
|
| 288 |
"bitvec",
|
| 289 |
"deku_derive",
|
|
@@ -291,9 +291,9 @@ dependencies = [
|
|
| 291 |
|
| 292 |
[[package]]
|
| 293 |
name = "deku_derive"
|
| 294 |
-
version = "0.
|
| 295 |
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 296 |
-
checksum = "
|
| 297 |
dependencies = [
|
| 298 |
"darling",
|
| 299 |
"proc-macro-crate",
|
|
@@ -370,9 +370,9 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
|
|
| 370 |
|
| 371 |
[[package]]
|
| 372 |
name = "funty"
|
| 373 |
-
version = "
|
| 374 |
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 375 |
-
checksum = "
|
| 376 |
|
| 377 |
[[package]]
|
| 378 |
name = "generic-array"
|
|
@@ -528,9 +528,9 @@ dependencies = [
|
|
| 528 |
|
| 529 |
[[package]]
|
| 530 |
name = "once_cell"
|
| 531 |
-
version = "1.
|
| 532 |
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 533 |
-
checksum = "
|
| 534 |
|
| 535 |
[[package]]
|
| 536 |
name = "opaque-debug"
|
|
@@ -588,10 +588,11 @@ checksum = "e280fbe77cc62c91527259e9442153f4688736748d24660126286329742b4c6c"
|
|
| 588 |
|
| 589 |
[[package]]
|
| 590 |
name = "proc-macro-crate"
|
| 591 |
-
version = "1.
|
| 592 |
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 593 |
-
checksum = "
|
| 594 |
dependencies = [
|
|
|
|
| 595 |
"thiserror",
|
| 596 |
"toml 0.5.8",
|
| 597 |
]
|
|
@@ -622,27 +623,27 @@ dependencies = [
|
|
| 622 |
|
| 623 |
[[package]]
|
| 624 |
name = "proc-macro2"
|
| 625 |
-
version = "1.0.
|
| 626 |
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 627 |
-
checksum = "
|
| 628 |
dependencies = [
|
| 629 |
-
"unicode-
|
| 630 |
]
|
| 631 |
|
| 632 |
[[package]]
|
| 633 |
name = "quote"
|
| 634 |
-
version = "1.0.
|
| 635 |
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 636 |
-
checksum = "
|
| 637 |
dependencies = [
|
| 638 |
"proc-macro2",
|
| 639 |
]
|
| 640 |
|
| 641 |
[[package]]
|
| 642 |
name = "radium"
|
| 643 |
-
version = "0.
|
| 644 |
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 645 |
-
checksum = "
|
| 646 |
|
| 647 |
[[package]]
|
| 648 |
name = "regex"
|
|
@@ -799,13 +800,13 @@ dependencies = [
|
|
| 799 |
|
| 800 |
[[package]]
|
| 801 |
name = "syn"
|
| 802 |
-
version = "1.0.
|
| 803 |
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 804 |
-
checksum = "
|
| 805 |
dependencies = [
|
| 806 |
"proc-macro2",
|
| 807 |
"quote",
|
| 808 |
-
"unicode-
|
| 809 |
]
|
| 810 |
|
| 811 |
[[package]]
|
|
@@ -969,6 +970,12 @@ version = "1.15.0"
|
|
| 969 |
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 970 |
checksum = "dcf81ac59edc17cc8697ff311e8f5ef2d99fcbd9817b34cec66f90b6c3dfd987"
|
| 971 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 972 |
[[package]]
|
| 973 |
name = "unicode-segmentation"
|
| 974 |
version = "1.8.0"
|
|
@@ -1032,9 +1039,9 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
|
|
| 1032 |
|
| 1033 |
[[package]]
|
| 1034 |
name = "wyz"
|
| 1035 |
-
version = "0.
|
| 1036 |
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1037 |
-
checksum = "
|
| 1038 |
dependencies = [
|
| 1039 |
"tap",
|
| 1040 |
]
|
|
|
|
| 75 |
|
| 76 |
[[package]]
|
| 77 |
name = "bitvec"
|
| 78 |
+
version = "1.0.1"
|
| 79 |
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 80 |
+
checksum = "1bc2832c24239b0141d5674bb9174f9d68a8b5b3f2753311927c172ca46f7e9c"
|
| 81 |
dependencies = [
|
| 82 |
"funty",
|
| 83 |
"radium",
|
|
|
|
| 246 |
|
| 247 |
[[package]]
|
| 248 |
name = "darling"
|
| 249 |
+
version = "0.14.2"
|
| 250 |
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 251 |
+
checksum = "b0dd3cd20dc6b5a876612a6e5accfe7f3dd883db6d07acfbf14c128f61550dfa"
|
| 252 |
dependencies = [
|
| 253 |
"darling_core",
|
| 254 |
"darling_macro",
|
|
|
|
| 256 |
|
| 257 |
[[package]]
|
| 258 |
name = "darling_core"
|
| 259 |
+
version = "0.14.2"
|
| 260 |
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 261 |
+
checksum = "a784d2ccaf7c98501746bf0be29b2022ba41fd62a2e622af997a03e9f972859f"
|
| 262 |
dependencies = [
|
| 263 |
"fnv",
|
| 264 |
"ident_case",
|
|
|
|
| 270 |
|
| 271 |
[[package]]
|
| 272 |
name = "darling_macro"
|
| 273 |
+
version = "0.14.2"
|
| 274 |
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 275 |
+
checksum = "7618812407e9402654622dd402b0a89dff9ba93badd6540781526117b92aab7e"
|
| 276 |
dependencies = [
|
| 277 |
"darling_core",
|
| 278 |
"quote",
|
|
|
|
| 281 |
|
| 282 |
[[package]]
|
| 283 |
name = "deku"
|
| 284 |
+
version = "0.15.1"
|
| 285 |
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 286 |
+
checksum = "c3d631ba36587888e2f176cda075d73971c504283efd7d0112997a3fd02372c0"
|
| 287 |
dependencies = [
|
| 288 |
"bitvec",
|
| 289 |
"deku_derive",
|
|
|
|
| 291 |
|
| 292 |
[[package]]
|
| 293 |
name = "deku_derive"
|
| 294 |
+
version = "0.15.1"
|
| 295 |
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 296 |
+
checksum = "9009099da9734d3dc49ce9c8c7f9b12905612c84c6dd4b4c075455743e47840d"
|
| 297 |
dependencies = [
|
| 298 |
"darling",
|
| 299 |
"proc-macro-crate",
|
|
|
|
| 370 |
|
| 371 |
[[package]]
|
| 372 |
name = "funty"
|
| 373 |
+
version = "2.0.0"
|
| 374 |
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 375 |
+
checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c"
|
| 376 |
|
| 377 |
[[package]]
|
| 378 |
name = "generic-array"
|
|
|
|
| 528 |
|
| 529 |
[[package]]
|
| 530 |
name = "once_cell"
|
| 531 |
+
version = "1.17.0"
|
| 532 |
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 533 |
+
checksum = "6f61fba1741ea2b3d6a1e3178721804bb716a68a6aeba1149b5d52e3d464ea66"
|
| 534 |
|
| 535 |
[[package]]
|
| 536 |
name = "opaque-debug"
|
|
|
|
| 588 |
|
| 589 |
[[package]]
|
| 590 |
name = "proc-macro-crate"
|
| 591 |
+
version = "1.2.1"
|
| 592 |
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 593 |
+
checksum = "eda0fc3b0fb7c975631757e14d9049da17374063edb6ebbcbc54d880d4fe94e9"
|
| 594 |
dependencies = [
|
| 595 |
+
"once_cell",
|
| 596 |
"thiserror",
|
| 597 |
"toml 0.5.8",
|
| 598 |
]
|
|
|
|
| 623 |
|
| 624 |
[[package]]
|
| 625 |
name = "proc-macro2"
|
| 626 |
+
version = "1.0.49"
|
| 627 |
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 628 |
+
checksum = "57a8eca9f9c4ffde41714334dee777596264c7825420f521abc92b5b5deb63a5"
|
| 629 |
dependencies = [
|
| 630 |
+
"unicode-ident",
|
| 631 |
]
|
| 632 |
|
| 633 |
[[package]]
|
| 634 |
name = "quote"
|
| 635 |
+
version = "1.0.23"
|
| 636 |
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 637 |
+
checksum = "8856d8364d252a14d474036ea1358d63c9e6965c8e5c1885c18f73d70bff9c7b"
|
| 638 |
dependencies = [
|
| 639 |
"proc-macro2",
|
| 640 |
]
|
| 641 |
|
| 642 |
[[package]]
|
| 643 |
name = "radium"
|
| 644 |
+
version = "0.7.0"
|
| 645 |
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 646 |
+
checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09"
|
| 647 |
|
| 648 |
[[package]]
|
| 649 |
name = "regex"
|
|
|
|
| 800 |
|
| 801 |
[[package]]
|
| 802 |
name = "syn"
|
| 803 |
+
version = "1.0.107"
|
| 804 |
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 805 |
+
checksum = "1f4064b5b16e03ae50984a5a8ed5d4f8803e6bc1fd170a3cda91a1be4b18e3f5"
|
| 806 |
dependencies = [
|
| 807 |
"proc-macro2",
|
| 808 |
"quote",
|
| 809 |
+
"unicode-ident",
|
| 810 |
]
|
| 811 |
|
| 812 |
[[package]]
|
|
|
|
| 970 |
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 971 |
checksum = "dcf81ac59edc17cc8697ff311e8f5ef2d99fcbd9817b34cec66f90b6c3dfd987"
|
| 972 |
|
| 973 |
+
[[package]]
|
| 974 |
+
name = "unicode-ident"
|
| 975 |
+
version = "1.0.6"
|
| 976 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 977 |
+
checksum = "84a22b9f218b40614adcb3f4ff08b703773ad44fa9423e4e0d346d5db86e4ebc"
|
| 978 |
+
|
| 979 |
[[package]]
|
| 980 |
name = "unicode-segmentation"
|
| 981 |
version = "1.8.0"
|
|
|
|
| 1039 |
|
| 1040 |
[[package]]
|
| 1041 |
name = "wyz"
|
| 1042 |
+
version = "0.5.1"
|
| 1043 |
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1044 |
+
checksum = "05f360fc0b24296329c78fda852a1e9ae82de9cf7b27dae4b7f62f118f77b9ed"
|
| 1045 |
dependencies = [
|
| 1046 |
"tap",
|
| 1047 |
]
|
blflash/Cargo.toml
CHANGED
|
@@ -24,7 +24,7 @@ thiserror = "1.0.22"
|
|
| 24 |
indicatif = "0.16.0"
|
| 25 |
log = "0.4.11"
|
| 26 |
env_logger = "0.8.2"
|
| 27 |
-
deku = "0.
|
| 28 |
byteorder = "1.3.4"
|
| 29 |
sha2 = "0.9.2"
|
| 30 |
structopt = { version = "0.3.21", features = ["paw"] }
|
|
@@ -32,4 +32,4 @@ paw = "1.0.0"
|
|
| 32 |
crc = "1.8.1"
|
| 33 |
hex = "0.4.2"
|
| 34 |
parse_int = "0.5.0"
|
| 35 |
-
bitvec = "0.
|
|
|
|
| 24 |
indicatif = "0.16.0"
|
| 25 |
log = "0.4.11"
|
| 26 |
env_logger = "0.8.2"
|
| 27 |
+
deku = "0.15.1"
|
| 28 |
byteorder = "1.3.4"
|
| 29 |
sha2 = "0.9.2"
|
| 30 |
structopt = { version = "0.3.21", features = ["paw"] }
|
|
|
|
| 32 |
crc = "1.8.1"
|
| 33 |
hex = "0.4.2"
|
| 34 |
parse_int = "0.5.0"
|
| 35 |
+
bitvec = "1.0.1"
|
blflash/src/image/partition.rs
CHANGED
|
@@ -57,7 +57,7 @@ impl PartitionCfg {
|
|
| 57 |
}
|
| 58 |
|
| 59 |
impl Entry {
|
| 60 |
-
fn write_name(name: &str, output: &mut BitVec<
|
| 61 |
if name.len() > 8 {
|
| 62 |
return Err(DekuError::Unexpected("name too long".to_string()));
|
| 63 |
}
|
|
|
|
| 57 |
}
|
| 58 |
|
| 59 |
impl Entry {
|
| 60 |
+
fn write_name(name: &str, output: &mut BitVec<u8, Msb0>) -> Result<(), DekuError> {
|
| 61 |
if name.len() > 8 {
|
| 62 |
return Err(DekuError::Unexpected("name too long".to_string()));
|
| 63 |
}
|