Skip to content

Commit 257c4f7

Browse files
committed
rust: enable size_opt feature on blake2 to reduce binary size
This reduces the binary size by 11576 bytes.
1 parent 6ab1c83 commit 257c4f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rust/bitbox02-rust/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ num-traits = { version = "0.2", default-features = false }
4242
# If you change this, also change src/rust/.cargo/config.toml.
4343
bip32-ed25519 = { git = "https://github.com/digitalbitbox/rust-bip32-ed25519", tag = "v0.1.2", optional = true }
4444
bech32 = { version = "0.11.0", default-features = false, features = ["alloc"], optional = true }
45-
blake2 = { version = "0.10.6", default-features = false, optional = true }
45+
blake2 = { version = "0.10.6", default-features = false, features = ["size_opt"], optional = true }
4646
minicbor = { version = "0.24.0", default-features = false, features = ["alloc"], optional = true }
4747
crc = { version = "3.0.1", optional = true }
4848
ed25519-dalek = { version = "2.0.0", default-features = false, features = ["hazmat"], optional = true }

0 commit comments

Comments
 (0)