[build-dependencies.prost-build]
version = "0.11"
[dependencies.async-trait]
version = "0.1.68"
[dependencies.base32]
version = "0.4"
[dependencies.bitcoin]
features = ["base64"]
version = "0.32"
[dependencies.byteorder]
version = "1.3.2"
[dependencies.chrono]
default-features = false
features = ["clock"]
version = "0.4.38"
[dependencies.enum-assoc]
optional = true
version = "1.1.0"
[dependencies.getrandom]
version = "0.2"
[dependencies.hex]
version = "0.4"
[dependencies.hidapi]
optional = true
version = "2.3"
[dependencies.js-sys]
optional = true
version = "0.3.64"
[dependencies.noise-protocol]
version = "0.2"
[dependencies.noise-rust-crypto]
version = "0.6"
[dependencies.num-bigint]
version = "0.4"
[dependencies.prost]
version = "0.13"
[dependencies.rlp]
optional = true
version = "0.5"
[dependencies.semver]
version = "1.0.17"
[dependencies.serde]
features = ["derive"]
version = "1.0"
[dependencies.serde-wasm-bindgen]
optional = true
version = "0.6.5"
[dependencies.serde_json]
version = "1.0"
[dependencies.thiserror]
version = "1.0"
[dependencies.tokio]
features = ["time"]
optional = true
version = "1"
[dependencies.wasm-bindgen]
optional = true
version = "0.2.92"
[dependencies.wasm-bindgen-futures]
optional = true
version = "0.4.42"
[dependencies.web-sys]
features = ["Storage", "Window"]
optional = true
version = "0.3.64"
[dependencies.zeroize]
version = "1"
[dev-dependencies.async-trait]
version = "0.1.68"
[dev-dependencies.bitcoinconsensus]
default-features = false
version = "0.106.0"
[dev-dependencies.miniscript]
version = "12.0.0"
[dev-dependencies.reqwest]
version = "0.12"
[dev-dependencies.tokio]
features = ["time", "macros", "rt", "fs"]
version = "1"
[dev-dependencies.url]
version = "2.5"
[dev-dependencies.wasm-bindgen-test]
version = "0.3.42"
[[example]]
name = "btc_miniscript"
path = "examples/btc_miniscript.rs"
required-features = ["usb", "tokio/rt", "tokio/macros"]
[[example]]
name = "btc_sign_msg"
path = "examples/btc_sign_msg.rs"
required-features = ["usb", "tokio/rt", "tokio/macros"]
[[example]]
name = "btc_sign_op_return"
path = "examples/btc_sign_op_return.rs"
required-features = ["usb", "tokio/rt", "tokio/macros"]
[[example]]
name = "btc_sign_psbt"
path = "examples/btc_sign_psbt.rs"
required-features = ["usb", "tokio/rt", "tokio/macros"]
[[example]]
name = "btc_signtx"
path = "examples/btc_signtx.rs"
required-features = ["usb", "tokio/rt", "tokio/macros"]
[[example]]
name = "cardano"
path = "examples/cardano.rs"
required-features = ["usb", "tokio/rt", "tokio/macros"]
[[example]]
name = "eth"
path = "examples/eth.rs"
required-features = ["usb", "tokio/rt", "tokio/macros", "rlp"]
[[example]]
name = "multithreaded"
path = "examples/multithreaded.rs"
required-features = ["usb", "tokio/rt", "tokio/macros", "tokio/rt-multi-thread", "multithreaded"]
[[example]]
name = "simulator"
path = "examples/simulator.rs"
required-features = ["simulator", "tokio/rt", "tokio/macros", "tokio/rt-multi-thread", "multithreaded"]
[[example]]
name = "singlethreaded"
path = "examples/singlethreaded.rs"
required-features = ["usb", "tokio/rt", "tokio/macros"]
[features]
multithreaded = []
simulator = []
usb = ["dep:hidapi"]
wasm = ["dep:enum-assoc", "dep:js-sys", "dep:serde-wasm-bindgen", "dep:wasm-bindgen", "dep:wasm-bindgen-futures", "dep:web-sys", "getrandom/js", "hex/serde", "bitcoin/serde", "bitcoin/secp-lowmemory"]
[lib]
crate-type = ["cdylib", "rlib"]
name = "bitbox_api"
path = "src/lib.rs"
[package]
authors = ["Marko Bencun <benma@bitbox.swiss>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["api-bindings", "cryptography"]
description = "A library to interact with BitBox hardware wallets"
edition = "2021"
homepage = "https://bitbox.swiss/"
keywords = ["bitbox", "api", "bitcoin", "wasm"]
license = "Apache-2.0"
name = "bitbox-api"
readme = "README-rust.md"
repository = "https://github.com/BitBoxSwiss/bitbox-api-rs/"
version = "0.11.0"
[profile.release]
codegen-units = 1
lto = true
opt-level = "z"
[[test]]
name = "test_btc"
path = "tests/test_btc.rs"
[[test]]
name = "test_btc_psbt"
path = "tests/test_btc_psbt.rs"
[[test]]
name = "test_cardano"
path = "tests/test_cardano.rs"
[[test]]
name = "test_device"
path = "tests/test_device.rs"