Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
70 lines (63 loc) · 1.97 KB
/
Copy pathCargo.toml
File metadata and controls
70 lines (63 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
[workspace]
members = ["testing"]
[package]
name = "sinowisp"
description = """
A utility for reading and writing flash contents on Sinowealth 8051-based HID devices through the commonly found ISP bootloader
"""
repository = "https://github.com/carlossless/sinowisp"
version = "2.1.0"
edition = "2021"
license = "MIT"
rust-version = "1.88"
# The crate ships both a reusable library (`src/lib.rs`) and the `sinowisp`
# CLI (`src/main.rs`). The CLI-only dependencies live behind the default `cli`
# feature so the library can still be built on its own (e.g. for the web via
# WebHID/wasm) with `--no-default-features`.
[features]
default = ["cli"]
cli = [
"dep:clap",
"dep:clap-num",
"dep:dialoguer",
"dep:hidparser",
"dep:indicatif",
"dep:itertools",
"dep:md5",
"dep:simple_logger",
"dep:log",
]
# No-op, kept so an existing `--features nusb` still resolves: hidra compiles
# both backends in and this crate names the one it wants.
nusb = []
[[bin]]
name = "sinowisp"
path = "src/main.rs"
required-features = ["cli"]
[dependencies]
# Both backends built in; `DeviceSelector` falls back between them at run time.
hidra = "0.0.4"
ihex = "3.0"
thiserror = "2.0"
phf = { version = "0.11", features = ["macros"] }
# CLI-only dependencies (enabled by the `cli` feature).
clap = { version = "4.1", optional = true }
clap-num = { version = "1.0", optional = true }
dialoguer = { version = "0.11.0", optional = true }
hidparser = { version = "1.0.3", optional = true }
indicatif = { version = "0.17.11", optional = true }
itertools = { version = "0.14.0", optional = true }
md5 = { version = "0.7", optional = true }
log = { version = "0.4", features = ["max_level_debug"], optional = true }
[dependencies.simple_logger]
version = "5.1"
default-features = false
features = ["stderr", "colors", "timestamps"]
optional = true
[dev-dependencies]
sinowisp-testing = { path = "testing" }
assert_cmd = "2.0.17"
chrono = "0.4.41"
predicates = "3.1.3"
serial_test = "3.2.0"
stdext = "0.3.3"