Cargo Features
[dependencies]
serialport = { version = "4.6.0", default-features = false, features = ["ignore-hardware-tests", "usbportinfo-interface", "serde", "libudev"] }
- default = libudev
-
The
libudev
feature is set by default wheneverserialport
is added without
somewhere in the dependency tree.default-features = false - 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.