Skip to content

Commit 5a0523a

Browse files
authored
chore: use workspace inheritance for dependencies (#1760)
Make shared dependencies clearer. Closes #1645.
1 parent daec42b commit 5a0523a

File tree

11 files changed

+292
-233
lines changed

11 files changed

+292
-233
lines changed

Cargo.toml

Lines changed: 54 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,62 @@
11
[workspace]
2-
32
members = [
3+
"fil-proofs-param",
4+
"fil-proofs-tooling",
5+
"filecoin-hashers",
46
"filecoin-proofs",
7+
"fr32",
8+
"sha2raw",
59
"storage-proofs-core",
610
"storage-proofs-porep",
711
"storage-proofs-post",
8-
"fil-proofs-tooling",
9-
"fil-proofs-param",
10-
"fr32",
11-
"sha2raw",
12-
"filecoin-hashers",
1312
"storage-proofs-update",
1413
]
14+
15+
[workspace.dependencies]
16+
fil-proofs-param = { path = "fil-proofs-param", default-features = false, version = "~13.1.0" }
17+
fil-proofs-tooling = { path = "fil-proofs-tooling", default-features = false, version = "~18.1.0" }
18+
filecoin-hashers = { path = "filecoin-hashers", default-features = false, version = "~13.1.0" }
19+
filecoin-proofs = { path = "filecoin-proofs", default-features = false, version = "~18.1.0" }
20+
fr32 = { path = "fr32", default-features = false, version = "~11.1.0" }
21+
sha2raw = { path = "sha2raw", default-features = false, version = "~13.1.0" }
22+
storage-proofs-core = { path = "storage-proofs-core", default-features = false, version = "~18.1.0" }
23+
storage-proofs-porep = { path = "storage-proofs-porep", default-features = false, version = "~18.1.0" }
24+
storage-proofs-post = { path = "storage-proofs-post", default-features = false, version = "~18.1.0" }
25+
storage-proofs-update = { path = "storage-proofs-update", default-features = false, version = "~18.1.0" }
26+
# Sorted alphabetically
27+
anyhow = "1.0.23"
28+
bellperson = "0.26.0"
29+
bincode = "1.1.2"
30+
blake2b_simd = "1.0.0"
31+
blake2s_simd = "1.0.0"
32+
blstrs = "0.7.0"
33+
byte-slice-cast = "1.0.0"
34+
byteorder = "1.3.4"
35+
cpu-time = "1.0.0"
36+
criterion = "0.3.2"
37+
dialoguer = "0.10.0"
38+
fdlimit = "0.2.0"
39+
ff = "0.13.0"
40+
fil_logger = "0.1.6"
41+
generic-array = "0.14.4"
42+
gperftools = "0.2"
43+
hex = "0.4.2"
44+
humansize = "1.1.0"
45+
itertools = "0.10.3"
46+
lazy_static = "1.2"
47+
log = "0.4.7"
48+
memmap2 = "0.5.6"
49+
merkletree = "0.23.0"
50+
neptune = { version = "11.0.0", features = ["bls", "arity2", "arity4", "arity8", "arity11", "arity16", "arity24", "arity36"] }
51+
num_cpus = "1.10.1"
52+
pretty_assertions = "1.2.0"
53+
rand = "0.8"
54+
rand_xorshift = "0.3.0"
55+
rayon = "1.3.0"
56+
serde = "1.0"
57+
serde_json = "1.0"
58+
sha2 = "0.10.2"
59+
structopt = "0.3.12"
60+
tempfile = "3"
61+
thiserror = "1.0.6"
62+
typenum = "1.11.2"

fil-proofs-param/Cargo.toml

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,38 +9,36 @@ repository = "https://github.com/filecoin-project/rust-fil-proofs"
99
readme = "README.md"
1010

1111
[dependencies]
12-
storage-proofs-core = { path = "../storage-proofs-core", version = "~18.1.0", default-features = false}
13-
storage-proofs-porep = { path = "../storage-proofs-porep", version = "~18.1.0", default-features = false }
14-
storage-proofs-post = { path = "../storage-proofs-post", version = "~18.1.0", default-features = false }
15-
storage-proofs-update = { path = "../storage-proofs-update", version = "~18.1.0", default-features = false }
16-
filecoin-proofs = { version = "~18.1.0", path = "../filecoin-proofs", default-features = false }
17-
rand = "0.8"
18-
lazy_static = "1.2"
19-
pbr = "1.0"
20-
itertools = "0.10.3"
21-
serde_json = "1.0"
22-
blake2b_simd = "1.0.0"
23-
log = "0.4.7"
24-
fil_logger = "0.1.6"
12+
filecoin-proofs.workspace = true
13+
storage-proofs-core.workspace = true
14+
storage-proofs-porep.workspace = true
15+
storage-proofs-post.workspace = true
16+
storage-proofs-update.workspace = true
17+
# Sorted alphabetically
18+
anyhow.workspace = true
19+
blake2b_simd.workspace = true
20+
dialoguer.workspace = true
2521
env_proxy = "0.4"
26-
flate2 = { version = "1.0.9", features = ["rust_backend"]}
27-
tar = "0.4.26"
28-
anyhow = "1.0.23"
29-
gperftools = { version = "0.2", optional = true }
30-
structopt = "0.3.12"
31-
humansize = "1.1.0"
22+
fil_logger.workspace = true
23+
flate2 = { version = "1.0.9", features = ["rust_backend"] }
24+
gperftools = { workspace = true, optional = true }
25+
humansize.workspace = true
3226
indicatif = "0.16.2"
33-
dialoguer = "0.10.0"
34-
35-
[dependencies.reqwest]
36-
version = "0.11.10"
37-
default-features = false
38-
features = ["blocking", "native-tls-vendored"]
27+
itertools.workspace = true
28+
lazy_static.workspace = true
29+
log.workspace = true
30+
pbr = "1.0"
31+
rand.workspace = true
32+
reqwest = { version = "0.11.10", default-features = false, features = ["blocking", "native-tls-vendored"] }
33+
serde_json.workspace = true
34+
structopt.workspace = true
35+
tar = "0.4.26"
3936

4037
[dev-dependencies]
41-
rexpect = "0.4.0"
38+
# Sorted alphabetically
39+
tempfile.workspace = true
4240
failure = "0.1.7"
43-
tempfile = "3"
41+
rexpect = "0.4.0"
4442

4543
[features]
4644
default = ["opencl"]

fil-proofs-tooling/Cargo.toml

Lines changed: 33 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -10,42 +10,43 @@ repository = "https://github.com/filecoin-project/rust-fil-proofs"
1010
readme = "README.md"
1111

1212
[dependencies]
13-
storage-proofs-core = { path = "../storage-proofs-core", version = "~18.1.0", default-features = false}
14-
storage-proofs-porep = { path = "../storage-proofs-porep", version = "~18.1.0", default-features = false }
15-
storage-proofs-post = { path = "../storage-proofs-post", version = "~18.1.0", default-features = false }
16-
filecoin-proofs = { path = "../filecoin-proofs", version = "~18.1.0", default-features = false }
17-
filecoin-hashers = { path = "../filecoin-hashers", version = "~13.1.0", default-features = false, features = ["poseidon", "blake2s", "sha256"] }
13+
storage-proofs-core.workspace = true
14+
storage-proofs-porep.workspace = true
15+
storage-proofs-post.workspace = true
16+
filecoin-proofs.workspace = true
17+
filecoin-hashers = { workspace = true, features = ["poseidon", "blake2s", "sha256"] }
18+
# Sorted alphabetically
19+
anyhow.workspace = true
20+
bellperson.workspace = true
21+
bincode.workspace = true
22+
blake2s_simd.workspace = true
23+
blstrs.workspace = true
24+
byte-unit = "4.0.14"
25+
bytefmt = "0.1.7"
26+
chrono = { version = "0.4.7", features = ["serde"] }
1827
clap = { version = "3.1.6", features = ["derive"] }
19-
serde = { version = "1.0", features = ["derive"] }
20-
serde_json = "1.0"
21-
regex = "1.3.7"
2228
commandspec = "0.12.2"
23-
chrono = { version = "0.4.7", features = ["serde"] }
24-
memmap2 = "0.5.6"
25-
bellperson = "0.26.0"
26-
rand = "0.8"
27-
tempfile = "3.0.8"
28-
cpu-time = "1.0.0"
29-
blake2s_simd = "1.0.0"
30-
fil_logger = "0.1.6"
31-
log = "0.4.8"
32-
merkletree = "0.23.0"
33-
bincode = "1.1.2"
34-
anyhow = "1.0.23"
35-
rand_xorshift = "0.3.0"
36-
bytefmt = "0.1.7"
37-
rayon = "1.3.0"
29+
cpu-time.workspace = true
30+
dialoguer.workspace = true
31+
fdlimit.workspace = true
32+
fil_logger.workspace = true
3833
flexi_logger = "0.22.3"
39-
typenum = "1.11.2"
40-
generic-array = "0.14.4"
41-
byte-unit = "4.0.14"
42-
fdlimit = "0.2.0"
43-
dialoguer = "0.10.0"
44-
structopt = "0.3.12"
45-
humansize = "1.1.0"
46-
blstrs = "0.7.0"
47-
time = "0.3.9"
34+
generic-array.workspace = true
35+
humansize.workspace = true
36+
log.workspace = true
37+
memmap2.workspace = true
38+
merkletree.workspace = true
39+
rand.workspace = true
40+
rand_xorshift.workspace = true
41+
rayon.workspace = true
42+
regex = "1.3.7"
43+
serde = { workspace = true, features = ["derive"] }
44+
serde_json.workspace = true
45+
structopt.workspace = true
4846
sysinfo = { version = "0.28.4", default-features = false }
47+
tempfile.workspace = true
48+
time = "0.3.9"
49+
typenum.workspace = true
4950

5051
[build-dependencies]
5152
vergen = { version = "8.1.1", features = ["build", "git", "gitcl"] }

filecoin-hashers/Cargo.toml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@ repository = "https://github.com/filecoin-project/rust-fil-proofs"
99
readme = "README.md"
1010

1111
[dependencies]
12-
bellperson = "0.26.0"
13-
blstrs = "0.7.0"
14-
generic-array = "0.14.4"
15-
merkletree = "0.23.0"
16-
ff = "0.13.0"
17-
anyhow = "1.0.34"
18-
serde = "1.0.117"
19-
rand = "0.8.0"
20-
21-
neptune = { version = "11.0.0", optional = true, features = ["bls", "arity2", "arity4", "arity8", "arity11", "arity16", "arity24", "arity36"] }
22-
lazy_static = { version = "1.4.0", optional = true }
23-
blake2s_simd = { version = "1.0.0", optional = true }
24-
sha2 = { version = "0.10.2", optional = true }
25-
hex = "0.4.2"
12+
# Sorted alphabetically
13+
anyhow.workspace = true
14+
bellperson.workspace = true
15+
blake2s_simd = { workspace = true, optional = true }
16+
blstrs.workspace = true
17+
ff.workspace = true
18+
generic-array.workspace = true
19+
hex.workspace = true
20+
lazy_static = { workspace = true, optional = true }
21+
merkletree.workspace = true
22+
neptune = { workspace = true, optional = true }
23+
rand.workspace = true
24+
serde.workspace = true
25+
sha2 = { workspace = true, optional = true }
2626

2727
[features]
2828
default = ["opencl", "blake2s", "poseidon", "sha256"]
@@ -36,5 +36,5 @@ poseidon = ["neptune", "lazy_static"]
3636
sha256 = ["sha2"]
3737

3838
[dev-dependencies]
39-
rand_xorshift = "0.3.0"
40-
serde_json = "1.0.59"
39+
rand_xorshift.workspace = true
40+
serde_json.workspace = true

filecoin-proofs/Cargo.toml

Lines changed: 32 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -9,39 +9,41 @@ repository = "https://github.com/filecoin-project/rust-fil-proofs"
99
readme = "README.md"
1010

1111
[dependencies]
12-
storage-proofs-core = { path = "../storage-proofs-core", version = "~18.1.0", default-features = false}
13-
storage-proofs-porep = { path = "../storage-proofs-porep", version = "~18.1.0", default-features = false }
14-
storage-proofs-post = { path = "../storage-proofs-post", version = "~18.1.0", default-features = false }
15-
storage-proofs-update = { path = "../storage-proofs-update", version = "~18.1.0", default-features = false }
16-
filecoin-hashers = { version = "~13.1.0", path = "../filecoin-hashers", default-features = false, features = ["poseidon", "sha256"] }
17-
rand = "0.8"
18-
lazy_static = "1.2"
19-
memmap2 = "0.5.6"
20-
serde = { version = "1.0", features = ["rc", "derive"] }
21-
serde_json = "1.0"
22-
blake2b_simd = "1.0.0"
23-
bellperson = "0.26.0"
24-
log = "0.4.7"
25-
rayon = "1.1.0"
26-
hex = "0.4.0"
27-
merkletree = "0.23.0"
28-
bincode = "1.1.2"
29-
anyhow = "1.0.23"
30-
sha2 = "0.10.2"
31-
typenum = "1.11.2"
32-
gperftools = { version = "0.2", optional = true }
33-
generic-array = "0.14.4"
34-
fr32 = { path = "../fr32", version = "~11.1.0", default-features = false }
35-
once_cell = "1.8.0"
36-
blstrs = "0.7.0"
37-
ff = { version = "0.13.0", default-features = false }
12+
filecoin-hashers = { workspace = true, features = ["poseidon", "sha256"] }
13+
fr32.workspace = true
14+
storage-proofs-core.workspace = true
15+
storage-proofs-porep.workspace = true
16+
storage-proofs-post.workspace = true
17+
storage-proofs-update.workspace = true
18+
# Sorted alphabetically
19+
anyhow.workspace = true
20+
bellperson.workspace = true
21+
bincode.workspace = true
22+
blake2b_simd.workspace = true
23+
blstrs.workspace = true
24+
ff.workspace = true
25+
generic-array.workspace = true
26+
gperftools = { workspace = true, optional = true }
27+
hex.workspace = true
3828
iowrap = "0.2.1"
29+
lazy_static.workspace = true
30+
log.workspace = true
31+
memmap2.workspace = true
32+
merkletree.workspace = true
33+
once_cell = "1.8.0"
34+
rand.workspace = true
35+
rayon.workspace = true
36+
serde = { workspace = true, features = ["rc", "derive"] }
37+
serde_json.workspace = true
38+
sha2.workspace = true
39+
typenum.workspace = true
3940

4041
[dev-dependencies]
41-
criterion = "0.3"
42-
tempfile = "3"
43-
fil_logger = "0.1.6"
44-
rand_xorshift = "0.3.0"
42+
# Sorted alphabetically
43+
criterion.workspace = true
44+
fil_logger.workspace = true
45+
rand_xorshift.workspace = true
46+
tempfile.workspace = true
4547
walkdir = "2.3.2"
4648

4749
[features]

fr32/Cargo.toml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,22 @@ edition = "2018"
88
repository = "https://github.com/filecoin-project/rust-fil-proofs"
99

1010
[dependencies]
11-
anyhow = "1.0.23"
12-
byte-slice-cast = "1.0.0"
13-
byteorder = "1"
14-
ff = "0.13.0"
15-
thiserror = "1.0.6"
16-
blstrs = "0.7.0"
11+
# Sorted alphabetically
12+
anyhow.workspace = true
13+
blstrs.workspace = true
14+
byte-slice-cast.workspace = true
15+
byteorder.workspace = true
16+
ff.workspace = true
17+
thiserror.workspace = true
1718

1819
[dev-dependencies]
20+
# Sorted alphabetically
1921
bitvec = "0.17"
20-
criterion = "0.3"
21-
itertools = "0.10.3"
22-
pretty_assertions = "1.2.0"
23-
rand = "0.8"
24-
rand_xorshift = "0.3"
22+
criterion.workspace = true
23+
itertools.workspace = true
24+
pretty_assertions.workspace = true
25+
rand.workspace = true
26+
rand_xorshift.workspace = true
2527

2628
[[bench]]
2729
name = "fr"

sha2raw/Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,22 @@ categories = ["cryptography", "no-std"]
1111
edition = "2018"
1212

1313
[dependencies]
14+
# Sorted alphabetically
15+
byteorder.workspace = true
1416
digest = "0.10.3"
1517
fake-simd = "0.1"
18+
lazy_static.workspace = true
1619
opaque-debug = "0.3"
1720
sha2-asm = { version = "0.6", optional = true }
18-
byteorder = "1.3.4"
19-
20-
[dependencies.lazy_static]
21-
version = "1.4.0"
2221

2322
[target.'cfg(target_arch = "x86_64")'.dependencies]
2423
cpufeatures = "0.2.2"
2524

2625
[dev-dependencies]
27-
sha2 = "0.10.2"
28-
rand = "0.8.5"
29-
rand_xorshift = "0.3.0"
26+
# Sorted alphabetically
27+
rand.workspace = true
28+
rand_xorshift.workspace = true
29+
sha2.workspace = true
3030

3131
[features]
3232
default = ["asm"]

0 commit comments

Comments
 (0)