77 lines
2.2 KiB
TOML
77 lines
2.2 KiB
TOML
[package]
|
|
|
|
name = "secp256k1"
|
|
version = "0.17.2"
|
|
authors = [ "Dawid Ciężarkiewicz <dpc@ucore.info>",
|
|
"Andrew Poelstra <apoelstra@wpsoftware.net>" ]
|
|
license = "CC0-1.0"
|
|
homepage = "https://github.com/rust-bitcoin/rust-secp256k1/"
|
|
repository = "https://github.com/rust-bitcoin/rust-secp256k1/"
|
|
documentation = "https://docs.rs/secp256k1/"
|
|
description = "Rust bindings for Pieter Wuille's `libsecp256k1` library. Implements ECDSA for the SECG elliptic curve group secp256k1 and related utilities."
|
|
keywords = [ "crypto", "ECDSA", "secp256k1", "libsecp256k1", "bitcoin" ]
|
|
readme = "README.md"
|
|
autoexamples = false # Remove when edition 2018 https://github.com/rust-lang/cargo/issues/5330
|
|
|
|
# Should make docs.rs show all functions, even those behind non-default features
|
|
[package.metadata.docs.rs]
|
|
features = [ "rand", "rand-std", "serde", "recovery", "endomorphism" ]
|
|
|
|
[lib]
|
|
name = "secp256k1"
|
|
path = "src/lib.rs"
|
|
|
|
[features]
|
|
unstable = ["recovery", "rand-std"]
|
|
default = ["std"]
|
|
std = ["secp256k1-sys/std"]
|
|
rand-std = ["rand/std"]
|
|
recovery = ["secp256k1-sys/recovery"]
|
|
endomorphism = ["secp256k1-sys/endomorphism"]
|
|
lowmemory = ["secp256k1-sys/lowmemory"]
|
|
|
|
# Use this feature to not compile the bundled libsecp256k1 C symbols,
|
|
# but use external ones. Use this only if you know what you are doing!
|
|
external-symbols = ["secp256k1-sys/external-symbols"]
|
|
|
|
# Do not use this feature! HAZMAT. (meant for Fuzzing only. this is *BROKEN CRYPTOGRAPHY*)
|
|
fuzztarget = ["secp256k1-sys/fuzztarget"]
|
|
|
|
[dependencies]
|
|
secp256k1-sys = { version = "0.1.1", default-features = false, path = "./secp256k1-sys" }
|
|
|
|
[dev-dependencies]
|
|
rand = "0.6"
|
|
rand_core = "0.4"
|
|
serde_test = "1.0"
|
|
bitcoin_hashes = "0.7"
|
|
|
|
[target.wasm32-unknown-unknown.dev-dependencies]
|
|
wasm-bindgen-test = "0.3"
|
|
rand = { version = "0.6", features = ["wasm-bindgen"] }
|
|
|
|
[dependencies.bitcoin_hashes]
|
|
version = "0.7"
|
|
optional = true
|
|
|
|
[dependencies.rand]
|
|
version = "0.6"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.serde]
|
|
version = "1.0"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[[example]]
|
|
name = "sign_verify_recovery"
|
|
required-features = ["recovery"]
|
|
|
|
[[example]]
|
|
name = "sign_verify"
|
|
|
|
[[example]]
|
|
name = "generate_keys"
|
|
required-features = ["rand"]
|