Cargo Features

[dependencies]
serialport = { version = "4.4.0", default-features = false, features = ["ignore-hardware-tests", "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.

ignore-hardware-tests
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