From abad0ba85856190bc8cd78c2581f907d31483dab Mon Sep 17 00:00:00 2001 From: Danny Willems Date: Wed, 11 Sep 2024 18:25:00 -0700 Subject: [PATCH] Curves: start homogeneizing cargo toml It helps sharing all the dependencies. --- curves/bls12_377/Cargo.toml | 37 ++++++++++++++++++++----------------- curves/bls12_381/Cargo.toml | 33 ++++++++++++++++++--------------- curves/bn254/Cargo.toml | 35 +++++++++++++++++++---------------- 3 files changed, 57 insertions(+), 48 deletions(-) diff --git a/curves/bls12_377/Cargo.toml b/curves/bls12_377/Cargo.toml index 730b4d2d7..ead05de88 100644 --- a/curves/bls12_377/Cargo.toml +++ b/curves/bls12_377/Cargo.toml @@ -1,30 +1,33 @@ [package] name = "ark-bls12-377" -version = "0.4.0" -authors = [ "arkworks contributors" ] description = "The BLS12-377 pairing-friendly elliptic curve" -homepage = "https://arkworks.rs" -repository = "https://github.com/arkworks-rs/algebra" +version.workspace = true +authors.workspace = true +homepage.workspace = true +repository.workspace = true +categories.workspace = true +include.workspace = true +license.workspace = true +edition.workspace = true +rust-version.workspace = true +metadata.docs.rs.workspace = true +metadata.release.workspace = true documentation = "https://docs.rs/ark-bls12-377/" keywords = ["cryptography", "finite-fields", "elliptic-curves" ] -categories = ["cryptography"] -include = ["Cargo.toml", "src", "README.md", "LICENSE-APACHE", "LICENSE-MIT"] -license = "MIT/Apache-2.0" -edition = "2021" [dependencies] -ark-ff = { version= "0.4.0", default-features = false } -ark-ec = { version= "0.4.0", default-features = false } -ark-r1cs-std = { version= "0.4.0", default-features = false, optional = true } -ark-std = { version = "0.4.0", default-features = false } +ark-ff.workspace = true +ark-ec.workspace = true +ark-r1cs-std.workspace = true +ark-std.workspace = true [dev-dependencies] -ark-relations = { version= "0.4.0", default-features = false } -ark-serialize = { version = "0.4.0", default-features = false } -ark-algebra-test-templates = { version = "0.4.0", default-features = false } -ark-algebra-bench-templates = { version = "0.4.0", default-features = false } +ark-relations.workspace = true +ark-serialize.workspace = true +ark-algebra-test-templates.workspace = true +ark-algebra-bench-templates.workspace = true ark-curve-constraint-tests = { path = "../curve-constraint-tests", default-features = false } -sha2 = { version = "0.10", default-features = false } +sha2.workspace = true [features] default = [ "curve" ] diff --git a/curves/bls12_381/Cargo.toml b/curves/bls12_381/Cargo.toml index 83566a410..d0dab6176 100644 --- a/curves/bls12_381/Cargo.toml +++ b/curves/bls12_381/Cargo.toml @@ -1,27 +1,30 @@ [package] name = "ark-bls12-381" -version = "0.4.0" -authors = [ "arkworks contributors" ] +version.workspace = true +authors.workspace = true +homepage.workspace = true +repository.workspace = true +categories.workspace = true +include.workspace = true +license.workspace = true +edition.workspace = true +rust-version.workspace = true +metadata.docs.rs.workspace = true +metadata.release.workspace = true description = "The BLS12-381 pairing-friendly elliptic curve" -homepage = "https://arkworks.rs" -repository = "https://github.com/arkworks-rs/algebra" documentation = "https://docs.rs/ark-bls12-381/" keywords = ["cryptography", "finite-fields", "elliptic-curves" ] -categories = ["cryptography"] -include = ["Cargo.toml", "src", "README.md", "LICENSE-APACHE", "LICENSE-MIT"] -license = "MIT/Apache-2.0" -edition = "2021" [dependencies] -ark-ff = { version= "0.4.0", default-features = false } -ark-ec = { version= "0.4.0" } -ark-std = { version = "0.4.0", default-features = false } -ark-serialize = { version = "0.4.0", default-features = false } +ark-ff.workspace = true +ark-ec.workspace = true +ark-std.workspace = true +ark-serialize.workspace = true [dev-dependencies] -ark-algebra-test-templates = { version = "0.4.0", default-features = false } -ark-algebra-bench-templates = { version = "0.4.0", default-features = false } -hex = "^0.4.0" +ark-algebra-test-templates.workspace = true +ark-algebra-bench-templates.workspace = true +hex.workspace = true [features] default = [ "curve" ] diff --git a/curves/bn254/Cargo.toml b/curves/bn254/Cargo.toml index 42ac33cf0..25385c4f1 100644 --- a/curves/bn254/Cargo.toml +++ b/curves/bn254/Cargo.toml @@ -1,29 +1,32 @@ [package] name = "ark-bn254" -version = "0.4.0" -authors = [ "arkworks contributors" ] +version.workspace = true +authors.workspace = true +homepage.workspace = true +repository.workspace = true +categories.workspace = true +include.workspace = true +license.workspace = true +edition.workspace = true +rust-version.workspace = true +metadata.docs.rs.workspace = true +metadata.release.workspace = true description = "The BN254 pairing-friendly elliptic curve" -homepage = "https://arkworks.rs" -repository = "https://github.com/arkworks-rs/algebra" documentation = "https://docs.rs/ark-bn254/" keywords = ["cryptography", "finite-fields", "elliptic-curves" ] -categories = ["cryptography"] -include = ["Cargo.toml", "src", "README.md", "LICENSE-APACHE", "LICENSE-MIT"] -license = "MIT/Apache-2.0" -edition = "2021" [dependencies] -ark-ff = { version= "0.4.0", default-features = false } -ark-ec = { version= "0.4.0", default-features = false } -ark-std = { version = "0.4.0", default-features = false } -ark-r1cs-std = { version = "0.4.0", default-features = false, optional = true } +ark-ff.workspace = true +ark-ec.workspace = true +ark-std.workspace = true +ark-r1cs-std.workspace = true [dev-dependencies] -ark-serialize = { version = "0.4.0", default-features = false } -ark-algebra-test-templates = { version = "0.4.0", default-features = false } -ark-algebra-bench-templates = { version = "0.4.0", default-features = false } +ark-serialize.workspace = true +ark-algebra-test-templates.workspace = true +ark-algebra-bench-templates.workspace = true ark-curve-constraint-tests = { path = "../curve-constraint-tests", default-features = false } -ark-relations = { version = "0.4.0", default-features = false } +ark-relations.workspace = true [features] default = [ "curve" ]