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 default

Enables linux-static-libusb of hidapi

transport_usb_hidraw

Enables linux-static-hidraw of hidapi

clap

Enable clap attributes on exported objects

Enables clap

unstable_async_trait

enable async_fn_in_trait nightly feature, removes need for async_trait macros

default = transport_ble, transport_tcp, transport_usb, transport_usb_libusb

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

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.

hidapi transport_usb transport_usb_hidraw? transport_usb_libusb
btleplug transport_ble

Enables btleplug ^0.10.5