Skip to content

Commit 724c49f

Browse files
committed
Add secp256k1-sys
1 parent 9bd0882 commit 724c49f

File tree

102 files changed

+252
-171
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+252
-171
lines changed

Cargo.toml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,34 +11,32 @@ documentation = "https://docs.rs/secp256k1/"
1111
description = "Rust bindings for Pieter Wuille's `libsecp256k1` library. Implements ECDSA for the SECG elliptic curve group secp256k1 and related utilities."
1212
keywords = [ "crypto", "ECDSA", "secp256k1", "libsecp256k1", "bitcoin" ]
1313
readme = "README.md"
14-
build = "build.rs"
15-
links = "secp256k1"
1614
autoexamples = false # Remove when edition 2018 https://github.com/rust-lang/cargo/issues/5330
1715

1816
# Should make docs.rs show all functions, even those behind non-default features
1917
[package.metadata.docs.rs]
2018
features = [ "rand", "rand-std", "serde", "recovery", "endomorphism" ]
2119

22-
[build-dependencies]
23-
cc = ">= 1.0.28, < 1.0.42"
24-
2520
[lib]
2621
name = "secp256k1"
2722
path = "src/lib.rs"
2823

2924
[features]
3025
unstable = []
3126
default = ["std"]
32-
std = []
27+
std = ["secp256k1-sys/std"]
3328
rand-std = ["rand/std"]
34-
recovery = []
35-
endomorphism = []
36-
lowmemory = []
29+
recovery = ["secp256k1-sys/recovery"]
30+
endomorphism = ["secp256k1-sys/endomorphism"]
31+
lowmemory = ["secp256k1-sys/lowmemory"]
3732

3833
# Do not use this feature! HAZMAT. (meant for Bitcoin Core only)
39-
dont_replace_c_symbols = []
34+
dont_replace_c_symbols = ["secp256k1-sys/dont_replace_c_symbols"]
4035
# Do not use this feature! HAZMAT. (meant for Fuzzing only. this is *BROKEN CRYPTOGRAPHY*)
41-
fuzztarget = []
36+
fuzztarget = ["secp256k1-sys/fuzztarget"]
37+
38+
[dependencies]
39+
secp256k1-sys = { version = "0.1.0", default-features = false, path = "./secp256k1-sys" }
4240

4341
[dev-dependencies]
4442
rand = "0.6"

secp256k1-sys/Cargo.toml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
[package]
2+
name = "secp256k1-sys"
3+
version = "0.1.0"
4+
authors = [ "Dawid Ciężarkiewicz <dpc@ucore.info>",
5+
"Andrew Poelstra <apoelstra@wpsoftware.net>",
6+
"Steven Roose <steven@stevenroose.org>" ]
7+
license = "CC0-1.0"
8+
homepage = "https://github.com/rust-bitcoin/rust-secp256k1/"
9+
repository = "https://github.com/rust-bitcoin/rust-secp256k1/"
10+
documentation = "https://docs.rs/secp256k1-sys/"
11+
description = "FFI for Pieter Wuille's `libsecp256k1` library."
12+
keywords = [ "crypto", "ECDSA", "secp256k1", "libsecp256k1", "bitcoin", "ffi" ]
13+
readme = "README.md"
14+
build = "build.rs"
15+
links = "secp256k1"
16+
17+
# Should make docs.rs show all functions, even those behind non-default features
18+
[package.metadata.docs.rs]
19+
features = [ "recovery", "endomorphism", "lowmemory" ]
20+
21+
[build-dependencies]
22+
cc = ">= 1.0.28, <= 1.0.41"
23+
24+
[lib]
25+
name = "secp256k1_sys"
26+
path = "src/lib.rs"
27+
28+
[features]
29+
default = ["std"]
30+
recovery = []
31+
endomorphism = []
32+
lowmemory = []
33+
std = []
34+
35+
# Do not use this feature! HAZMAT. (meant for Bitcoin Core only)
36+
dont_replace_c_symbols = []
37+
# Do not use this feature! HAZMAT. (meant for Fuzzing only. this is *BROKEN CRYPTOGRAPHY*)
38+
fuzztarget = []
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)