Skip to content

Commit 851ed85

Browse files
committed
bump secp-sys version; drop endomorphism flag
1 parent 8c74e53 commit 851ed85

File tree

5 files changed

+6
-10
lines changed

5 files changed

+6
-10
lines changed

Diff for: Cargo.toml

+2-3
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,19 @@ autoexamples = false # Remove when edition 2018 https://github.com/rust-lang/car
1414

1515
# Should make docs.rs show all functions, even those behind non-default features
1616
[package.metadata.docs.rs]
17-
features = [ "rand", "rand-std", "serde", "recovery", "endomorphism" ]
17+
features = [ "rand", "rand-std", "serde", "recovery" ]
1818

1919
[features]
2020
unstable = ["recovery", "rand-std"]
2121
default = ["std"]
2222
std = ["secp256k1-sys/std"]
2323
rand-std = ["rand/std"]
2424
recovery = ["secp256k1-sys/recovery"]
25-
endomorphism = ["secp256k1-sys/endomorphism"]
2625
lowmemory = ["secp256k1-sys/lowmemory"]
2726
global-context = ["std", "rand-std"]
2827

2928
[dependencies]
30-
secp256k1-sys = { version = "0.3.1", default-features = false, path = "./secp256k1-sys" }
29+
secp256k1-sys = { version = "0.4.0", default-features = false, path = "./secp256k1-sys" }
3130
bitcoin_hashes = { version = "0.9", optional = true }
3231
rand = { version = "0.6", default-features = false, optional = true }
3332
serde = { version = "1.0", default-features = false, optional = true }

Diff for: contrib/test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh -ex
22

3-
FEATURES="bitcoin_hashes endomorphism global-context lowmemory rand rand-std recovery serde"
3+
FEATURES="bitcoin_hashes global-context lowmemory rand rand-std recovery serde"
44

55
# Use toolchain if explicitly specified
66
if [ -n "$TOOLCHAIN" ]

Diff for: no_std_test/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ impl RngCore for FakeRng {
8383

8484
#[start]
8585
fn start(_argc: isize, _argv: *const *const u8) -> isize {
86-
let mut buf = [AlignedType::zeroed(); 37_000];
86+
let mut buf = [AlignedType::zeroed(); 70_000];
8787
let size = Secp256k1::preallocate_size();
8888
unsafe { libc::printf("needed size: %d\n\0".as_ptr() as _, size) };
8989

Diff for: secp256k1-sys/Cargo.toml

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "secp256k1-sys"
3-
version = "0.3.1"
3+
version = "0.4.0"
44
authors = [ "Dawid Ciężarkiewicz <[email protected]>",
55
"Andrew Poelstra <[email protected]>",
66
"Steven Roose <[email protected]>" ]
@@ -16,7 +16,7 @@ links = "rustsecp256k1_v0_4_0"
1616

1717
# Should make docs.rs show all functions, even those behind non-default features
1818
[package.metadata.docs.rs]
19-
features = [ "recovery", "endomorphism", "lowmemory" ]
19+
features = [ "recovery", "lowmemory" ]
2020

2121
[build-dependencies]
2222
cc = "1.0.28"
@@ -27,7 +27,6 @@ libc = "0.2"
2727
[features]
2828
default = ["std"]
2929
recovery = []
30-
endomorphism = []
3130
lowmemory = []
3231
std = []
3332

Diff for: secp256k1-sys/build.rs

-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ fn main() {
4848
base_config.define("ECMULT_WINDOW_SIZE", Some("15")); // This is the default in the configure file (`auto`)
4949
}
5050
base_config.define("USE_EXTERNAL_DEFAULT_CALLBACKS", Some("1"));
51-
#[cfg(feature = "endomorphism")]
52-
base_config.define("USE_ENDOMORPHISM", Some("1"));
5351
#[cfg(feature = "recovery")]
5452
base_config.define("ENABLE_MODULE_RECOVERY", Some("1"));
5553

0 commit comments

Comments
 (0)