Skip to content

Commit 303b2e3

Browse files
bryantbiggsmxpv
authored andcommitted
chore: Fix cargo deny failed checks and de-duplicate crates using workspace shared dependency
1 parent 369a73f commit 303b2e3

File tree

8 files changed

+20
-18
lines changed

8 files changed

+20
-18
lines changed

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ edition = "2021"
2525
# Common dependencies for all crates
2626
[workspace.dependencies]
2727
async-trait = "0.1.52"
28+
cgroups-rs = "0.3.4"
29+
crossbeam = "0.8.1"
2830
futures = "0.3.19"
2931
libc = "0.2.112"
3032
log = {version = "0.4.2", features=["kv_unstable"]}
@@ -37,6 +39,8 @@ prost-build = "0.12"
3739
prost-types = "0.12"
3840
serde = { version = "1.0", features = ["derive"] }
3941
serde_json = "1.0"
42+
simple_logger = { version = "5.0", default-features = false }
43+
tempfile = "3.6"
4044
thiserror = "1.0"
4145
time = { version = "0.3.29", features = ["serde", "std", "formatting"] }
4246
tokio = "1.26"

crates/runc-shim/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ doc = false
2626

2727
[dependencies]
2828
containerd-shim = { path = "../shim", version = "0.7.1", features = ["async"] }
29-
crossbeam = "0.8.1"
29+
crossbeam.workspace = true
3030
libc.workspace = true
3131
log.workspace = true
3232
nix = { workspace = true, features = ["socket", "uio", "term"] }
@@ -44,5 +44,5 @@ futures.workspace = true
4444
tokio = { workspace = true, features = ["full"] }
4545

4646
[target.'cfg(target_os = "linux")'.dependencies]
47-
cgroups-rs = "0.3.3"
47+
cgroups-rs.workspace = true
4848
nix = { workspace = true, features = ["event"] }

crates/runc/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ oci-spec.workspace = true
2323
os_pipe.workspace = true
2424
path-absolutize = "3.0.11"
2525
prctl.workspace = true
26-
rand = "0.8.4"
26+
rand = "0.8.5"
2727
serde.workspace = true
2828
serde_json.workspace = true
29-
tempfile = "3.6.0"
29+
tempfile.workspace = true
3030
thiserror.workspace = true
3131
time.workspace = true
3232
uuid.workspace = true

crates/shim-protos/Cargo.toml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ path = "examples/connect-async.rs"
4848
required-features = ["async"]
4949

5050
[dependencies]
51-
async-trait = { version = "0.1.48", optional = true }
51+
async-trait = { workspace = true, optional = true }
5252
protobuf = "=3.1"
5353
ttrpc = "0.8"
5454

@@ -58,11 +58,9 @@ ttrpc-codegen = "0.4"
5858
[dev-dependencies]
5959
ctrlc = { version = "3.0", features = ["termination"] }
6060
log.workspace = true
61-
simple_logger = { version = "5.0", default-features = false, features = [
62-
"stderr",
63-
] }
61+
simple_logger = { workspace = true, features = ["stderr"] }
6462
tokio = { workspace = true, features = ["full"] }
65-
crossbeam = "0.8.0" # Used by create_ttrpc_context()
63+
crossbeam.workspace = true # Used by create_ttrpc_context()
6664

6765
[package.metadata.docs.rs]
6866
features = ["docs"]

crates/shim/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ nix = { workspace = true, features = [
4949
] }
5050
oci-spec.workspace = true
5151
page_size = "0.6.0"
52-
prctl = "1.0.0"
52+
prctl.workspace = true
5353
signal-hook = "0.3.13"
5454
serde.workspace = true
5555
serde_json.workspace = true
@@ -68,7 +68,7 @@ signal-hook-tokio = { version = "0.3.1", optional = true, features = [
6868
tokio = { workspace = true, features = ["full"], optional = true }
6969

7070
[target.'cfg(target_os = "linux")'.dependencies]
71-
cgroups-rs = "0.3.4"
71+
cgroups-rs.workspace = true
7272

7373
[target.'cfg(unix)'.dependencies]
7474
command-fds = "0.3.0"
@@ -87,7 +87,7 @@ windows-sys = { version = "0.52.0", features = [
8787
] }
8888

8989
[dev-dependencies]
90-
tempfile = "3.6"
90+
tempfile.workspace = true
9191

9292
[package.metadata.docs.rs]
9393
features = ["docs"]

crates/snapshots/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,9 @@ tokio = { workspace = true, features = ["sync"] }
3030
tokio-stream = "0.1.8"
3131

3232
[dev-dependencies]
33-
async-stream = "0.3.2"
3433
futures.workspace = true
3534
log.workspace = true
36-
simple_logger = { version = "5.0", default-features = false }
35+
simple_logger.workspace = true
3736

3837
[build-dependencies]
3938
tonic-build.workspace = true

deny.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ ignore = [
5858
# * Medium - CVSS Score 4.0 - 6.9
5959
# * High - CVSS Score 7.0 - 8.9
6060
# * Critical - CVSS Score 9.0 - 10.0
61-
#severity-threshold =
61+
#severity-threshold =
6262

6363
# This section is considered when running `cargo deny check licenses`
6464
# More documentation for the licenses section can be found here:
@@ -72,6 +72,7 @@ unlicensed = "deny"
7272
allow = [
7373
"MIT",
7474
"Apache-2.0",
75+
"BSD-2-Clause",
7576
"BSD-3-Clause",
7677
]
7778
# List of explictly disallowed licenses
@@ -170,8 +171,8 @@ deny = [
170171
skip = [
171172
#{ name = "ansi_term", version = "=0.11.0" },
172173
]
173-
# Similarly to `skip` allows you to skip certain crates during duplicate
174-
# detection. Unlike skip, it also includes the entire tree of transitive
174+
# Similarly to `skip` allows you to skip certain crates during duplicate
175+
# detection. Unlike skip, it also includes the entire tree of transitive
175176
# dependencies starting at the specified crate, up to a certain depth, which is
176177
# by default infinite
177178
skip-tree = [

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[toolchain]
2-
channel = "1.71"
2+
channel = "1.74"
33
components = ["rustfmt", "clippy", "llvm-tools"]

0 commit comments

Comments
 (0)