Cargo Features

[dependencies]
bmputil = { version = "0.1.3", default-features = false, features = ["backtrace", "detect-backtrace", "vendored"] }
backtrace

Enable backtraces for errors. Requires nightly toolchain.
Automatically enabled if detect-backtrace feature is enabled (default).

Affects error::Error.backtrace

detect-backtrace default

Autoamtically detect if backtrace feature should be enabled by detecting the channel we're being compiled on.

vendored default

Automatically build libusb and statically link it instead of using system libusb.

Enables vendored of rusb

default = detect-backtrace, vendored

These default features are set whenever bmputil is added without default-features = false somewhere in the dependency tree.