-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
42 lines (36 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
[package]
name = "async-can"
version = "0.3.0"
authors = ["Raphael Bernhard <[email protected]>"]
edition = "2018"
license = "MIT OR Apache-2.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
async-trait = "0.1.57"
byteorder = { version = "1.4", optional = true }
dlopen = { version = "0.1.8", optional = true }
dlopen_derive = { version = "0.1.4", optional = true }
lazy_static = { version = "1", optional = true }
log = "0.4"
serde = { version = "1", features = ["derive"], optional = true }
tempfile = { version = "3.1", optional = true }
thiserror = "1"
tokio = { version = "1", features = ["sync", "time", "rt", "net", "macros", "io-util"] }
[target.'cfg(unix)'.dependencies]
libc = { version = "0.2" }
mio = { version = "0.7", features = ["os-ext"], optional = true }
futures = { version = "0.3", optional = true }
rtnetlink = { version = "0.11", optional = true }
[target.'cfg(windows)'.dependencies]
lazy_static = "1.4.0"
windows-sys = { version = "0.36", features = ["Win32_Foundation", "Win32_System_Threading", "Win32_Security"] }
[build-dependencies]
bindgen = "0.64"
[dev-dependencies]
tokio-test = "0.4"
[features]
default = ["pcan", "socket_can", "usr_canet"]
pcan = ["dep:dlopen", "dep:dlopen_derive", "dep:lazy_static", "dep:tempfile"]
socket_can = ["dep:mio", "dep:futures", "dep:rtnetlink"]
usr_canet = ["dep:byteorder"]
serde = ["dep:serde"]