Cargo Features
serial2-tokio has no features set by default.
[dependencies]
serial2-tokio = { version = "0.1.14", features = ["unix", "windows", "rs4xx", "doc-cfg", "serde", "doc"] }
- unix
-
The "unix" feature enables Unix specific extensions.
- windows
-
The "windows" features enables windows specific extensions.
- rs4xx
-
The "rs4xx" feature enables RS-485/RS-422 specific extensions on supported platforms.
- doc-cfg
-
Add #[doc(cfg(...))] annotations to platform specific items for better documentation (requires nightly toolchain).
- serde
-
Enable limited serde support for serial port configuration.
- doc
-
Add stub implementation of all feature and platform specific items, to allow full documentation to build on all platforms.