Merge rust-bitcoin/rust-secp256k1#357: release secp256k1-sys 0.4.2; make new `ZERO` type publically accessible
c50411f798
release secp256k1-sys 0.4.2; make new `ZERO` type publically accessible (Andrew Poelstra) Pull request description: Exposes the new const object provided by #345 ACKs for top commit: elichai: ACKc50411f798
Tree-SHA512: 42fce191b68a88811c339ff267dafbb616e765108f5b2e70514b5153f64ef5152f5704982ddc0b20ece5ad15da23927e18f9c78af2763ef971c0e3b9bbf490a5
This commit is contained in:
commit
f7baa53b94
|
@ -29,7 +29,7 @@ global-context = ["std", "rand-std", "global-context-less-secure"]
|
||||||
global-context-less-secure = []
|
global-context-less-secure = []
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
secp256k1-sys = { version = "0.4.1", default-features = false, path = "./secp256k1-sys" }
|
secp256k1-sys = { version = "0.4.2", default-features = false, path = "./secp256k1-sys" }
|
||||||
bitcoin_hashes = { version = "0.10", optional = true }
|
bitcoin_hashes = { version = "0.10", optional = true }
|
||||||
rand = { version = "0.6", default-features = false, optional = true }
|
rand = { version = "0.6", default-features = false, optional = true }
|
||||||
serde = { version = "1.0", default-features = false, optional = true }
|
serde = { version = "1.0", default-features = false, optional = true }
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "secp256k1-sys"
|
name = "secp256k1-sys"
|
||||||
version = "0.4.1"
|
version = "0.4.2"
|
||||||
authors = [ "Dawid Ciężarkiewicz <dpc@ucore.info>",
|
authors = [ "Dawid Ciężarkiewicz <dpc@ucore.info>",
|
||||||
"Andrew Poelstra <apoelstra@wpsoftware.net>",
|
"Andrew Poelstra <apoelstra@wpsoftware.net>",
|
||||||
"Steven Roose <steven@stevenroose.org>" ]
|
"Steven Roose <steven@stevenroose.org>" ]
|
||||||
|
|
|
@ -42,7 +42,7 @@ impl AlignedType {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A static zeroed out AlignedType for use in static assignments of [AlignedType; _]
|
/// A static zeroed out AlignedType for use in static assignments of [AlignedType; _]
|
||||||
const ZERO: AlignedType = AlignedType([0u8; 16]);
|
pub const ZERO: AlignedType = AlignedType([0u8; 16]);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(all(feature = "std", not(rust_secp_no_symbol_renaming)))]
|
#[cfg(all(feature = "std", not(rust_secp_no_symbol_renaming)))]
|
||||||
|
|
Loading…
Reference in New Issue