From c50411f798202d1a0e141d80f4f303d654f16268 Mon Sep 17 00:00:00 2001 From: Andrew Poelstra Date: Wed, 5 Jan 2022 15:56:49 +0000 Subject: [PATCH] release secp256k1-sys 0.4.2; make new `ZERO` type publically accessible --- Cargo.toml | 2 +- secp256k1-sys/Cargo.toml | 2 +- secp256k1-sys/src/types.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c9c6351..ef09a37 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,7 +29,7 @@ global-context = ["std", "rand-std", "global-context-less-secure"] global-context-less-secure = [] [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 } rand = { version = "0.6", default-features = false, optional = true } serde = { version = "1.0", default-features = false, optional = true } diff --git a/secp256k1-sys/Cargo.toml b/secp256k1-sys/Cargo.toml index 9d5f4fb..346b739 100644 --- a/secp256k1-sys/Cargo.toml +++ b/secp256k1-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "secp256k1-sys" -version = "0.4.1" +version = "0.4.2" authors = [ "Dawid Ciężarkiewicz ", "Andrew Poelstra ", "Steven Roose " ] diff --git a/secp256k1-sys/src/types.rs b/secp256k1-sys/src/types.rs index aa397c7..cb8b169 100644 --- a/secp256k1-sys/src/types.rs +++ b/secp256k1-sys/src/types.rs @@ -42,7 +42,7 @@ impl 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)))]