Skip to content

Commit 555833b

Browse files
committed
Disable bitcoin_hashes default features
Currently we use default features for the `bitcoin_hashes` dependency, doing so breaks the `no-std` feature in `rust-bitcoin` because `std` is part of `bitcoin_hashes` default feature set. Disable `bitcoin_hashes` default features, no changes to `rust-bitcoin` are require after this change since we manually turn on `std` and `alloc` as part of the `std`/`no-std` features of `rust-bitcoin`. For other users of `rust-secp256k1` this is a breaking change but is unlikely to cause too much bother because `std` is so commonly used.
1 parent b6f169f commit 555833b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ global-context-less-secure = []
3838
[dependencies]
3939
secp256k1-sys = { version = "0.4.2", default-features = false, path = "./secp256k1-sys" }
4040

41-
bitcoin_hashes = { version = "0.10", optional = true }
41+
bitcoin_hashes = { version = "0.10", default-features = false, optional = true }
4242
rand = { version = "0.6", default-features = false, optional = true }
4343
serde = { version = "1.0", default-features = false, optional = true }
4444

0 commit comments

Comments
 (0)