Cargo Features

bitbox-api has no features set by default.

[dependencies]
bitbox-api = { version = "0.3.1", features = ["multithreaded", "usb", "wasm", "rlp", "tokio"] }
multithreaded

Implement Sync+Send for PairedBitBox and PairingBitBox. This may or may not cause trouble on macOS, see: https://github.com/libusb/hidapi/issues/503

Affects util::Threading

usb

Enables hidapi

Affects bitbox-api::usb, communication::FIRMWARE_CMD

wasm

Enables enum-assoc, js-sys, serde-wasm-bindgen ^0.5.0, wasm-bindgen, wasm-bindgen-futures, and web-sys, secp-lowmemory and serde of bitcoin ^0.31, serde of hex and js of getrandom

getrandom:

Feature to enable JavaScript bindings on wasm*-unknown-unknown

Affects communication::U2fWsCommunication, keypath::serde_deserialize, bitbox-api::wasm, communication::FIRMWARE_CMD

Features from optional dependencies

rlp implicit feature

Enables rlp

rlp:

Recursive-length prefix encoding, decoding, and compression

tokio implicit feature

Enables tokio

tokio:

An event-driven, non-blocking I/O platform for writing asynchronous I/O backed applications

Affects runtime::TokioRuntime