lol

Merge pull request #188005 from astrobeastie/cargo-hf2

cargo-hf2: init at 0.3.3

authored by

Stanisław Pitucha and committed by
GitHub
21d1461e 187ee8ee

+840
+9
maintainers/maintainer-list.nix
··· 1241 1241 githubId = 12923; 1242 1242 name = "Astro"; 1243 1243 }; 1244 + astrobeastie = { 1245 + email = "fischervincent98@gmail.com"; 1246 + github = "astrobeastie"; 1247 + githubId = 26362368; 1248 + name = "Vincent Fischer"; 1249 + keys = [{ 1250 + fingerprint = "BF47 81E1 F304 1ADF 18CE C401 DE16 C7D1 536D A72F"; 1251 + }]; 1252 + }; 1244 1253 astsmtl = { 1245 1254 email = "astsmtl@yandex.ru"; 1246 1255 github = "astsmtl";
+789
pkgs/development/tools/rust/cargo-hf2/add-cargo-lock.patch
··· 1 + diff --git a/Cargo.lock b/Cargo.lock 2 + new file mode 100644 3 + index 0000000..c249e21 4 + --- /dev/null 5 + +++ b/Cargo.lock 6 + @@ -0,0 +1,783 @@ 7 + +# This file is automatically @generated by Cargo. 8 + +# It is not intended for manual editing. 9 + +version = 3 10 + + 11 + +[[package]] 12 + +name = "addr2line" 13 + +version = "0.17.0" 14 + +source = "registry+https://github.com/rust-lang/crates.io-index" 15 + +checksum = "b9ecd88a8c8378ca913a680cd98f0f13ac67383d35993f86c90a70e3f137816b" 16 + +dependencies = [ 17 + + "gimli", 18 + +] 19 + + 20 + +[[package]] 21 + +name = "adler" 22 + +version = "1.0.2" 23 + +source = "registry+https://github.com/rust-lang/crates.io-index" 24 + +checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" 25 + + 26 + +[[package]] 27 + +name = "aho-corasick" 28 + +version = "0.7.18" 29 + +source = "registry+https://github.com/rust-lang/crates.io-index" 30 + +checksum = "1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f" 31 + +dependencies = [ 32 + + "memchr", 33 + +] 34 + + 35 + +[[package]] 36 + +name = "android_system_properties" 37 + +version = "0.1.4" 38 + +source = "registry+https://github.com/rust-lang/crates.io-index" 39 + +checksum = "d7ed72e1635e121ca3e79420540282af22da58be50de153d36f81ddc6b83aa9e" 40 + +dependencies = [ 41 + + "libc", 42 + +] 43 + + 44 + +[[package]] 45 + +name = "ansi_term" 46 + +version = "0.12.1" 47 + +source = "registry+https://github.com/rust-lang/crates.io-index" 48 + +checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2" 49 + +dependencies = [ 50 + + "winapi", 51 + +] 52 + + 53 + +[[package]] 54 + +name = "atty" 55 + +version = "0.2.14" 56 + +source = "registry+https://github.com/rust-lang/crates.io-index" 57 + +checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" 58 + +dependencies = [ 59 + + "hermit-abi", 60 + + "libc", 61 + + "winapi", 62 + +] 63 + + 64 + +[[package]] 65 + +name = "autocfg" 66 + +version = "1.1.0" 67 + +source = "registry+https://github.com/rust-lang/crates.io-index" 68 + +checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" 69 + + 70 + +[[package]] 71 + +name = "backtrace" 72 + +version = "0.3.66" 73 + +source = "registry+https://github.com/rust-lang/crates.io-index" 74 + +checksum = "cab84319d616cfb654d03394f38ab7e6f0919e181b1b57e1fd15e7fb4077d9a7" 75 + +dependencies = [ 76 + + "addr2line", 77 + + "cc", 78 + + "cfg-if", 79 + + "libc", 80 + + "miniz_oxide", 81 + + "object", 82 + + "rustc-demangle", 83 + +] 84 + + 85 + +[[package]] 86 + +name = "bitflags" 87 + +version = "1.3.2" 88 + +source = "registry+https://github.com/rust-lang/crates.io-index" 89 + +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" 90 + + 91 + +[[package]] 92 + +name = "bumpalo" 93 + +version = "3.11.0" 94 + +source = "registry+https://github.com/rust-lang/crates.io-index" 95 + +checksum = "c1ad822118d20d2c234f427000d5acc36eabe1e29a348c89b63dd60b13f28e5d" 96 + + 97 + +[[package]] 98 + +name = "cargo-hf2" 99 + +version = "0.3.3" 100 + +dependencies = [ 101 + + "cargo-project", 102 + + "colored", 103 + + "hf2", 104 + + "hidapi", 105 + + "log", 106 + + "maplit", 107 + + "pretty_env_logger 0.3.1", 108 + + "structopt", 109 + +] 110 + + 111 + +[[package]] 112 + +name = "cargo-project" 113 + +version = "0.2.7" 114 + +source = "registry+https://github.com/rust-lang/crates.io-index" 115 + +checksum = "04e57b974bffaf97c6a66551e4f947e34637ec25f35aaf9b45f03326a9e3874f" 116 + +dependencies = [ 117 + + "failure", 118 + + "glob", 119 + + "log", 120 + + "rustc-cfg", 121 + + "serde", 122 + + "serde_derive", 123 + + "toml", 124 + +] 125 + + 126 + +[[package]] 127 + +name = "cc" 128 + +version = "1.0.73" 129 + +source = "registry+https://github.com/rust-lang/crates.io-index" 130 + +checksum = "2fff2a6927b3bb87f9595d67196a70493f627687a71d87a0d692242c33f58c11" 131 + + 132 + +[[package]] 133 + +name = "cfg-if" 134 + +version = "1.0.0" 135 + +source = "registry+https://github.com/rust-lang/crates.io-index" 136 + +checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" 137 + + 138 + +[[package]] 139 + +name = "chrono" 140 + +version = "0.4.22" 141 + +source = "registry+https://github.com/rust-lang/crates.io-index" 142 + +checksum = "bfd4d1b31faaa3a89d7934dbded3111da0d2ef28e3ebccdb4f0179f5929d1ef1" 143 + +dependencies = [ 144 + + "iana-time-zone", 145 + + "js-sys", 146 + + "num-integer", 147 + + "num-traits", 148 + + "time", 149 + + "wasm-bindgen", 150 + + "winapi", 151 + +] 152 + + 153 + +[[package]] 154 + +name = "clap" 155 + +version = "2.34.0" 156 + +source = "registry+https://github.com/rust-lang/crates.io-index" 157 + +checksum = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c" 158 + +dependencies = [ 159 + + "ansi_term", 160 + + "atty", 161 + + "bitflags", 162 + + "strsim", 163 + + "textwrap", 164 + + "unicode-width", 165 + + "vec_map", 166 + +] 167 + + 168 + +[[package]] 169 + +name = "colored" 170 + +version = "2.0.0" 171 + +source = "registry+https://github.com/rust-lang/crates.io-index" 172 + +checksum = "b3616f750b84d8f0de8a58bda93e08e2a81ad3f523089b05f1dffecab48c6cbd" 173 + +dependencies = [ 174 + + "atty", 175 + + "lazy_static", 176 + + "winapi", 177 + +] 178 + + 179 + +[[package]] 180 + +name = "core-foundation-sys" 181 + +version = "0.8.3" 182 + +source = "registry+https://github.com/rust-lang/crates.io-index" 183 + +checksum = "5827cebf4670468b8772dd191856768aedcb1b0278a04f989f7766351917b9dc" 184 + + 185 + +[[package]] 186 + +name = "crc-any" 187 + +version = "2.4.3" 188 + +source = "registry+https://github.com/rust-lang/crates.io-index" 189 + +checksum = "774646b687f63643eb0f4bf13dc263cb581c8c9e57973b6ddf78bda3994d88df" 190 + + 191 + +[[package]] 192 + +name = "env_logger" 193 + +version = "0.6.2" 194 + +source = "registry+https://github.com/rust-lang/crates.io-index" 195 + +checksum = "aafcde04e90a5226a6443b7aabdb016ba2f8307c847d524724bd9b346dd1a2d3" 196 + +dependencies = [ 197 + + "atty", 198 + + "humantime", 199 + + "log", 200 + + "regex", 201 + + "termcolor", 202 + +] 203 + + 204 + +[[package]] 205 + +name = "env_logger" 206 + +version = "0.7.1" 207 + +source = "registry+https://github.com/rust-lang/crates.io-index" 208 + +checksum = "44533bbbb3bb3c1fa17d9f2e4e38bbbaf8396ba82193c4cb1b6445d711445d36" 209 + +dependencies = [ 210 + + "atty", 211 + + "humantime", 212 + + "log", 213 + + "regex", 214 + + "termcolor", 215 + +] 216 + + 217 + +[[package]] 218 + +name = "failure" 219 + +version = "0.1.8" 220 + +source = "registry+https://github.com/rust-lang/crates.io-index" 221 + +checksum = "d32e9bd16cc02eae7db7ef620b392808b89f6a5e16bb3497d159c6b92a0f4f86" 222 + +dependencies = [ 223 + + "backtrace", 224 + + "failure_derive", 225 + +] 226 + + 227 + +[[package]] 228 + +name = "failure_derive" 229 + +version = "0.1.8" 230 + +source = "registry+https://github.com/rust-lang/crates.io-index" 231 + +checksum = "aa4da3c766cd7a0db8242e326e9e4e081edd567072893ed320008189715366a4" 232 + +dependencies = [ 233 + + "proc-macro2", 234 + + "quote", 235 + + "syn", 236 + + "synstructure", 237 + +] 238 + + 239 + +[[package]] 240 + +name = "gimli" 241 + +version = "0.26.2" 242 + +source = "registry+https://github.com/rust-lang/crates.io-index" 243 + +checksum = "22030e2c5a68ec659fde1e949a745124b48e6fa8b045b7ed5bd1fe4ccc5c4e5d" 244 + + 245 + +[[package]] 246 + +name = "glob" 247 + +version = "0.3.0" 248 + +source = "registry+https://github.com/rust-lang/crates.io-index" 249 + +checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574" 250 + + 251 + +[[package]] 252 + +name = "goblin" 253 + +version = "0.2.3" 254 + +source = "registry+https://github.com/rust-lang/crates.io-index" 255 + +checksum = "d20fd25aa456527ce4f544271ae4fea65d2eda4a6561ea56f39fb3ee4f7e3884" 256 + +dependencies = [ 257 + + "log", 258 + + "plain", 259 + + "scroll", 260 + +] 261 + + 262 + +[[package]] 263 + +name = "heck" 264 + +version = "0.3.3" 265 + +source = "registry+https://github.com/rust-lang/crates.io-index" 266 + +checksum = "6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c" 267 + +dependencies = [ 268 + + "unicode-segmentation", 269 + +] 270 + + 271 + +[[package]] 272 + +name = "hermit-abi" 273 + +version = "0.1.19" 274 + +source = "registry+https://github.com/rust-lang/crates.io-index" 275 + +checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33" 276 + +dependencies = [ 277 + + "libc", 278 + +] 279 + + 280 + +[[package]] 281 + +name = "hf2" 282 + +version = "0.3.3" 283 + +dependencies = [ 284 + + "crc-any", 285 + + "goblin", 286 + + "hidapi", 287 + + "log", 288 + + "maplit", 289 + + "scroll", 290 + +] 291 + + 292 + +[[package]] 293 + +name = "hf2-cli" 294 + +version = "0.3.3" 295 + +dependencies = [ 296 + + "crc-any", 297 + + "hf2", 298 + + "hidapi", 299 + + "log", 300 + + "maplit", 301 + + "pretty_env_logger 0.4.0", 302 + + "structopt", 303 + +] 304 + + 305 + +[[package]] 306 + +name = "hidapi" 307 + +version = "1.4.1" 308 + +source = "registry+https://github.com/rust-lang/crates.io-index" 309 + +checksum = "38b1717343691998deb81766bfcd1dce6df0d5d6c37070b5a3de2bb6d39f7822" 310 + +dependencies = [ 311 + + "cc", 312 + + "libc", 313 + + "pkg-config", 314 + +] 315 + + 316 + +[[package]] 317 + +name = "humantime" 318 + +version = "1.3.0" 319 + +source = "registry+https://github.com/rust-lang/crates.io-index" 320 + +checksum = "df004cfca50ef23c36850aaaa59ad52cc70d0e90243c3c7737a4dd32dc7a3c4f" 321 + +dependencies = [ 322 + + "quick-error", 323 + +] 324 + + 325 + +[[package]] 326 + +name = "iana-time-zone" 327 + +version = "0.1.46" 328 + +source = "registry+https://github.com/rust-lang/crates.io-index" 329 + +checksum = "ad2bfd338099682614d3ee3fe0cd72e0b6a41ca6a87f6a74a3bd593c91650501" 330 + +dependencies = [ 331 + + "android_system_properties", 332 + + "core-foundation-sys", 333 + + "js-sys", 334 + + "wasm-bindgen", 335 + + "winapi", 336 + +] 337 + + 338 + +[[package]] 339 + +name = "js-sys" 340 + +version = "0.3.59" 341 + +source = "registry+https://github.com/rust-lang/crates.io-index" 342 + +checksum = "258451ab10b34f8af53416d1fdab72c22e805f0c92a1136d59470ec0b11138b2" 343 + +dependencies = [ 344 + + "wasm-bindgen", 345 + +] 346 + + 347 + +[[package]] 348 + +name = "lazy_static" 349 + +version = "1.4.0" 350 + +source = "registry+https://github.com/rust-lang/crates.io-index" 351 + +checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" 352 + + 353 + +[[package]] 354 + +name = "libc" 355 + +version = "0.2.132" 356 + +source = "registry+https://github.com/rust-lang/crates.io-index" 357 + +checksum = "8371e4e5341c3a96db127eb2465ac681ced4c433e01dd0e938adbef26ba93ba5" 358 + + 359 + +[[package]] 360 + +name = "log" 361 + +version = "0.4.17" 362 + +source = "registry+https://github.com/rust-lang/crates.io-index" 363 + +checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" 364 + +dependencies = [ 365 + + "cfg-if", 366 + +] 367 + + 368 + +[[package]] 369 + +name = "maplit" 370 + +version = "1.0.2" 371 + +source = "registry+https://github.com/rust-lang/crates.io-index" 372 + +checksum = "3e2e65a1a2e43cfcb47a895c4c8b10d1f4a61097f9f254f183aee60cad9c651d" 373 + + 374 + +[[package]] 375 + +name = "memchr" 376 + +version = "2.5.0" 377 + +source = "registry+https://github.com/rust-lang/crates.io-index" 378 + +checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" 379 + + 380 + +[[package]] 381 + +name = "miniz_oxide" 382 + +version = "0.5.3" 383 + +source = "registry+https://github.com/rust-lang/crates.io-index" 384 + +checksum = "6f5c75688da582b8ffc1f1799e9db273f32133c49e048f614d22ec3256773ccc" 385 + +dependencies = [ 386 + + "adler", 387 + +] 388 + + 389 + +[[package]] 390 + +name = "num-integer" 391 + +version = "0.1.45" 392 + +source = "registry+https://github.com/rust-lang/crates.io-index" 393 + +checksum = "225d3389fb3509a24c93f5c29eb6bde2586b98d9f016636dff58d7c6f7569cd9" 394 + +dependencies = [ 395 + + "autocfg", 396 + + "num-traits", 397 + +] 398 + + 399 + +[[package]] 400 + +name = "num-traits" 401 + +version = "0.2.15" 402 + +source = "registry+https://github.com/rust-lang/crates.io-index" 403 + +checksum = "578ede34cf02f8924ab9447f50c28075b4d3e5b269972345e7e0372b38c6cdcd" 404 + +dependencies = [ 405 + + "autocfg", 406 + +] 407 + + 408 + +[[package]] 409 + +name = "object" 410 + +version = "0.29.0" 411 + +source = "registry+https://github.com/rust-lang/crates.io-index" 412 + +checksum = "21158b2c33aa6d4561f1c0a6ea283ca92bc54802a93b263e910746d679a7eb53" 413 + +dependencies = [ 414 + + "memchr", 415 + +] 416 + + 417 + +[[package]] 418 + +name = "once_cell" 419 + +version = "1.13.1" 420 + +source = "registry+https://github.com/rust-lang/crates.io-index" 421 + +checksum = "074864da206b4973b84eb91683020dbefd6a8c3f0f38e054d93954e891935e4e" 422 + + 423 + +[[package]] 424 + +name = "pkg-config" 425 + +version = "0.3.25" 426 + +source = "registry+https://github.com/rust-lang/crates.io-index" 427 + +checksum = "1df8c4ec4b0627e53bdf214615ad287367e482558cf84b109250b37464dc03ae" 428 + + 429 + +[[package]] 430 + +name = "plain" 431 + +version = "0.2.3" 432 + +source = "registry+https://github.com/rust-lang/crates.io-index" 433 + +checksum = "b4596b6d070b27117e987119b4dac604f3c58cfb0b191112e24771b2faeac1a6" 434 + + 435 + +[[package]] 436 + +name = "pretty_env_logger" 437 + +version = "0.3.1" 438 + +source = "registry+https://github.com/rust-lang/crates.io-index" 439 + +checksum = "717ee476b1690853d222af4634056d830b5197ffd747726a9a1eee6da9f49074" 440 + +dependencies = [ 441 + + "chrono", 442 + + "env_logger 0.6.2", 443 + + "log", 444 + +] 445 + + 446 + +[[package]] 447 + +name = "pretty_env_logger" 448 + +version = "0.4.0" 449 + +source = "registry+https://github.com/rust-lang/crates.io-index" 450 + +checksum = "926d36b9553851b8b0005f1275891b392ee4d2d833852c417ed025477350fb9d" 451 + +dependencies = [ 452 + + "env_logger 0.7.1", 453 + + "log", 454 + +] 455 + + 456 + +[[package]] 457 + +name = "proc-macro-error" 458 + +version = "1.0.4" 459 + +source = "registry+https://github.com/rust-lang/crates.io-index" 460 + +checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" 461 + +dependencies = [ 462 + + "proc-macro-error-attr", 463 + + "proc-macro2", 464 + + "quote", 465 + + "syn", 466 + + "version_check", 467 + +] 468 + + 469 + +[[package]] 470 + +name = "proc-macro-error-attr" 471 + +version = "1.0.4" 472 + +source = "registry+https://github.com/rust-lang/crates.io-index" 473 + +checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" 474 + +dependencies = [ 475 + + "proc-macro2", 476 + + "quote", 477 + + "version_check", 478 + +] 479 + + 480 + +[[package]] 481 + +name = "proc-macro2" 482 + +version = "1.0.43" 483 + +source = "registry+https://github.com/rust-lang/crates.io-index" 484 + +checksum = "0a2ca2c61bc9f3d74d2886294ab7b9853abd9c1ad903a3ac7815c58989bb7bab" 485 + +dependencies = [ 486 + + "unicode-ident", 487 + +] 488 + + 489 + +[[package]] 490 + +name = "quick-error" 491 + +version = "1.2.3" 492 + +source = "registry+https://github.com/rust-lang/crates.io-index" 493 + +checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0" 494 + + 495 + +[[package]] 496 + +name = "quote" 497 + +version = "1.0.21" 498 + +source = "registry+https://github.com/rust-lang/crates.io-index" 499 + +checksum = "bbe448f377a7d6961e30f5955f9b8d106c3f5e449d493ee1b125c1d43c2b5179" 500 + +dependencies = [ 501 + + "proc-macro2", 502 + +] 503 + + 504 + +[[package]] 505 + +name = "regex" 506 + +version = "1.6.0" 507 + +source = "registry+https://github.com/rust-lang/crates.io-index" 508 + +checksum = "4c4eb3267174b8c6c2f654116623910a0fef09c4753f8dd83db29c48a0df988b" 509 + +dependencies = [ 510 + + "aho-corasick", 511 + + "memchr", 512 + + "regex-syntax", 513 + +] 514 + + 515 + +[[package]] 516 + +name = "regex-syntax" 517 + +version = "0.6.27" 518 + +source = "registry+https://github.com/rust-lang/crates.io-index" 519 + +checksum = "a3f87b73ce11b1619a3c6332f45341e0047173771e8b8b73f87bfeefb7b56244" 520 + + 521 + +[[package]] 522 + +name = "rustc-cfg" 523 + +version = "0.4.0" 524 + +source = "registry+https://github.com/rust-lang/crates.io-index" 525 + +checksum = "8ad221fe7cd09334f8735dcc157b1178e343f43dfaefcd1b09d7fd4fc0921b6f" 526 + +dependencies = [ 527 + + "failure", 528 + +] 529 + + 530 + +[[package]] 531 + +name = "rustc-demangle" 532 + +version = "0.1.21" 533 + +source = "registry+https://github.com/rust-lang/crates.io-index" 534 + +checksum = "7ef03e0a2b150c7a90d01faf6254c9c48a41e95fb2a8c2ac1c6f0d2b9aefc342" 535 + + 536 + +[[package]] 537 + +name = "scroll" 538 + +version = "0.10.2" 539 + +source = "registry+https://github.com/rust-lang/crates.io-index" 540 + +checksum = "fda28d4b4830b807a8b43f7b0e6b5df875311b3e7621d84577188c175b6ec1ec" 541 + +dependencies = [ 542 + + "scroll_derive", 543 + +] 544 + + 545 + +[[package]] 546 + +name = "scroll_derive" 547 + +version = "0.10.5" 548 + +source = "registry+https://github.com/rust-lang/crates.io-index" 549 + +checksum = "aaaae8f38bb311444cfb7f1979af0bc9240d95795f75f9ceddf6a59b79ceffa0" 550 + +dependencies = [ 551 + + "proc-macro2", 552 + + "quote", 553 + + "syn", 554 + +] 555 + + 556 + +[[package]] 557 + +name = "serde" 558 + +version = "1.0.144" 559 + +source = "registry+https://github.com/rust-lang/crates.io-index" 560 + +checksum = "0f747710de3dcd43b88c9168773254e809d8ddbdf9653b84e2554ab219f17860" 561 + + 562 + +[[package]] 563 + +name = "serde_derive" 564 + +version = "1.0.144" 565 + +source = "registry+https://github.com/rust-lang/crates.io-index" 566 + +checksum = "94ed3a816fb1d101812f83e789f888322c34e291f894f19590dc310963e87a00" 567 + +dependencies = [ 568 + + "proc-macro2", 569 + + "quote", 570 + + "syn", 571 + +] 572 + + 573 + +[[package]] 574 + +name = "strsim" 575 + +version = "0.8.0" 576 + +source = "registry+https://github.com/rust-lang/crates.io-index" 577 + +checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a" 578 + + 579 + +[[package]] 580 + +name = "structopt" 581 + +version = "0.3.26" 582 + +source = "registry+https://github.com/rust-lang/crates.io-index" 583 + +checksum = "0c6b5c64445ba8094a6ab0c3cd2ad323e07171012d9c98b0b15651daf1787a10" 584 + +dependencies = [ 585 + + "clap", 586 + + "lazy_static", 587 + + "structopt-derive", 588 + +] 589 + + 590 + +[[package]] 591 + +name = "structopt-derive" 592 + +version = "0.4.18" 593 + +source = "registry+https://github.com/rust-lang/crates.io-index" 594 + +checksum = "dcb5ae327f9cc13b68763b5749770cb9e048a99bd9dfdfa58d0cf05d5f64afe0" 595 + +dependencies = [ 596 + + "heck", 597 + + "proc-macro-error", 598 + + "proc-macro2", 599 + + "quote", 600 + + "syn", 601 + +] 602 + + 603 + +[[package]] 604 + +name = "syn" 605 + +version = "1.0.99" 606 + +source = "registry+https://github.com/rust-lang/crates.io-index" 607 + +checksum = "58dbef6ec655055e20b86b15a8cc6d439cca19b667537ac6a1369572d151ab13" 608 + +dependencies = [ 609 + + "proc-macro2", 610 + + "quote", 611 + + "unicode-ident", 612 + +] 613 + + 614 + +[[package]] 615 + +name = "synstructure" 616 + +version = "0.12.6" 617 + +source = "registry+https://github.com/rust-lang/crates.io-index" 618 + +checksum = "f36bdaa60a83aca3921b5259d5400cbf5e90fc51931376a9bd4a0eb79aa7210f" 619 + +dependencies = [ 620 + + "proc-macro2", 621 + + "quote", 622 + + "syn", 623 + + "unicode-xid", 624 + +] 625 + + 626 + +[[package]] 627 + +name = "termcolor" 628 + +version = "1.1.3" 629 + +source = "registry+https://github.com/rust-lang/crates.io-index" 630 + +checksum = "bab24d30b911b2376f3a13cc2cd443142f0c81dda04c118693e35b3835757755" 631 + +dependencies = [ 632 + + "winapi-util", 633 + +] 634 + + 635 + +[[package]] 636 + +name = "textwrap" 637 + +version = "0.11.0" 638 + +source = "registry+https://github.com/rust-lang/crates.io-index" 639 + +checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060" 640 + +dependencies = [ 641 + + "unicode-width", 642 + +] 643 + + 644 + +[[package]] 645 + +name = "time" 646 + +version = "0.1.44" 647 + +source = "registry+https://github.com/rust-lang/crates.io-index" 648 + +checksum = "6db9e6914ab8b1ae1c260a4ae7a49b6c5611b40328a735b21862567685e73255" 649 + +dependencies = [ 650 + + "libc", 651 + + "wasi", 652 + + "winapi", 653 + +] 654 + + 655 + +[[package]] 656 + +name = "toml" 657 + +version = "0.4.10" 658 + +source = "registry+https://github.com/rust-lang/crates.io-index" 659 + +checksum = "758664fc71a3a69038656bee8b6be6477d2a6c315a6b81f7081f591bffa4111f" 660 + +dependencies = [ 661 + + "serde", 662 + +] 663 + + 664 + +[[package]] 665 + +name = "unicode-ident" 666 + +version = "1.0.3" 667 + +source = "registry+https://github.com/rust-lang/crates.io-index" 668 + +checksum = "c4f5b37a154999a8f3f98cc23a628d850e154479cd94decf3414696e12e31aaf" 669 + + 670 + +[[package]] 671 + +name = "unicode-segmentation" 672 + +version = "1.9.0" 673 + +source = "registry+https://github.com/rust-lang/crates.io-index" 674 + +checksum = "7e8820f5d777f6224dc4be3632222971ac30164d4a258d595640799554ebfd99" 675 + + 676 + +[[package]] 677 + +name = "unicode-width" 678 + +version = "0.1.9" 679 + +source = "registry+https://github.com/rust-lang/crates.io-index" 680 + +checksum = "3ed742d4ea2bd1176e236172c8429aaf54486e7ac098db29ffe6529e0ce50973" 681 + + 682 + +[[package]] 683 + +name = "unicode-xid" 684 + +version = "0.2.3" 685 + +source = "registry+https://github.com/rust-lang/crates.io-index" 686 + +checksum = "957e51f3646910546462e67d5f7599b9e4fb8acdd304b087a6494730f9eebf04" 687 + + 688 + +[[package]] 689 + +name = "vec_map" 690 + +version = "0.8.2" 691 + +source = "registry+https://github.com/rust-lang/crates.io-index" 692 + +checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191" 693 + + 694 + +[[package]] 695 + +name = "version_check" 696 + +version = "0.9.4" 697 + +source = "registry+https://github.com/rust-lang/crates.io-index" 698 + +checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" 699 + + 700 + +[[package]] 701 + +name = "wasi" 702 + +version = "0.10.0+wasi-snapshot-preview1" 703 + +source = "registry+https://github.com/rust-lang/crates.io-index" 704 + +checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f" 705 + + 706 + +[[package]] 707 + +name = "wasm-bindgen" 708 + +version = "0.2.82" 709 + +source = "registry+https://github.com/rust-lang/crates.io-index" 710 + +checksum = "fc7652e3f6c4706c8d9cd54832c4a4ccb9b5336e2c3bd154d5cccfbf1c1f5f7d" 711 + +dependencies = [ 712 + + "cfg-if", 713 + + "wasm-bindgen-macro", 714 + +] 715 + + 716 + +[[package]] 717 + +name = "wasm-bindgen-backend" 718 + +version = "0.2.82" 719 + +source = "registry+https://github.com/rust-lang/crates.io-index" 720 + +checksum = "662cd44805586bd52971b9586b1df85cdbbd9112e4ef4d8f41559c334dc6ac3f" 721 + +dependencies = [ 722 + + "bumpalo", 723 + + "log", 724 + + "once_cell", 725 + + "proc-macro2", 726 + + "quote", 727 + + "syn", 728 + + "wasm-bindgen-shared", 729 + +] 730 + + 731 + +[[package]] 732 + +name = "wasm-bindgen-macro" 733 + +version = "0.2.82" 734 + +source = "registry+https://github.com/rust-lang/crates.io-index" 735 + +checksum = "b260f13d3012071dfb1512849c033b1925038373aea48ced3012c09df952c602" 736 + +dependencies = [ 737 + + "quote", 738 + + "wasm-bindgen-macro-support", 739 + +] 740 + + 741 + +[[package]] 742 + +name = "wasm-bindgen-macro-support" 743 + +version = "0.2.82" 744 + +source = "registry+https://github.com/rust-lang/crates.io-index" 745 + +checksum = "5be8e654bdd9b79216c2929ab90721aa82faf65c48cdf08bdc4e7f51357b80da" 746 + +dependencies = [ 747 + + "proc-macro2", 748 + + "quote", 749 + + "syn", 750 + + "wasm-bindgen-backend", 751 + + "wasm-bindgen-shared", 752 + +] 753 + + 754 + +[[package]] 755 + +name = "wasm-bindgen-shared" 756 + +version = "0.2.82" 757 + +source = "registry+https://github.com/rust-lang/crates.io-index" 758 + +checksum = "6598dd0bd3c7d51095ff6531a5b23e02acdc81804e30d8f07afb77b7215a140a" 759 + + 760 + +[[package]] 761 + +name = "winapi" 762 + +version = "0.3.9" 763 + +source = "registry+https://github.com/rust-lang/crates.io-index" 764 + +checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" 765 + +dependencies = [ 766 + + "winapi-i686-pc-windows-gnu", 767 + + "winapi-x86_64-pc-windows-gnu", 768 + +] 769 + + 770 + +[[package]] 771 + +name = "winapi-i686-pc-windows-gnu" 772 + +version = "0.4.0" 773 + +source = "registry+https://github.com/rust-lang/crates.io-index" 774 + +checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" 775 + + 776 + +[[package]] 777 + +name = "winapi-util" 778 + +version = "0.1.5" 779 + +source = "registry+https://github.com/rust-lang/crates.io-index" 780 + +checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178" 781 + +dependencies = [ 782 + + "winapi", 783 + +] 784 + + 785 + +[[package]] 786 + +name = "winapi-x86_64-pc-windows-gnu" 787 + +version = "0.4.0" 788 + +source = "registry+https://github.com/rust-lang/crates.io-index" 789 + +checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
+38
pkgs/development/tools/rust/cargo-hf2/default.nix
··· 1 + { lib 2 + , stdenv 3 + , rustPlatform 4 + , fetchFromGitHub 5 + , libusb1 6 + , pkg-config 7 + , rustfmt 8 + , AppKit 9 + }: 10 + 11 + rustPlatform.buildRustPackage rec { 12 + pname = "cargo-hf2"; 13 + version = "0.3.3"; 14 + 15 + src = fetchFromGitHub { 16 + owner = "jacobrosenthal"; 17 + repo = "hf2-rs"; 18 + rev = "v${version}"; 19 + sha256 = "1vkmdmc2041h7msygqb97zcl8vdxjqwy7w0lvbnw99h693q3hqa0"; 20 + }; 21 + 22 + cargoPatches = [ 23 + ./add-cargo-lock.patch 24 + ]; 25 + 26 + cargoSha256 = "sha256-5aTqiJ23XuY9MNIt3lVMIJ+33BZkcS02HbctIJrnEfo="; 27 + 28 + nativeBuildInputs = [ pkg-config rustfmt ]; 29 + 30 + buildInputs = [ libusb1 ] ++ lib.optionals stdenv.isDarwin [ AppKit ]; 31 + 32 + meta = with lib; { 33 + description = "Cargo Subcommand for Microsoft HID Flashing Library for UF2 Bootloaders "; 34 + homepage = "https://lib.rs/crates/cargo-hf2"; 35 + license = with licenses; [ mit ]; 36 + maintainers = with maintainers; [ astrobeastie ]; 37 + }; 38 + }
+4
pkgs/top-level/all-packages.nix
··· 14821 14821 inherit (darwin) libiconv; 14822 14822 inherit (darwin.apple_sdk.frameworks) Security CoreFoundation; 14823 14823 }; 14824 + 14825 + cargo-hf2 = callPackage ../development/tools/rust/cargo-hf2 { 14826 + inherit (darwin.apple_sdk.frameworks) AppKit; 14827 + }; 14824 14828 cargo-inspect = callPackage ../development/tools/rust/cargo-inspect { 14825 14829 inherit (darwin.apple_sdk.frameworks) Security; 14826 14830 };