-
Notifications
You must be signed in to change notification settings - Fork 4
/
Cargo.toml
48 lines (36 loc) · 1.62 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
[package]
name = "serial2-tokio"
version = "0.1.14"
description = "cross platform serial ports for tokio based on the serial2 crate"
repository = "https://github.com/de-vri-es/serial2-tokio-rs"
documentation = "https://docs.rs/serial2-tokio"
keywords = ["serial", "serial-port", "COM-port", "RS232", "tty"]
categories = ["hardware-support", "network-programming", "os", "science::robotics", "asynchronous"]
license = "BSD-2-Clause OR Apache-2.0"
publish = ["crates-io"]
edition = "2021"
[features]
# The "unix" feature enables Unix specific extensions.
unix = ["serial2/unix"]
# The "windows" features enables windows specific extensions.
windows = ["serial2/windows"]
# The "rs4xx" feature enables RS-485/RS-422 specific extensions on supported platforms.
rs4xx = ["serial2/rs4xx"]
# Add #[doc(cfg(...))] annotations to platform specific items for better documentation (requires nightly toolchain).
doc-cfg = ["serial2/doc-cfg"]
# Enable limited serde support for serial port configuration.
serde = ["serial2/serde"]
# Add stub implementation of all feature and platform specific items, to allow full documentation to build on all platforms.
doc = ["tokio/io-util", "serial2/doc"]
[dependencies]
serial2 = "0.2.28"
tokio = { version = "1.32.0", default-features = false, features = ["net"] }
[target.'cfg(unix)'.dependencies]
libc = "0.2.148"
[target.'cfg(windows)'.dependencies]
winapi = { version = "0.3.9", features = ["winerror"] }
[dev-dependencies]
tokio = { version = "1.32.0", features = ["macros", "rt", "io-std", "io-util"] }
serial2 = { version = "0.2.22", features = ["rs4xx"] }
[package.metadata.docs.rs]
features = ["doc", "doc-cfg"]