Crates.io | bitbox-api |
lib.rs | bitbox-api |
version | 0.6.0 |
source | src |
created_at | 2023-09-12 10:23:19.050048 |
updated_at | 2024-10-31 08:17:55.842533 |
description | A library to interact with the BitBox02 hardware wallet |
homepage | https://bitbox.swiss/ |
repository | https://github.com/BitBoxSwiss/bitbox-api-rs/ |
max_upload_size | |
id | 970559 |
size | 641,757 |
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.
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
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
In this case, only the given simulator will be used, and the ones defined in simulators.json will be ignored.