bump secp-sys version; drop endomorphism flag
This commit is contained in:
parent
a93d671d05
commit
e687622a81
|
@ -14,7 +14,7 @@ autoexamples = false # Remove when edition 2018 https://github.com/rust-lang/car
|
|||
|
||||
# Should make docs.rs show all functions, even those behind non-default features
|
||||
[package.metadata.docs.rs]
|
||||
features = [ "rand", "rand-std", "serde", "recovery", "endomorphism" ]
|
||||
features = [ "rand", "rand-std", "serde", "recovery" ]
|
||||
|
||||
[features]
|
||||
unstable = ["recovery", "rand-std"]
|
||||
|
@ -22,12 +22,11 @@ default = ["std"]
|
|||
std = ["secp256k1-sys/std"]
|
||||
rand-std = ["rand/std"]
|
||||
recovery = ["secp256k1-sys/recovery"]
|
||||
endomorphism = ["secp256k1-sys/endomorphism"]
|
||||
lowmemory = ["secp256k1-sys/lowmemory"]
|
||||
global-context = ["std", "rand-std"]
|
||||
|
||||
[dependencies]
|
||||
secp256k1-sys = { version = "0.3.1", default-features = false, path = "./secp256k1-sys" }
|
||||
secp256k1-sys = { version = "0.4.0", default-features = false, path = "./secp256k1-sys" }
|
||||
bitcoin_hashes = { version = "0.9", optional = true }
|
||||
rand = { version = "0.6", default-features = false, optional = true }
|
||||
serde = { version = "1.0", default-features = false, optional = true }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh -ex
|
||||
|
||||
FEATURES="bitcoin_hashes endomorphism global-context lowmemory rand rand-std recovery serde"
|
||||
FEATURES="bitcoin_hashes global-context lowmemory rand rand-std recovery serde"
|
||||
|
||||
# Use toolchain if explicitly specified
|
||||
if [ -n "$TOOLCHAIN" ]
|
||||
|
|
|
@ -83,7 +83,7 @@ impl RngCore for FakeRng {
|
|||
|
||||
#[start]
|
||||
fn start(_argc: isize, _argv: *const *const u8) -> isize {
|
||||
let mut buf = [AlignedType::zeroed(); 37_000];
|
||||
let mut buf = [AlignedType::zeroed(); 70_000];
|
||||
let size = Secp256k1::preallocate_size();
|
||||
unsafe { libc::printf("needed size: %d\n\0".as_ptr() as _, size) };
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "secp256k1-sys"
|
||||
version = "0.3.1"
|
||||
version = "0.4.0"
|
||||
authors = [ "Dawid Ciężarkiewicz <dpc@ucore.info>",
|
||||
"Andrew Poelstra <apoelstra@wpsoftware.net>",
|
||||
"Steven Roose <steven@stevenroose.org>" ]
|
||||
|
@ -16,7 +16,7 @@ links = "rustsecp256k1_v0_4_0"
|
|||
|
||||
# Should make docs.rs show all functions, even those behind non-default features
|
||||
[package.metadata.docs.rs]
|
||||
features = [ "recovery", "endomorphism", "lowmemory" ]
|
||||
features = [ "recovery", "lowmemory" ]
|
||||
|
||||
[build-dependencies]
|
||||
cc = "1.0.28"
|
||||
|
@ -27,7 +27,6 @@ libc = "0.2"
|
|||
[features]
|
||||
default = ["std"]
|
||||
recovery = []
|
||||
endomorphism = []
|
||||
lowmemory = []
|
||||
std = []
|
||||
|
||||
|
|
|
@ -48,8 +48,6 @@ fn main() {
|
|||
base_config.define("ECMULT_WINDOW_SIZE", Some("15")); // This is the default in the configure file (`auto`)
|
||||
}
|
||||
base_config.define("USE_EXTERNAL_DEFAULT_CALLBACKS", Some("1"));
|
||||
#[cfg(feature = "endomorphism")]
|
||||
base_config.define("USE_ENDOMORPHISM", Some("1"));
|
||||
#[cfg(feature = "recovery")]
|
||||
base_config.define("ENABLE_MODULE_RECOVERY", Some("1"));
|
||||
|
||||
|
|
Loading…
Reference in New Issue