Skip to content

Commit 57e9f70

Browse files
committed
rust: enable the bitcoin_hashes small-hash feature
This reduces the binary size by 2784 bytes.
1 parent b01d38b commit 57e9f70

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/rust/Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/rust/bitbox02-rust/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ hmac = { version = "0.12.1", default-features = false, features = ["reset"] }
4949

5050
miniscript = { version = "11.0.0", default-features = false, features = ["no-std"], optional = true }
5151
bitcoin = { version = "0.31.0", default-features = false, features = ["no-std"], optional = true }
52+
# We don't rely on this dep directly, the miniscript/bitcoin deps do. We list it here to enable the
53+
# small-hash feature to reduce the binary size, saving around 2784 bytes (as measured at time of
54+
# writing, this might fluctuate over time).
55+
bitcoin_hashes = { version = "0.13.0", default-features = false, features = ["small-hash"] }
5256

5357
[dependencies.prost]
5458
# keep version in sync with tools/prost-build/Cargo.toml.

0 commit comments

Comments
 (0)