-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathCargo.toml
53 lines (45 loc) · 1.3 KB
/
Cargo.toml
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
[package]
name = "automotive"
version = "0.2.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 = ["default-adapters"]
all = ["all-adapters", "serde"]
default-adapters = ["panda", "socketcan"]
all-adapters = ["default-adapters", "vector-xl"]
serde = ["dep:serde"]
# adapters
vector-xl = []
panda = []
socketcan = []
# adapter tests
test-panda = ["panda"]
test-socketcan = ["socketcan"]
test-vector = ["vector-xl"]
test-vcan = ["socketcan"]
[dependencies]
async-stream = "0.3.5"
bstr = "1.9.0"
hex = "0.4"
rusb = "0.9"
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 = "0.5.7"
libc = "0.2.154"
[dev-dependencies]
futures = "0.3.30"
tracing-subscriber = "0.3"
serial_test = "3.0.0"
[target.'cfg(target_os = "windows")'.build-dependencies]
bindgen = "0.69.4"