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.

Enables unix of serial2

windows

The "windows" features enables windows specific extensions.

Enables windows of serial2

rs4xx

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

Enables rs4xx of serial2

doc-cfg

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

Enables doc-cfg of serial2

serde

Enable limited serde support for serial port configuration.

Enables serde of serial2

doc

Add stub implementation of all feature and platform specific items, to allow full documentation to build on all platforms.

Enables doc of serial2, io-util of tokio