Skip to content

Commit 14d5f2f

Browse files
committed
Use workspace dependencies where possible
1 parent ee25028 commit 14d5f2f

File tree

4 files changed

+34
-19
lines changed

4 files changed

+34
-19
lines changed

Cargo.toml

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,26 +38,41 @@ members = [".", "hdf5-types", "hdf5-derive", "hdf5-sys", "hdf5-src"]
3838
default-members = [".", "hdf5-types", "hdf5-derive", "hdf5-sys"]
3939

4040
[dependencies]
41+
# external
4142
bitflags = "2.3"
43+
blosc-sys = { version = "0.2", package = "blosc-src", optional = true }
44+
cfg-if = { workspace = true }
45+
errno = { version = "0.3", optional = true }
4246
lazy_static = "1.4"
43-
libc = "0.2"
44-
parking_lot = "0.12"
47+
libc = { workspace = true }
48+
lzf-sys = { version = "0.1", optional = true }
49+
mpi-sys = { workspace = true, optional = true }
4550
ndarray = "0.15"
51+
parking_lot = "0.12"
4652
paste = "1.0"
47-
mpi-sys = { version = "0.2", optional = true }
48-
errno = { version = "0.3", optional = true }
49-
hdf5-sys = { path = "hdf5-sys", version = "0.8.1" } # !V
50-
hdf5-types = { path = "hdf5-types", version = "0.8.1" } # !V
51-
hdf5-derive = { path = "hdf5-derive", version = "0.8.1" } # !V
52-
blosc-sys = { version = "0.2", package = "blosc-src", optional = true }
53-
lzf-sys = { version = "0.1", optional = true }
53+
# internal
54+
hdf5-derive = { workspace = true }
55+
hdf5-sys = { workspace = true }
56+
hdf5-types = { workspace = true }
57+
58+
[workspace.dependencies]
59+
# external
5460
cfg-if = "1.0"
61+
libc = "0.2"
62+
libz-sys = { version = "1.1", default-features = false }
63+
mpi-sys = "0.2"
64+
regex = "1.8"
65+
# internal
66+
hdf5-derive = { version = "0.8.1", path = "hdf5-derive" } # !V
67+
hdf5-src = { version = "0.8.1", path = "hdf5-src" } # !V
68+
hdf5-sys = { version = "0.8.1", path = "hdf5-sys" } # !V
69+
hdf5-types = { version = "0.8.1", path = "hdf5-types" } # !V
5570

5671
[dev-dependencies]
5772
paste = "1.0"
5873
pretty_assertions = "1.3"
5974
rand = { version = "0.8", features = ["small_rng"] }
60-
regex = "1.8"
75+
regex = { workspace = true }
6176
scopeguard = "1.1"
6277
tempfile = "3.6"
6378

hdf5-src/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ deprecated = []
3535
threadsafe = []
3636

3737
[dependencies]
38-
libz-sys = { version = "1.1", features = ["static", "libc"], optional = true, default-features=false }
38+
libz-sys = { workspace = true, optional = true, features = ["static", "libc"] }
3939

4040
[build-dependencies]
4141
cmake = "0.1"

hdf5-sys/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ homepage.workspace = true
1515
edition.workspace = true
1616

1717
[dependencies]
18-
libc = "0.2"
19-
mpi-sys = { version = "0.2", optional = true }
20-
libz-sys = { version = "1.1", optional = true, default-features = false }
21-
hdf5-src = { path = "../hdf5-src", version = "0.8.1", optional = true } # !V
18+
libc = { workspace = true }
19+
mpi-sys = { workspace = true, optional = true }
20+
libz-sys = { workspace = true, optional = true }
21+
hdf5-src = { workspace = true, optional = true }
2222

2323
# Please see README for further explanation of these feature flags
2424
[features]
@@ -32,7 +32,7 @@ deprecated = ["hdf5-src/deprecated"]
3232

3333
[build-dependencies]
3434
libloading = "0.8"
35-
regex = { version = "1.8", features = ["std"] }
35+
regex = { workspace = true }
3636

3737
[target.'cfg(all(unix, not(target_os = "macos")))'.build-dependencies]
3838
pkg-config = "0.3"

hdf5-types/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ h5-alloc = []
1818

1919
[dependencies]
2020
ascii = "1.1"
21-
libc = "0.2"
22-
hdf5-sys = { version = "0.8.1", path = "../hdf5-sys" } # !V
23-
cfg-if = "1.0"
21+
cfg-if = { workspace = true }
22+
hdf5-sys = { workspace = true }
23+
libc = { workspace = true }
2424

2525
[dev-dependencies]
2626
quickcheck = { version = "1.0", default-features = false }

0 commit comments

Comments
 (0)