Skip to content

Commit 423621d

Browse files
authored
Merge pull request #685 from cgwalters/workspace-deps
build-sys: Switch to workspace dependencies
2 parents 80d102d + c67b9ac commit 423621d

File tree

6 files changed

+43
-31
lines changed

6 files changed

+43
-31
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,20 @@ codegen-units = 1
1717
inherits = "release"
1818
lto = "yes"
1919

20+
[workspace.dependencies]
21+
anyhow = "1.0.82"
22+
camino = "1.1.6"
23+
cap-std-ext = "4.0.2"
24+
chrono = { version = "0.4.38", default-features = false }
25+
clap = "4.5.4"
26+
fn-error-context = "0.2.1"
27+
libc = "0.2.154"
28+
serde = "1.0.199"
29+
serde_json = "1.0.116"
30+
tempfile = "3.10.1"
31+
tracing = "0.1.40"
32+
tokio = ">= 1.37.0"
33+
2034
# See https://github.com/coreos/cargo-vendor-filterer
2135
[workspace.metadata.vendor-filter]
2236
# For now we only care about tier 1+2 Linux. (In practice, it's unlikely there is a tier3-only Linux dependency)

cli/Cargo.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,10 @@ default-run = "bootc"
1717
platforms = ["x86_64-unknown-linux-gnu", "aarch64-unknown-linux-gnu", "powerpc64le-unknown-linux-gnu", "s390x-unknown-linux-gnu", "riscv64gc-unknown-linux-gnu"]
1818

1919
[dependencies]
20-
anyhow = "1.0.82"
20+
anyhow = { workspace = true }
2121
bootc-lib = { version = "0.1", path = "../lib" }
22-
clap = "4.5.4"
23-
libc = "0.2.154"
24-
tokio = { version = "1.37.0", features = ["macros"] }
22+
clap = { workspace = true }
23+
tokio = { workspace = true, features = ["macros"] }
2524
log = "0.4.21"
26-
tracing = "0.1.40"
25+
tracing = { workspace = true }
2726
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }

lib/Cargo.toml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ include = ["/src", "LICENSE-APACHE", "LICENSE-MIT"]
1414
[dependencies]
1515
anstream = "0.6.13"
1616
anstyle = "1.0.6"
17-
anyhow = "1.0.82"
18-
camino = { version = "1.1.6", features = ["serde1"] }
17+
anyhow = { workspace = true }
18+
camino = { workspace = true, features = ["serde1"] }
1919
ostree-ext = { version = "0.14.0" }
20-
chrono = { version = "0.4.38", features = ["serde"] }
21-
clap = { version= "4.5.4", features = ["derive","cargo"] }
20+
chrono = { workspace = true, features = ["serde"] }
21+
clap = { workspace = true, features = ["derive","cargo"] }
2222
clap_mangen = { version = "0.2.20", optional = true }
23-
cap-std-ext = { version = "4.0.1", features = ["fs_utf8"] }
23+
cap-std-ext = { workspace = true, features = ["fs_utf8"] }
2424
hex = "^0.4.3"
25-
fn-error-context = "0.2.1"
25+
fn-error-context = { workspace = true }
2626
gvariant = "0.5.0"
2727
indicatif = "0.17.8"
28-
libc = "^0.2.154"
28+
libc = { workspace = true }
2929
liboverdrop = "0.1.0"
3030
libsystemd = "0.7"
3131
openssl = "^0.10.64"
@@ -34,14 +34,14 @@ nix = { version = "0.29", features = ["ioctl", "sched" ] }
3434
regex = "1.10.4"
3535
rustix = { "version" = "0.38.34", features = ["thread", "fs", "system", "process"] }
3636
schemars = { version = "0.8.17", features = ["chrono"] }
37-
serde = { features = ["derive"], version = "1.0.199" }
37+
serde = { workspace = true, features = ["derive"] }
3838
serde_ignored = "0.1.10"
39-
serde_json = "1.0.116"
39+
serde_json = { workspace = true }
4040
serde_yaml = "0.9.34"
41-
tokio = { features = ["io-std", "time", "process", "rt", "net"], version = ">= 1.37.0" }
41+
tokio = { workspace = true, features = ["io-std", "time", "process", "rt", "net"] }
4242
tokio-util = { features = ["io-util"], version = "0.7.10" }
43-
tracing = "0.1.40"
44-
tempfile = "3.10.1"
43+
tracing = { workspace = true }
44+
tempfile = { workspace = true }
4545
toml = "0.8.12"
4646
xshell = { version = "0.2.6", optional = true }
4747
uuid = { version = "1.8.0", features = ["v4"] }

tests-integration/Cargo.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ name = "tests-integration"
1111
path = "src/tests-integration.rs"
1212

1313
[dependencies]
14-
anyhow = "1.0.82"
15-
camino = "1.1.6"
16-
cap-std-ext = "4"
17-
clap = { version= "4.5.4", features = ["derive","cargo"] }
18-
fn-error-context = "0.2.1"
14+
anyhow = { workspace = true }
15+
camino = { workspace = true }
16+
cap-std-ext = { workspace = true }
17+
clap = { workspace = true, features = ["derive","cargo"] }
18+
fn-error-context = { workspace = true }
1919
indoc = "2.0.5"
2020
libtest-mimic = "0.7.3"
2121
oci-spec = "0.6.5"
2222
rustix = { "version" = "0.38.34", features = ["thread", "fs", "system", "process"] }
23-
serde = { features = ["derive"], version = "1.0.199" }
24-
serde_json = "1.0.116"
25-
tempfile = "3.10.1"
23+
serde = { workspace = true, features = ["derive"] }
24+
serde_json = { workspace = true }
25+
tempfile = { workspace = true }
2626
xshell = { version = "0.2.6" }

xtask/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ name = "xtask"
1212
path = "src/xtask.rs"
1313

1414
[dependencies]
15-
anyhow = "1.0.82"
16-
camino = "1.1.6"
17-
chrono = { version = "0.4.38", default-features = false, features = ["std"] }
18-
fn-error-context = "0.2.1"
19-
tempfile = "3.10.1"
15+
anyhow = { workspace = true }
16+
camino = { workspace = true }
17+
chrono = { workspace = true, features = ["std"] }
18+
fn-error-context = { workspace = true }
19+
tempfile = { workspace = true }
2020
mandown = "0.1.3"
2121
xshell = { version = "0.2.6" }

0 commit comments

Comments
 (0)