-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathCargo.toml
More file actions
65 lines (55 loc) · 1.78 KB
/
Copy pathCargo.toml
File metadata and controls
65 lines (55 loc) · 1.78 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
[package]
name = "automotive"
version = "0.4.1"
edition = "2021"
license = "MIT"
keywords = ["automotive", "CAN", "UDS"]
description = "Rust crate providing a variety of automotive related libraries, such as communicating with CAN interfaces and diagnostic APIs."
repository = "https://github.com/I-CAN-hack/automotive"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = []
all = ["all-adapters", "serde"]
default-adapters = ["panda", "socketcan"]
all-adapters = ["default-adapters", "vector-xl", "j2534", "peak"]
serde = ["dep:serde"]
# adapters
vector-xl = ["dep:bindgen", "dep:libloading"]
j2534 = ["dep:libloading", "dep:winreg"]
panda = ["dep:rusb"]
peak = ["dep:rusb"]
socketcan = ["dep:libc", "dep:socket2"]
# adapter tests
test-j2534 = ["j2534"]
test-panda = ["panda"]
test-peak = ["peak"]
test-socketcan = ["socketcan"]
test-vcan = ["socketcan"]
test-vector = ["vector-xl"]
[dependencies]
async-stream = "0.3.5"
bstr = "1.9.0"
hex = "0.4"
rusb = { version = "0.9", optional = true }
serde = { version = "1.0.197", features = ["derive"], optional = true }
strum = "0.26"
strum_macros = "0.26"
thiserror = "1.0.58"
tokio = { version = "1.36.0", features = ["full"] }
tokio-stream = "0.1.14"
tracing = "0.1"
[target.'cfg(target_os = "linux")'.dependencies]
socket2 = { version = "0.6.0", optional = true }
libc = { version = "0.2.154", optional = true }
[target.'cfg(target_os = "windows")'.dependencies]
libloading = { version = "0.8", optional = true }
winreg = { version = "0.55", optional = true }
[dev-dependencies]
futures = "0.3.30"
tracing-subscriber = "0.3"
serial_test = "3.0.0"
[build-dependencies]
bindgen = { version = "0.69.4", optional = true }
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]