bitbox-api

Crates.iobitbox-api
lib.rsbitbox-api
version0.10.0
created_at2023-09-12 10:23:19.050048+00
updated_at2025-09-16 12:28:29.657422+00
descriptionA library to interact with BitBox hardware wallets
homepagehttps://bitbox.swiss/
repositoryhttps://github.com/BitBoxSwiss/bitbox-api-rs/
max_upload_size
id970559
size682,384
(benma)

documentation

README

BitBox02 library

A library to interact with the BitBox02 hardware wallet.

Check out examples/singlethreaded.rs for an example.

To run the example:

cargo run --example singlethreaded --features=usb,tokio/rt,tokio/macros

See Cargo.toml for further examples.

Simulator tests

tests/simulator_tests.rs runs a set of integration tests against BitBox02 simulators. They are automatically downloaded based on tests/simulators.json, and each one is tested with.

To run them, use:

cargo test --features=simulator,tokio -- --test-threads 1

Use --nocapture to also see some useful simulator output.

cargo test --features=simulator,tokio -- --test-threads 1 --nocapture

If you want to test against a custom simulator build (e.g. when developing new firmware features), you can run:

SIMULATOR=/path/to/simulator cargo test --features=simulator,tokio -- --test-threads 1

In this case, only the given simulator will be used, and the ones defined in simulators.json will be ignored.

Commit count: 188

cargo fmt