Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): avoid duplicate crates #879

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
chore(deps): avoid duplicate crates
rex4539 committed Feb 24, 2025
commit c908a97b6c9a7e13df6f6632952fd0c9cbdc8184
21 changes: 21 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -39,6 +39,27 @@ serde_json = "1.0"

frost-core = { path = "frost-core", version = "2.1.0", default-features = false }
frost-rerandomized = { path = "frost-rerandomized", version = "2.1.0", default-features = false }
byteorder = { version = "1.4", default-features = false }
const-crc32 = "1.2.0"
curve25519-dalek = "=4.1.3"
debugless-unwrap = "0.0.4"
derive-getters = "0.5.0"
ed25519-dalek = "2.1.0"
ed448-goldilocks = "0.9.0"
itertools = { version = "0.14.0", default-features = false }
k256 = { version = "0.13.0", default-features = false }
p256 = { version = "0.13.0", default-features = false }
postcard = "1.0.0"
regex = "1.6.0"
secp256k1 = "0.30.0"
serde = { version = "1.0.160", default-features = false }
serdect = "0.2.0"
sha2 = { version = "0.10.2", default-features = false }
sha3 = { version = "0.10.6", default-features = false }
thiserror = { version = "2.0.3", default-features = false }
thiserror-nostd-notrait = { version = "1.0.29", default-features = false }
visibility = "0.1.0"
zeroize = { version = "1.5.4", default-features = false }

[profile.test.package."*"]
opt-level = 3
28 changes: 14 additions & 14 deletions frost-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -15,25 +15,25 @@ features = ["serde"]
rustdoc-args = ["--cfg", "docsrs"]

[dependencies]
byteorder = { version = "1.4", default-features = false }
byteorder = { workspace = true }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good PR, but I think we have to decide whether we want to use the syntax byteorder.workspace = true or byteorder = { workspace = true }

const-crc32 = { version = "1.2.0", package = "const-crc32-nostd" }
document-features.workspace = true
debugless-unwrap = "0.0.4"
derive-getters = "0.5.0"
debugless-unwrap = { workspace = true }
derive-getters = { workspace = true }
hex.workspace = true
postcard = { version = "1.0.0", features = ["alloc"], optional = true }
rand_core = { version = "0.6", default-features = false }
serde = { version = "1.0.160", default-features = false, features = ["derive"], optional = true }
serdect = { version = "0.2.0", optional = true }
thiserror-nostd-notrait = { version = "1.0.29", default-features = false }
thiserror = { version = "2.0.3", default-features = false, optional = true }
visibility = "0.1.0"
zeroize = { version = "1.5.4", default-features = false, features = ["derive"] }
itertools = { version = "0.14.0", default-features = false }
postcard = { workspace = true, features = ["alloc"], optional = true }
rand_core = { workspace = true }
serde = { workspace = true, features = ["derive"], optional = true }
serdect = { workspace = true, optional = true }
thiserror-nostd-notrait = { workspace = true }
thiserror = { workspace = true, optional = true }
visibility = { workspace = true }
zeroize = { workspace = true, features = ["derive"] }
itertools = { workspace = true }

# Test dependencies used with the test-impl feature
proptest = { version = "1.0", optional = true }
serde_json = { version = "1.0", optional = true }
proptest = { workspace = true, optional = true }
serde_json = { workspace = true, optional = true }
criterion = { workspace = true, optional = true }

[dev-dependencies]
6 changes: 3 additions & 3 deletions frost-ed25519/Cargo.toml
Original file line number Diff line number Diff line change
@@ -15,18 +15,18 @@ features = ["serde"]
rustdoc-args = ["--cfg", "docsrs"]

[dependencies]
curve25519-dalek = { version = "=4.1.3", features = ["rand_core"] }
curve25519-dalek = { workspace = true, features = ["rand_core"] }
document-features.workspace = true
frost-core.workspace = true
frost-rerandomized.workspace = true
rand_core.workspace = true
sha2 = { version = "0.10.2", default-features = false }
sha2 = { workspace = true }

[dev-dependencies]
criterion.workspace = true
frost-core = { workspace = true, features = ["std", "test-impl"] }
frost-rerandomized = { workspace = true, features = ["std", "test-impl"] }
ed25519-dalek = "2.1.0"
ed25519-dalek = { workspace = true }
insta.workspace = true
hex.workspace = true
lazy_static.workspace = true
4 changes: 2 additions & 2 deletions frost-ed448/Cargo.toml
Original file line number Diff line number Diff line change
@@ -16,11 +16,11 @@ rustdoc-args = ["--cfg", "docsrs"]

[dependencies]
document-features.workspace = true
ed448-goldilocks = { version = "0.9.0" }
ed448-goldilocks = { workspace = true }
frost-core.workspace = true
frost-rerandomized.workspace = true
rand_core.workspace = true
sha3 = { version = "0.10.6", default-features = false }
sha3 = { workspace = true }

[dev-dependencies]
criterion.workspace = true
4 changes: 2 additions & 2 deletions frost-p256/Cargo.toml
Original file line number Diff line number Diff line change
@@ -16,11 +16,11 @@ rustdoc-args = ["--cfg", "docsrs"]

[dependencies]
document-features.workspace = true
p256 = { version = "0.13.0", features = ["hash2curve"], default-features = false }
p256 = { workspace = true, features = ["hash2curve"] }
frost-core.workspace = true
frost-rerandomized.workspace = true
rand_core.workspace = true
sha2 = { version = "0.10.2", default-features = false }
sha2 = { workspace = true }

[dev-dependencies]
criterion.workspace = true
2 changes: 1 addition & 1 deletion frost-rerandomized/Cargo.toml
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ features = ["serde"]
rustdoc-args = ["--cfg", "docsrs"]

[dependencies]
derive-getters = "0.5.0"
derive-getters = { workspace = true }
document-features.workspace = true
frost-core = { workspace = true, features = ["internals"] }
hex.workspace = true
6 changes: 3 additions & 3 deletions frost-ristretto255/Cargo.toml
Original file line number Diff line number Diff line change
@@ -15,12 +15,12 @@ features = ["serde"]
rustdoc-args = ["--cfg", "docsrs"]

[dependencies]
curve25519-dalek = { version = "=4.1.3", features = ["rand_core"] }
curve25519-dalek = { workspace = true, features = ["rand_core"] }
document-features.workspace = true
frost-core.workspace = true
frost-rerandomized.workspace = true
rand_core.workspace = true
sha2 = { version = "0.10.2", default-features = false }
sha2 = { workspace = true }

[dev-dependencies]
criterion = { workspace = true, features = ["html_reports"] }
@@ -29,7 +29,7 @@ frost-rerandomized = { workspace = true, features = ["std", "test-impl"] }
insta.workspace = true
hex.workspace = true
lazy_static.workspace = true
postcard = { version = "1.0.0", features = ["use-std"] }
postcard = { workspace = true, features = ["use-std"] }
proptest.workspace = true
rand.workspace = true
rand_chacha.workspace = true
6 changes: 3 additions & 3 deletions frost-secp256k1-tr/Cargo.toml
Original file line number Diff line number Diff line change
@@ -18,9 +18,9 @@ rustdoc-args = ["--cfg", "docsrs"]
document-features.workspace = true
frost-core.workspace = true
frost-rerandomized.workspace = true
k256 = { version = "0.13.0", features = ["arithmetic", "expose-field", "hash2curve"], default-features = false }
k256 = { workspace = true, features = ["arithmetic", "expose-field", "hash2curve"] }
rand_core.workspace = true
sha2 = { version = "0.10.2", default-features = false }
sha2 = { workspace = true }

[dev-dependencies]
criterion.workspace = true
@@ -32,7 +32,7 @@ lazy_static.workspace = true
proptest.workspace = true
rand.workspace = true
rand_chacha.workspace = true
secp256k1 = "0.30.0"
secp256k1 = { workspace = true }
serde_json.workspace = true

[features]
4 changes: 2 additions & 2 deletions frost-secp256k1/Cargo.toml
Original file line number Diff line number Diff line change
@@ -18,9 +18,9 @@ rustdoc-args = ["--cfg", "docsrs"]
document-features.workspace = true
frost-core.workspace = true
frost-rerandomized.workspace = true
k256 = { version = "0.13.0", features = ["arithmetic", "expose-field", "hash2curve"], default-features = false }
k256 = { workspace = true, features = ["arithmetic", "expose-field", "hash2curve"] }
rand_core.workspace = true
sha2 = { version = "0.10.2", default-features = false }
sha2 = { workspace = true }

[dev-dependencies]
criterion.workspace = true
2 changes: 1 addition & 1 deletion gencode/Cargo.toml
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ edition.workspace = true
publish = false

[dependencies]
regex = "1.6.0"
regex = { workspace = true }
serde_json.workspace = true

[[bin]]