Cargo Features

serial2 has no features set by default.

[dependencies]
serial2 = { version = "0.2.24", features = ["unix", "windows", "rs4xx", "doc-cfg", "serde", "doc"] }
unix

The "unix" feature enables Unix specific extensions.

Affects os::unix

windows

The "windows" features enables windows specific extensions.

Affects os::windows

rs4xx

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

Affects serial2::rs4xx

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.

Enables serde

doc

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

Affects serial2::rs4xx, os::unix, os::windows