Cargo Features

[dependencies]
serialport = { version = "4.3.0", default-features = false, features = ["usbportinfo-interface", "serde", "libudev"] }
default = libudev

The libudev feature is set by default whenever serialport is added without default-features = false somewhere in the dependency tree.

usbportinfo-interface

TODO: Make the feature unconditionally available with the next major release (5.0) and remove this feature gate.

Affects serialport::UsbPortInfo.interface

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

serde implicit feature

Enables serde

serde:

A generic serialization/deserialization framework

libudev linux not musl default