Cargo Features
[dependencies]
webusb = { version = "0.5.0", default-features = false, features = ["libusb", "deno_ffi", "serde_derive"] }
- default = libusb
-
The
libusb
feature is set by default wheneverwebusb
is added without
somewhere in the dependency tree.default-features = false - libusb default deno_ffi? = libusb1-sys, rusb
-
Affects
webusb::Context
… - deno_ffi = deno_bindgen, libusb, once_cell, serde
-
Affects
webusb::ffi
,webusb::UsbDevice.rid
… - serde_derive = serde
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.
- rusb libusb
-
Enables rusb ^0.8.1
- libusb1-sys libusb
-
Enables libusb1-sys ^0.5.0
- serde deno_ffi? serde_derive?
- deno_bindgen deno_ffi?
-
Enables deno_bindgen ^0.6.0
- once_cell deno_ffi?