forked from rnd-ash/ecu_diagnostics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
50 lines (42 loc) · 1.4 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
[package]
name = "ecu_diagnostics"
version = "0.90.52"
authors = ["Ashcon Mohseninia <[email protected]>"]
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"]
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"]
[workspace]
members = [
"ffi",
]
[features]
default = ["passthru", "socketcan"]
socketcan = ["dep:socketcan-isotp", "dep:socketcan"]
passthru = ["dep:libloading", "dep:shellexpand", "dep:winreg", "dep:serde_json", "dep:j2534_rust"]
[dependencies]
j2534_rust = { version = "1.5.0", optional = true }
serde_json = { version = "1.0.79", optional = true }
libloading = { version = "0.7.3", optional = true }
log="0.4.16"
strum = "0.24"
strum_macros = "0.24"
[target.'cfg(windows)'.dependencies]
winreg = { version = "0.10.1", optional = true }
[target.'cfg(unix)'.dependencies]
shellexpand = { version = "2.1.0", optional = true }
#socketcan-isotp = { version = "1.0.0", optional = true }
socketcan-isotp = { optional = true, version = "1.0.1" }
socketcan = { version = "1.7.0", optional = true }