-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
Cargo.toml
53 lines (45 loc) · 1.59 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 = "ecu_diagnostics"
version = "0.96.1"
authors = ["Ashcon Mohseninia <ashconm@outlook.com>"]
edition = "2021"
description = "A rust crate for ECU diagnostic servers and communication APIs"
license = "MIT"
repository = "https://github.com/rnd-ash/ecu_diagnostics"
readme = "README.md"
keywords = ["socketcan", "kwp2000", "uds", "j2534", "dpdu", "slcan"]
exclude = [
"examples/*",
"build.rs",
"ecu_diagnostics.hpp"
]
[badges]
maintenance = { status = "actively-developed" }
[package.metadata.docs.rs]
all-features = true
targets = ["x86_64-unknown-linux-gnu", "i686-pc-windows-msvc", "x86_64-apple-darwin"]
[features]
default = ["passthru", "socketcan", "slcan"]
socketcan = ["dep:socketcan-isotp", "dep:socketcan"]
passthru = ["dep:libloading", "dep:shellexpand", "dep:winreg", "dep:serde_json", "dep:j2534_rust"]
slcan = ["dep:serial-rs"]
[dependencies]
#automotive_diag = { version = "0.1", path = "../automotive_diag" }
automotive_diag = "0.1"
j2534_rust = { version = "1.5.0", optional = true }
serde_json = { version = "1.0.79", optional = true }
libloading = { version = "0.8.4", optional = true }
log="0.4.16"
strum = "0.26.3"
strum_macros = "0.26.4"
thiserror="1.0.44"
serial-rs = { version = "0.2.1", optional = true }
[dev-dependencies]
env_logger = "0.11.3"
[target.'cfg(windows)'.dependencies]
winreg = { version = "0.10.1", optional = true }
[target.'cfg(unix)'.dependencies]
shellexpand = { version = "3.1.0", optional = true }
[target.'cfg(target_os = "linux")'.dependencies]
socketcan-isotp = { optional = true, version = "1.0.1" }
socketcan = { version = "3.3.0", optional = true }