Skip to content

Commit

Permalink
Merge branch 'btc-optional'
Browse files Browse the repository at this point in the history
  • Loading branch information
benma committed Sep 3, 2024
2 parents affe149 + 2c4e472 commit b399d44
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 0 additions & 4 deletions src/rust/bitbox02-rust-c/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ target-bootloader-btc-production = ["bootloader", "platform-bitbox02"]
target-firmware = ["firmware", "platform-bitbox02", "app-bitcoin", "app-litecoin", "app-ethereum", "app-u2f", "app-cardano"]
target-firmware-btc = ["firmware", "platform-bitbox02", "app-bitcoin"]
target-factory-setup = [
# enable these features in dependencies
# enable the bitcoin dep as workaround, because the bitbox02-rust::bip32 crate etc. are not
# currently needed in the factorysetup, but not explicitly excluded from compilation.
"bitbox02-rust/bitcoin",
# enable these features
"firmware",
"platform-bitbox02",
Expand Down
3 changes: 1 addition & 2 deletions src/rust/bitbox02-rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ ed25519-dalek = { version = "2.1.1", default-features = false, features = ["hazm
hmac = { version = "0.12.1", default-features = false, features = ["reset"] }

miniscript = { version = "12.2.0", default-features = false, features = ["no-std"], optional = true }
bitcoin = { workspace = true, optional = true }
bitcoin = { workspace = true }
# We don't rely on this dep directly, the miniscript/bitcoin deps do. We list it here to enable the
# small-hash feature to reduce the binary size, saving around 2784 bytes (as measured at time of
# writing, this might fluctuate over time).
Expand Down Expand Up @@ -81,7 +81,6 @@ app-bitcoin = [
# enable these dependencies
"bech32",
"miniscript",
"bitcoin",
# enable this feature in the deps
"bitbox02/app-bitcoin",
]
Expand Down

0 comments on commit b399d44

Please sign in to comment.