serial2 0.2.38

Cross platform serial ports
Documentation
[package]
name = "serial2"
version = "0.2.38"
description = "Cross platform serial ports"
license = "BSD-2-Clause OR Apache-2.0"
repository = "https://github.com/de-vri-es/serial2-rs"
documentation = "https://docs.rs/serial2"
keywords = ["serial", "serial-port", "COM-port", "RS232", "tty"]
categories = ["hardware-support", "network-programming", "os", "science::robotics"]
rust-version = "1.63"

publish = ["crates-io"]
edition = "2021"

[features]
# The "unix" feature enables Unix specific extensions.
unix = []

# The "windows" features enables windows specific extensions.
windows = []

# The "rs4xx" feature enables RS-485/RS-422 specific extensions on supported platforms.
rs4xx = []

# Add #[doc(cfg(...))] annotations to platform specific items for better documentation (requires nightly toolchain).
doc-cfg = []

# Enable limited serde support for serial port configuration.
serde = ["dep:serde"]

# Add stub implementation of all feature and platform specific items, to allow full documentation to build on all platforms.
doc = []

[[example]]
name = "rs485"
required-features = ["rs4xx"]

[dependencies]
serde = { version = "1.0", features = ["derive"], optional = true }

[target.'cfg(unix)'.dependencies]
libc = "0.2.109"
cfg-if = "1.0.0"

[target.'cfg(windows)'.dependencies]
windows-sys = {version = "0.61", features = ["Win32_Devices_Communication", "Win32_System_Registry", "Win32_System_IO", "Win32_System_Threading", "Win32_Storage_FileSystem", "Win32_System_WindowsProgramming", "Win32_Security"] }

[dev-dependencies]
assert2 = "0.4.0"
serde_json = "1.0.108"
toml = "1.1.4"
serial2 = { path = ".", features = ["serde", "unix", "windows"] }

[package.metadata.docs.rs]
features = ["doc-cfg", "doc"]