Merge rust-bitcoin/rust-bitcoin#4371: Allow using the 'base64' feature in `no_std` environments
418445f26b
Allow using the 'base64' feature in no_std environments (Salvatore Ingala) Pull request description: Gating like the other features should do the trick. ACKs for top commit: apoelstra: ACK 418445f26bc344546c756d9a1991f4e2e75da745; successfully ran local tests; nice! Kixunil: ACK418445f26b
Tree-SHA512: f21e126302f18a261be3b6a16253901017bf3caaa0c1c2e82681d00355f291a5772c793bf376e5746aa2afcc0c8b2c2f85a11ae6f6a90e6fc4e732ce4db89ee7
This commit is contained in:
commit
fa2cda8513
|
@ -16,7 +16,7 @@ exclude = ["tests", "contrib"]
|
||||||
# If you change features or optional dependencies in any way please update the "# Cargo features" section in lib.rs as well.
|
# If you change features or optional dependencies in any way please update the "# Cargo features" section in lib.rs as well.
|
||||||
[features]
|
[features]
|
||||||
default = [ "std", "secp-recovery" ]
|
default = [ "std", "secp-recovery" ]
|
||||||
std = ["base58/std", "bech32/std", "hashes/std", "hex/std", "internals/std", "io/std", "primitives/std", "secp256k1/std", "units/std", "bitcoinconsensus?/std"]
|
std = ["base58/std", "bech32/std", "hashes/std", "hex/std", "internals/std", "io/std", "primitives/std", "secp256k1/std", "units/std", "base64?/std", "bitcoinconsensus?/std"]
|
||||||
rand-std = ["secp256k1/rand", "std"]
|
rand-std = ["secp256k1/rand", "std"]
|
||||||
rand = ["secp256k1/rand"]
|
rand = ["secp256k1/rand"]
|
||||||
serde = ["dep:serde", "hashes/serde", "internals/serde", "primitives/serde", "secp256k1/serde", "units/serde"]
|
serde = ["dep:serde", "hashes/serde", "internals/serde", "primitives/serde", "secp256k1/serde", "units/serde"]
|
||||||
|
@ -36,7 +36,7 @@ secp256k1 = { version = "0.30.0", default-features = false, features = ["hashes"
|
||||||
units = { package = "bitcoin-units", path = "../units", default-features = false, features = ["alloc"] }
|
units = { package = "bitcoin-units", path = "../units", default-features = false, features = ["alloc"] }
|
||||||
|
|
||||||
arbitrary = { version = "1.4", optional = true }
|
arbitrary = { version = "1.4", optional = true }
|
||||||
base64 = { version = "0.22.0", optional = true }
|
base64 = { version = "0.22.0", optional = true, default-features = false, features = ["alloc"] }
|
||||||
# `bitcoinconsensus` version includes metadata which indicates the version of Core. Use `cargo tree` to see it.
|
# `bitcoinconsensus` version includes metadata which indicates the version of Core. Use `cargo tree` to see it.
|
||||||
bitcoinconsensus = { version = "0.106.0", default-features = false, optional = true }
|
bitcoinconsensus = { version = "0.106.0", default-features = false, optional = true }
|
||||||
serde = { version = "1.0.103", default-features = false, features = [ "derive", "alloc" ], optional = true }
|
serde = { version = "1.0.103", default-features = false, features = [ "derive", "alloc" ], optional = true }
|
||||||
|
|
Loading…
Reference in New Issue