-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #200 from bryantbiggs/chore/standardize-cargo-files
chore: Standardize Cargo.toml files, enable more workspace dependencies
- Loading branch information
Showing
8 changed files
with
137 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
name = "containerd-client" | ||
version = "0.4.0" | ||
authors = [ | ||
"Maksym Pavlenko <[email protected]>", | ||
"The containerd Authors", | ||
"Maksym Pavlenko <[email protected]>", | ||
"The containerd Authors", | ||
] | ||
description = "GRPC bindings to containerd APIs" | ||
keywords = ["containerd", "client", "grpc", "containers"] | ||
|
@@ -14,11 +14,19 @@ license.workspace = true | |
repository.workspace = true | ||
homepage.workspace = true | ||
|
||
[[example]] | ||
name = "container" | ||
path = "examples/container.rs" | ||
|
||
[[example]] | ||
name = "version" | ||
path = "examples/version.rs" | ||
|
||
[dependencies] | ||
tonic.workspace = true | ||
prost.workspace = true | ||
prost-types.workspace = true | ||
tokio = { workspace = true, optional = true } | ||
tonic.workspace = true | ||
tower = { workspace = true, optional = true } | ||
|
||
[build-dependencies] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
[package] | ||
name = "containerd-shim-logging" | ||
version = "0.1.1" | ||
authors = ["Maksym Pavlenko <[email protected]>", "The containerd Authors"] | ||
authors = [ | ||
"Maksym Pavlenko <[email protected]>", | ||
"The containerd Authors" | ||
] | ||
description = "Logger extension for containerd v2 runtime" | ||
keywords = ["containerd", "shim", "containers"] | ||
categories = ["api-bindings", "asynchronous"] | ||
|
||
edition.workspace = true | ||
license.workspace = true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,9 @@ authors = [ | |
"Tianyang Zhang <[email protected]>", | ||
"The containerd Authors", | ||
] | ||
keywords = ["containerd", "shim", "containers"] | ||
description = "Rust implementation of containerd's runc v2 shim runtime" | ||
keywords = ["containerd", "shim", "containers"] | ||
categories = ["api-bindings", "asynchronous"] | ||
|
||
edition.workspace = true | ||
license.workspace = true | ||
|
@@ -24,20 +25,19 @@ path = "src/main.rs" | |
doc = false | ||
|
||
[dependencies] | ||
log = "0.4" | ||
nix = "0.26" | ||
libc = "0.2.95" | ||
time = { version = "0.3.7", features = ["serde", "std"] } | ||
serde = { version = "1.0.133", features = ["derive"] } | ||
serde_json = "1.0.74" | ||
oci-spec = "0.6.0" | ||
containerd-shim = { path = "../shim", version = "0.5.0", features = ["async"] } | ||
crossbeam = "0.8.1" | ||
uuid = { version = "1.0.0", features = ["v4"] } | ||
libc.workspace = true | ||
log.workspace = true | ||
nix.workspace = true | ||
oci-spec.workspace = true | ||
runc = { path = "../runc", version = "0.2.0", features = ["async"] } | ||
serde.workspace = true | ||
serde_json.workspace = true | ||
time.workspace = true | ||
uuid.workspace = true | ||
|
||
# Async dependencies | ||
async-trait = { workspace = true } | ||
async-trait.workspace = true | ||
futures.workspace = true | ||
tokio = { workspace = true, features = ["full"] } | ||
futures = { workspace = true } | ||
|
||
containerd-shim = { path = "../shim", version = "0.5.0", features = ["async"] } | ||
runc = { path = "../runc", version = "0.2.0", features = ["async"] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
[package] | ||
name = "runc" | ||
version = "0.2.0" | ||
authors = ["Yuna Tomida <[email protected]>", "The containerd Authors"] | ||
keywords = ["containerd", "containers", "runc"] | ||
authors = [ | ||
"Yuna Tomida <[email protected]>", | ||
"The containerd Authors", | ||
] | ||
description = "A crate for consuming the runc binary in your Rust applications" | ||
keywords = ["containerd", "containers", "runc"] | ||
categories = ["api-bindings", "asynchronous"] | ||
|
||
edition.workspace = true | ||
license.workspace = true | ||
|
@@ -13,24 +17,23 @@ homepage.workspace = true | |
[features] | ||
async = ["tokio", "async-trait", "futures", "tokio-pipe"] | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
[dependencies] | ||
libc = "0.2.112" | ||
log = "0.4.14" | ||
nix = "0.26" | ||
oci-spec = "0.6.0" | ||
libc.workspace = true | ||
log.workspace = true | ||
nix.workspace = true | ||
oci-spec.workspace = true | ||
os_pipe.workspace = true | ||
path-absolutize = "3.0.11" | ||
rand = "0.8.4" | ||
serde = { version = "1.0.133", features = ["derive"] } | ||
serde_json = "1.0.74" | ||
serde.workspace = true | ||
serde_json.workspace = true | ||
tempfile = "3.6.0" | ||
thiserror = "1.0.30" | ||
time = { version = "0.3.7", features = ["serde", "std"] } | ||
uuid = { version = "1.0.0", features = ["v4"] } | ||
os_pipe = "1.0.0" | ||
thiserror.workspace = true | ||
time.workspace = true | ||
uuid.workspace = true | ||
|
||
# Async dependencies | ||
tokio = { workspace = true, features = ["full"], optional = true } | ||
async-trait = { workspace = true, optional = true } | ||
futures = { workspace = true, optional = true } | ||
tokio = { workspace = true, features = ["full"], optional = true } | ||
tokio-pipe = { version="0.2.10", optional = true } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,39 +2,18 @@ | |
name = "containerd-shim-protos" | ||
version = "0.5.0" | ||
authors = [ | ||
"Maksym Pavlenko <[email protected]>", | ||
"The containerd Authors", | ||
"Maksym Pavlenko <[email protected]>", | ||
"The containerd Authors", | ||
] | ||
description = "TTRPC bindings for containerd shim interfaces" | ||
keywords = ["containerd", "shim", "containers", "ttrpc", "client"] | ||
categories = ["api-bindings"] | ||
categories = ["api-bindings", "asynchronous"] | ||
|
||
edition.workspace = true | ||
license.workspace = true | ||
repository.workspace = true | ||
homepage.workspace = true | ||
|
||
[dependencies] | ||
protobuf = "3.1" | ||
|
||
# Quickfix to make CI green. | ||
# 0.8.1 introduces a breaking change in the API. | ||
# https://github.com/containerd/ttrpc-rust/pull/197 | ||
# https://github.com/containerd/ttrpc-rust/pull/209 | ||
ttrpc = "=0.8.0" | ||
async-trait = { version = "0.1.48", optional = true } | ||
|
||
[build-dependencies] | ||
ttrpc-codegen = "0.4" | ||
|
||
[dev-dependencies] | ||
ctrlc = { version = "3.0", features = ["termination"] } | ||
log = "0.4" | ||
simple_logger = { version = "4.0", default-features = false, features = [ | ||
"stderr", | ||
] } | ||
tokio = { workspace = true, features = ["full"] } | ||
|
||
[features] | ||
default = [] | ||
async = ["ttrpc/async", "async-trait"] | ||
|
@@ -66,3 +45,21 @@ required-features = ["async"] | |
name = "shim-proto-connect-async" | ||
path = "examples/connect-async.rs" | ||
required-features = ["async"] | ||
|
||
[dependencies] | ||
async-trait = { version = "0.1.48", optional = true } | ||
protobuf = "3.1" | ||
# Quickfix to make CI green. | ||
# 0.8.1 introduces a breaking change in the API. | ||
# https://github.com/containerd/ttrpc-rust/pull/197 | ||
# https://github.com/containerd/ttrpc-rust/pull/209 | ||
ttrpc = "=0.8.0" | ||
|
||
[build-dependencies] | ||
ttrpc-codegen = "0.4" | ||
|
||
[dev-dependencies] | ||
ctrlc = { version = "3.0", features = ["termination"] } | ||
log.workspace = true | ||
simple_logger = { version = "4.0", default-features = false, features = ["stderr"]} | ||
tokio = { workspace = true, features = ["full"] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,27 @@ | ||
[package] | ||
name = "containerd-shim" | ||
version = "0.5.0" | ||
authors = ["Maksym Pavlenko <[email protected]>", "The containerd Authors"] | ||
keywords = ["containerd", "shim", "containers"] | ||
authors = [ | ||
"Maksym Pavlenko <[email protected]>", | ||
"The containerd Authors", | ||
] | ||
description = "containerd shim extension" | ||
keywords = ["containerd", "shim", "containers"] | ||
categories = ["api-bindings", "asynchronous"] | ||
|
||
edition.workspace = true | ||
license.workspace = true | ||
repository.workspace = true | ||
homepage.workspace = true | ||
|
||
[features] | ||
async = ["tokio", "containerd-shim-protos/async", "async-trait", "futures", "signal-hook-tokio"] | ||
async = [ | ||
"async-trait", | ||
"containerd-shim-protos/async", | ||
"futures", | ||
"signal-hook-tokio", | ||
"tokio", | ||
] | ||
|
||
[[example]] | ||
name = "skeleton_async" | ||
|
@@ -22,27 +32,26 @@ name = "windows-log-reader" | |
path = "examples/windows_log_reader.rs" | ||
|
||
[dependencies] | ||
containerd-shim-protos = { path = "../shim-protos", version = "0.5.0" } | ||
go-flag = "0.1.0" | ||
thiserror = "1.0" | ||
log = { version = "0.4", features = ["std"] } | ||
libc = "0.2.95" | ||
nix = "0.26" | ||
lazy_static = "1.4.0" | ||
time = { version = "0.3.7", features = ["serde", "std"] } | ||
serde_json = "1.0.78" | ||
serde_derive = "1.0.136" | ||
serde = "1.0.136" | ||
signal-hook = "0.3.13" | ||
oci-spec = "0.6.0" | ||
prctl = "1.0.0" | ||
libc.workspace = true | ||
log = { workspace = true, features = ["std"]} | ||
nix.workspace = true | ||
oci-spec.workspace = true | ||
page_size = "0.6.0" | ||
prctl = "1.0.0" | ||
signal-hook = "0.3.13" | ||
serde.workspace = true | ||
serde_json.workspace = true | ||
thiserror.workspace = true | ||
time.workspace = true | ||
|
||
containerd-shim-protos = { path = "../shim-protos", version = "0.5.0" } | ||
|
||
# Async dependencies | ||
async-trait = { workspace = true, optional = true } | ||
tokio = { workspace = true, features = ["full"], optional = true } | ||
futures = { workspace = true, optional = true} | ||
signal-hook-tokio = { version = "0.3.1", optional = true, features = ["futures-v0_3"]} | ||
tokio = { workspace = true, features = ["full"], optional = true } | ||
|
||
[target.'cfg(target_os = "linux")'.dependencies] | ||
cgroups-rs = "0.2.9" | ||
|
@@ -51,9 +60,17 @@ cgroups-rs = "0.2.9" | |
command-fds = "0.2.1" | ||
|
||
[target.'cfg(windows)'.dependencies] | ||
windows-sys = {version = "0.48.0", features = ["Win32_Foundation","Win32_System_WindowsProgramming","Win32_System_Console", "Win32_System_Pipes","Win32_Security", "Win32_Storage_FileSystem", "Win32_System_Threading"]} | ||
mio = { version = "0.8", features = ["os-ext", "os-poll"] } | ||
os_pipe = "1.1.3" | ||
os_pipe.workspace = true | ||
windows-sys = {version = "0.48.0", features = [ | ||
"Win32_Foundation", | ||
"Win32_System_WindowsProgramming", | ||
"Win32_System_Console", | ||
"Win32_System_Pipes", | ||
"Win32_Security", | ||
"Win32_Storage_FileSystem", | ||
"Win32_System_Threading", | ||
]} | ||
|
||
[dev-dependencies] | ||
tempfile = "3.0" | ||
tempfile = "3.6" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,34 +2,34 @@ | |
name = "containerd-snapshots" | ||
version = "0.3.0" | ||
authors = [ | ||
"Maksym Pavlenko <[email protected]>", | ||
"The containerd Authors", | ||
"Maksym Pavlenko <[email protected]>", | ||
"The containerd Authors", | ||
] | ||
description = "Remote snapshotter extension for containerd" | ||
keywords = ["containerd", "server", "grpc", "containers"] | ||
categories = ["api-bindings", "asynchronous"] | ||
description = "Remote snapshotter extension for containerd" | ||
|
||
edition.workspace = true | ||
license.workspace = true | ||
repository.workspace = true | ||
homepage.workspace = true | ||
|
||
[dependencies] | ||
thiserror = "1.0" | ||
tonic.workspace = true | ||
async-stream = "0.3.3" | ||
futures.workspace = true | ||
pin-utils = "0.1.0" | ||
prost.workspace = true | ||
prost-types.workspace = true | ||
serde.workspace = true | ||
thiserror.workspace = true | ||
tonic.workspace = true | ||
tokio = { workspace = true, features = ["sync"] } | ||
tokio-stream = "0.1.8" | ||
serde = { version = "1.0", features = ["derive"] } | ||
async-stream = "0.3.3" | ||
futures.workspace = true | ||
pin-utils = "0.1.0" | ||
|
||
[dev-dependencies] | ||
log = "0.4" | ||
async-stream = "0.3.2" | ||
futures.workspace = true | ||
log.workspace = true | ||
simple_logger = { version = "4.0", default-features = false } | ||
|
||
[build-dependencies] | ||
|