Cargo Features
[dependencies]
ledger-lib = { version = "0.1.0", default-features = false, features = ["transport_usb", "transport_tcp", "transport_ble", "transport_usb_libusb", "transport_usb_hidraw", "clap", "unstable_async_trait"] }
- transport_usb default = hidapi
-
Select enabled transports
- transport_tcp default
- transport_ble default = btleplug
- transport_usb_libusb default
-
Switch libusb backends,
libusb
works better with WSL so we're using that by defaultEnables linux-static-libusb of hidapi
- transport_usb_hidraw
-
Enables linux-static-hidraw of hidapi
- clap
-
Enable
clap
attributes on exported objectsEnables clap
- unstable_async_trait
-
enable
async_fn_in_trait
nightly feature, removes need forasync_trait
macros - default = transport_ble, transport_tcp, transport_usb, transport_usb_libusb
-
These default features are set whenever
ledger-lib
is added without
somewhere in the dependency tree.default-features = false
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.