Cargo Features
[dependencies]
usbw = { version = "0.0.2", default-features = false, features = ["std", "libusb", "winusb"] }
- default = libusb
-
The
libusb
feature is set by default wheneverusbw
is added without
somewhere in the dependency tree.default-features = false - std libusb winusb?
- libusb default = libc, libusb1-sys, std
-
Affects
usbw::libusb
… - winusb = std
-
Affects
usbw::winusb
…
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.
- winapi winusb?
- libc libusb
- libusb1-sys libusb
-
Enables libusb1-sys ^0.3.7