Skip to content

Commit fc87f59

Browse files
chore(deps): improve organization of workspace (root Cargo.toml) (#874)
1 parent 64a4be6 commit fc87f59

File tree

11 files changed

+36
-39
lines changed

11 files changed

+36
-39
lines changed

Cargo.toml

+4-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ members = [
1212
"gencode"
1313
]
1414

15-
1615
[workspace.package]
1716
edition = "2021"
1817
version = "2.1.0"
@@ -38,5 +37,8 @@ rand_chacha = "0.3"
3837
rand_core = "0.6"
3938
serde_json = "1.0"
4039

40+
frost-core = { path = "frost-core", version = "2.1.0", default-features = false }
41+
frost-rerandomized = { path = "frost-rerandomized", version = "2.1.0", default-features = false }
42+
4143
[profile.test.package."*"]
42-
opt-level = 3
44+
opt-level = 3

book/src/dev/release-checklist.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ releases easier.
4646
- Move version in changelog to Released
4747
- Create a new version in “unreleased” in changelog
4848

49-
- Update the version number for frost-core and frost-rerandomized in the Ciphersuite crates, e.g. in `frost-core = { path = "../frost-core", version = "0.4.0", features = ["test-impl"] }`. You'll need to do this for dependencies and dev-dependencies
49+
- Update the version number for frost-core and frost-rerandomized in the root Cargo.toml file, e.g. in `frost-core = { path = "frost-core", version = "0.4.0", default-features = false }`
5050

5151
- Create a PR with subject `Release \<version number>` containing all these changes
5252

frost-core/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ itertools = { version = "0.14.0", default-features = false }
3434
# Test dependencies used with the test-impl feature
3535
proptest = { version = "1.0", optional = true }
3636
serde_json = { version = "1.0", optional = true }
37-
criterion = { version = "0.5", optional = true }
37+
criterion = { workspace = true, optional = true }
3838

3939
[dev-dependencies]
40-
criterion = { version = "0.5" }
40+
criterion.workspace = true
4141
lazy_static.workspace = true
4242
proptest.workspace = true
4343
rand.workspace = true

frost-ed25519/Cargo.toml

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[package]
22
name = "frost-ed25519"
33
edition.workspace = true
4-
54
version.workspace = true
65
authors.workspace = true
76
readme = "README.md"
@@ -18,15 +17,15 @@ rustdoc-args = ["--cfg", "docsrs"]
1817
[dependencies]
1918
curve25519-dalek = { version = "=4.1.3", features = ["rand_core"] }
2019
document-features.workspace = true
21-
frost-core = { path = "../frost-core", version = "2.1.0", default-features = false }
22-
frost-rerandomized = { path = "../frost-rerandomized", version = "2.1.0", default-features = false }
20+
frost-core.workspace = true
21+
frost-rerandomized.workspace = true
2322
rand_core.workspace = true
2423
sha2 = { version = "0.10.2", default-features = false }
2524

2625
[dev-dependencies]
2726
criterion.workspace = true
28-
frost-core = { path = "../frost-core", version = "2.1.0", features = ["test-impl"] }
29-
frost-rerandomized = { path = "../frost-rerandomized", version = "2.1.0", features = ["test-impl"] }
27+
frost-core = { workspace = true, features = ["std", "test-impl"] }
28+
frost-rerandomized = { workspace = true, features = ["std", "test-impl"] }
3029
ed25519-dalek = "2.1.0"
3130
insta.workspace = true
3231
hex.workspace = true

frost-ed448/Cargo.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ rustdoc-args = ["--cfg", "docsrs"]
1717
[dependencies]
1818
document-features.workspace = true
1919
ed448-goldilocks = { version = "0.9.0" }
20-
frost-core = { path = "../frost-core", version = "2.1.0", default-features = false }
21-
frost-rerandomized = { path = "../frost-rerandomized", version = "2.1.0", default-features = false }
20+
frost-core.workspace = true
21+
frost-rerandomized.workspace = true
2222
rand_core.workspace = true
2323
sha3 = { version = "0.10.6", default-features = false }
2424

2525
[dev-dependencies]
2626
criterion.workspace = true
27-
frost-core = { path = "../frost-core", version = "2.1.0", features = ["test-impl"] }
28-
frost-rerandomized = { path = "../frost-rerandomized", version = "2.1.0", features = ["test-impl"] }
27+
frost-core = { workspace = true, features = ["std", "test-impl"] }
28+
frost-rerandomized = { workspace = true, features = ["std", "test-impl"] }
2929
lazy_static.workspace = true
3030
insta.workspace = true
3131
hex.workspace = true

frost-p256/Cargo.toml

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ readme = "README.md"
77
license.workspace = true
88
repository.workspace = true
99
categories.workspace = true
10-
keywords = ["cryptography", "crypto", "threshold", "signature"]
10+
keywords = ["cryptography", "crypto", "p256", "threshold", "signature"]
1111
description = "A Schnorr signature scheme over the NIST P-256 curve that supports FROST."
1212

1313
[package.metadata.docs.rs]
@@ -17,15 +17,15 @@ rustdoc-args = ["--cfg", "docsrs"]
1717
[dependencies]
1818
document-features.workspace = true
1919
p256 = { version = "0.13.0", features = ["hash2curve"], default-features = false }
20-
frost-core = { path = "../frost-core", version = "2.1.0", default-features = false }
21-
frost-rerandomized = { path = "../frost-rerandomized", version = "2.1.0", default-features = false }
20+
frost-core.workspace = true
21+
frost-rerandomized.workspace = true
2222
rand_core.workspace = true
2323
sha2 = { version = "0.10.2", default-features = false }
2424

2525
[dev-dependencies]
2626
criterion.workspace = true
27-
frost-core = { path = "../frost-core", version = "2.1.0", features = ["test-impl"] }
28-
frost-rerandomized = { path = "../frost-rerandomized", version = "2.1.0", features = ["test-impl"] }
27+
frost-core = { workspace = true, features = ["std", "test-impl"] }
28+
frost-rerandomized = { workspace = true, features = ["std", "test-impl"] }
2929
insta.workspace = true
3030
hex.workspace = true
3131
lazy_static.workspace = true

frost-rerandomized/Cargo.toml

+1-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ rustdoc-args = ["--cfg", "docsrs"]
1717
[dependencies]
1818
derive-getters = "0.5.0"
1919
document-features.workspace = true
20-
frost-core = { path = "../frost-core", version = "2.1.0", features = [
21-
"internals"
22-
], default-features = false }
20+
frost-core = { workspace = true, features = ["internals"] }
2321
hex.workspace = true
2422
rand_core.workspace = true
2523

frost-ristretto255/Cargo.toml

+5-5
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ rustdoc-args = ["--cfg", "docsrs"]
1717
[dependencies]
1818
curve25519-dalek = { version = "=4.1.3", features = ["rand_core"] }
1919
document-features.workspace = true
20-
frost-core = { path = "../frost-core", version = "2.1.0", default-features = false }
21-
frost-rerandomized = { path = "../frost-rerandomized", version = "2.1.0", default-features = false }
20+
frost-core.workspace = true
21+
frost-rerandomized.workspace = true
2222
rand_core.workspace = true
2323
sha2 = { version = "0.10.2", default-features = false }
2424

2525
[dev-dependencies]
26-
criterion = { version = "0.5", features = ["html_reports"] }
27-
frost-core = { path = "../frost-core", version = "2.1.0", features = ["test-impl"] }
28-
frost-rerandomized = { path = "../frost-rerandomized", version = "2.1.0", features = ["test-impl"] }
26+
criterion = { workspace = true, features = ["html_reports"] }
27+
frost-core = { workspace = true, features = ["std", "test-impl"] }
28+
frost-rerandomized = { workspace = true, features = ["std", "test-impl"] }
2929
insta.workspace = true
3030
hex.workspace = true
3131
lazy_static.workspace = true

frost-secp256k1-tr/Cargo.toml

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ readme = "README.md"
77
license.workspace = true
88
repository.workspace = true
99
categories.workspace = true
10-
keywords = ["cryptography", "crypto", "threshold", "signature"]
10+
keywords = ["cryptography", "crypto", "secp256k1", "threshold", "signature"]
1111
description = "A Schnorr signature scheme over the secp256k1 curve that supports FROST and Taproot."
1212

1313
[package.metadata.docs.rs]
@@ -16,16 +16,16 @@ rustdoc-args = ["--cfg", "docsrs"]
1616

1717
[dependencies]
1818
document-features.workspace = true
19-
frost-core = { path = "../frost-core", version = "2.1.0", default-features = false }
20-
frost-rerandomized = { path = "../frost-rerandomized", version = "2.1.0", default-features = false }
19+
frost-core.workspace = true
20+
frost-rerandomized.workspace = true
2121
k256 = { version = "0.13.0", features = ["arithmetic", "expose-field", "hash2curve"], default-features = false }
2222
rand_core.workspace = true
2323
sha2 = { version = "0.10.2", default-features = false }
2424

2525
[dev-dependencies]
2626
criterion.workspace = true
27-
frost-core = { path = "../frost-core", version = "2.1.0", features = ["test-impl"] }
28-
frost-rerandomized = { path = "../frost-rerandomized", version = "2.1.0", features = ["test-impl"] }
27+
frost-core = { workspace = true, features = ["std", "test-impl"] }
28+
frost-rerandomized = { workspace = true, features = ["std", "test-impl"] }
2929
insta.workspace = true
3030
hex.workspace = true
3131
lazy_static.workspace = true

frost-secp256k1/Cargo.toml

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ readme = "README.md"
77
license.workspace = true
88
repository.workspace = true
99
categories.workspace = true
10-
keywords = ["cryptography", "crypto", "threshold", "signature"]
10+
keywords = ["cryptography", "crypto", "secp256k1", "threshold", "signature"]
1111
description = "A Schnorr signature scheme over the secp256k1 curve that supports FROST."
1212

1313
[package.metadata.docs.rs]
@@ -16,16 +16,16 @@ rustdoc-args = ["--cfg", "docsrs"]
1616

1717
[dependencies]
1818
document-features.workspace = true
19-
frost-core = { path = "../frost-core", version = "2.1.0", default-features = false }
20-
frost-rerandomized = { path = "../frost-rerandomized", version = "2.1.0", default-features = false }
19+
frost-core.workspace = true
20+
frost-rerandomized.workspace = true
2121
k256 = { version = "0.13.0", features = ["arithmetic", "expose-field", "hash2curve"], default-features = false }
2222
rand_core.workspace = true
2323
sha2 = { version = "0.10.2", default-features = false }
2424

2525
[dev-dependencies]
2626
criterion.workspace = true
27-
frost-core = { path = "../frost-core", version = "2.1.0", features = ["test-impl"] }
28-
frost-rerandomized = { path = "../frost-rerandomized", version = "2.1.0", features = ["test-impl"] }
27+
frost-core = { workspace = true, features = ["std", "test-impl"] }
28+
frost-rerandomized = { workspace = true, features = ["std", "test-impl"] }
2929
insta.workspace = true
3030
hex.workspace = true
3131
lazy_static.workspace = true

gencode/Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ version = "0.1.0"
44
edition.workspace = true
55
publish = false
66

7-
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
8-
97
[dependencies]
108
regex = "1.6.0"
119
serde_json.workspace = true

0 commit comments

Comments
 (0)