Skip to content

Commit 9048391

Browse files
committed
Merge branch 'sha2-small'
2 parents 094f049 + a39e337 commit 9048391

File tree

11 files changed

+342
-19
lines changed

11 files changed

+342
-19
lines changed

src/rust/Cargo.lock

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

src/rust/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ bech32 = { version = "0.11.0", default-features = false }
3232
bitcoin = { version = "0.32.2", default-features = false }
3333
hex = { version = "0.4", default-features = false, features = ["alloc"] }
3434
num-bigint = { version = "0.4.6", default-features = false }
35-
sha2 = { version = "0.10.8", default-features = false }
35+
# force-soft-compact reduces the binary size by ~3kB. In future versions of sha2 this will change to
36+
# be a backend config option. See https://github.com/RustCrypto/hashes/pull/686.
37+
sha2 = { version = "0.10.9", default-features = false, features = ["force-soft-compact"] }
3638
sha3 = { version = "0.10.8", default-features = false }
3739
# We don't rely on this dep directly, the sha3 dep does. We list it here to enable the
3840
# no_unroll feature to reduce the binary size, saving around 1528 bytes (as measured at time of

src/rust/vendor/sha2/.cargo-checksum.json

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

src/rust/vendor/sha2/CHANGELOG.md

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

src/rust/vendor/sha2/Cargo.lock

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

src/rust/vendor/sha2/Cargo.toml

Lines changed: 32 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/rust/vendor/sha2/src/lib.rs

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

src/rust/vendor/sha2/src/sha256.rs

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/rust/vendor/sha2/src/sha256/soft_compact.rs

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

src/rust/vendor/sha2/src/sha512.rs

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)