Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 75 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ authors.workspace = true
repository.workspace = true

[features]
default = ["ledger", "specter", "coldcard", "bitbox", "jade"]
default = ["ledger", "specter", "coldcard", "bitbox", "jade", "service"]
bitbox = ["tokio", "hidapi", "bitbox-api", "regex"]
coldcard = ["dep:coldcard", "regex"]
specter = ["tokio", "tokio-serial", "serialport"]
jade = ["tokio", "tokio-serial", "serde", "serde_bytes", "serde_cbor", "serialport", "reqwest"]
ledger = ["regex", "tokio", "ledger_bitcoin_client", "ledger-transport-hidapi", "ledger-apdu", "hidapi"]
regex = ["dep:regex"]
service = ["bitbox", "coldcard", "jade", "ledger", "specter", "tracing", "hex", "crossbeam"]

[dependencies]
async-trait = "0.1.52"
Expand Down Expand Up @@ -60,5 +61,10 @@ regex = { version = "1.6.0", optional = true }
# jade & specter & ledger & bitbox
tokio = { version = "1.21.0", features = ["net", "time", "io-util", "sync", "macros"], optional = true }

# service module (requires all device features)
tracing = { version = "0.1.37", optional = true }
hex = { version = "0.4.3", optional = true }
crossbeam = { version = "0.8.4", features = ["crossbeam-channel"], optional = true }

[dev-dependencies]
tokio = { version = "1.21", features = ["macros", "net", "rt", "rt-multi-thread", "io-util", "sync"] }
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,9 @@ A Empty case means the method is unimplemented on the client or device side.
[^3]: https://github.com/Blockstream/Jade
[^4]: https://github.com/LedgerHQ/app-bitcoin-new
[^5]: https://github.com/cryptoadvance/specter-diy

## Service Module

The `service` module provides automatic device discovery and management with support
for multiple concurrent consumers. See [SERVICE.md](SERVICE.md) for detailed
documentation and usage examples.
Loading
Loading