From 6511fad23172ab2920bac51ac8efd7d583f371eb Mon Sep 17 00:00:00 2001 From: Elichai Turkel Date: Thu, 27 Aug 2020 22:58:00 +0300 Subject: [PATCH] Sort Cargo.toml files --- Cargo.toml | 22 ++++------------------ secp256k1-sys/Cargo.toml | 4 ---- 2 files changed, 4 insertions(+), 22 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1e52a41..c9fcc51 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,4 @@ [package] - name = "secp256k1" version = "0.19.0" authors = [ "Dawid Ciężarkiewicz ", @@ -17,10 +16,6 @@ autoexamples = false # Remove when edition 2018 https://github.com/rust-lang/car [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"] @@ -40,6 +35,10 @@ fuzztarget = ["secp256k1-sys/fuzztarget"] [dependencies] secp256k1-sys = { version = "0.3.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 } + [dev-dependencies] rand = "0.6" @@ -51,19 +50,6 @@ bitcoin_hashes = "0.9" wasm-bindgen-test = "0.3" rand = { version = "0.6", features = ["wasm-bindgen"] } -[dependencies.bitcoin_hashes] -version = "0.9" -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" diff --git a/secp256k1-sys/Cargo.toml b/secp256k1-sys/Cargo.toml index 5f8d67f..526140e 100644 --- a/secp256k1-sys/Cargo.toml +++ b/secp256k1-sys/Cargo.toml @@ -21,10 +21,6 @@ features = [ "recovery", "endomorphism", "lowmemory" ] [build-dependencies] cc = "1.0.28" -[lib] -name = "secp256k1_sys" -path = "src/lib.rs" - [features] default = ["std"] recovery = []