[package]
edition = "2021"
name = "serial2-tokio"
version = "0.1.21"
build = false
publish = ["crates-io"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "cross platform serial ports for tokio based on the serial2 crate"
documentation = "https://docs.rs/serial2-tokio"
readme = "README.md"
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"
repository = "https://github.com/de-vri-es/serial2-tokio-rs"
[package.metadata.docs.rs]
features = [
"doc",
"doc-cfg",
]
[features]
doc = [
"tokio/io-util",
"serial2/doc",
]
doc-cfg = ["serial2/doc-cfg"]
rs4xx = ["serial2/rs4xx"]
serde = ["serial2/serde"]
unix = ["serial2/unix"]
windows = ["serial2/windows"]
[lib]
name = "serial2_tokio"
path = "src/lib.rs"
[[example]]
name = "serial-cat"
path = "examples/serial-cat.rs"
[[test]]
name = "pair"
path = "tests/pair.rs"
[dependencies.serial2]
version = "0.2.34"
[dependencies.tokio]
version = "1.38.2"
features = ["net"]
default-features = false
[dev-dependencies.assert2]
version = "0.3.18"
[dev-dependencies.serial2]
version = "0.2.34"
features = ["rs4xx"]
[dev-dependencies.tokio]
version = "1.38.2"
features = [
"macros",
"rt",
"io-std",
"io-util",
]
[target."cfg(unix)".dependencies.libc]
version = "0.2.148"
[target."cfg(unix)".dev-dependencies.libc]
version = "0.2.148"
[target."cfg(windows)".dependencies.winapi]
version = "0.3.9"
features = ["winerror"]