From a8678a7794bb689e4bfd13953d6c8ca080a7d818 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Wed, 22 Jan 2025 11:19:17 +0100 Subject: [PATCH] deps: Update ttrpc to v0.8.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update the ttrpc crate to include the fix from Moritz Sanft, which solves the connectivity issues with 6.12.x kernels* *: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.9&id=3257813a3ae7462ac5cde04e120806f0c0776850 Signed-off-by: Fabiano FidĂȘncio --- src/agent/Cargo.lock | 5 +- src/agent/Cargo.toml | 2 +- src/libs/Cargo.lock | 14 ++++- src/libs/protocols/Cargo.toml | 2 +- src/runtime-rs/Cargo.lock | 14 ++++- src/runtime-rs/crates/agent/Cargo.toml | 2 +- src/runtime-rs/crates/hypervisor/Cargo.toml | 2 +- .../crates/runtimes/common/Cargo.toml | 2 +- src/runtime-rs/crates/service/Cargo.toml | 2 +- src/tools/agent-ctl/Cargo.lock | 9 +-- src/tools/agent-ctl/Cargo.toml | 2 +- src/tools/genpolicy/Cargo.lock | 11 ++-- src/tools/kata-ctl/Cargo.lock | 55 +++---------------- src/tools/kata-ctl/Cargo.toml | 2 +- 14 files changed, 55 insertions(+), 69 deletions(-) diff --git a/src/agent/Cargo.lock b/src/agent/Cargo.lock index f94f936f6b06..ab88f4e6ce43 100644 --- a/src/agent/Cargo.lock +++ b/src/agent/Cargo.lock @@ -6500,14 +6500,15 @@ checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" [[package]] name = "ttrpc" -version = "0.8.1" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55ea338db445bee75c596cf8a478fbfcefad5a943c9e92a7e1c805c65ed39551" +checksum = "2c580c498a547b4c083ec758be543e11a0772e03013aef4cdb1fbe77c8b62cae" dependencies = [ "async-trait", "byteorder", "crossbeam", "futures", + "home", "libc", "log", "nix 0.26.4", diff --git a/src/agent/Cargo.toml b/src/agent/Cargo.toml index 6b0ab344c18b..20737f60c670 100644 --- a/src/agent/Cargo.toml +++ b/src/agent/Cargo.toml @@ -12,7 +12,7 @@ oci-spec = { version = "0.6.8", features = ["runtime"] } rustjail = { path = "rustjail" } protocols = { path = "../libs/protocols", features = ["async", "with-serde"] } lazy_static = "1.3.0" -ttrpc = { version = "0.8", features = ["async"], default-features = false } +ttrpc = { version = "0.8.4", features = ["async"], default-features = false } protobuf = "3.2.0" libc = "0.2.58" nix = "0.24.2" diff --git a/src/libs/Cargo.lock b/src/libs/Cargo.lock index ed7184c48e33..08a3f9263835 100644 --- a/src/libs/Cargo.lock +++ b/src/libs/Cargo.lock @@ -676,6 +676,15 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" +[[package]] +name = "home" +version = "0.5.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3d1354bf6b7235cb4a0576c2619fd4ed18183f689b12b006a0ee7329eeff9a5" +dependencies = [ + "windows-sys 0.52.0", +] + [[package]] name = "http" version = "0.2.8" @@ -2015,14 +2024,15 @@ checksum = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642" [[package]] name = "ttrpc" -version = "0.8.1" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55ea338db445bee75c596cf8a478fbfcefad5a943c9e92a7e1c805c65ed39551" +checksum = "2c580c498a547b4c083ec758be543e11a0772e03013aef4cdb1fbe77c8b62cae" dependencies = [ "async-trait", "byteorder", "crossbeam", "futures", + "home", "libc", "log", "nix 0.26.4", diff --git a/src/libs/protocols/Cargo.toml b/src/libs/protocols/Cargo.toml index 2b945f42c75e..a3c18d7c9ed9 100644 --- a/src/libs/protocols/Cargo.toml +++ b/src/libs/protocols/Cargo.toml @@ -11,7 +11,7 @@ with-serde = [] async = ["ttrpc/async", "async-trait"] [dependencies] -ttrpc = "0.8" +ttrpc = "0.8.4" async-trait = { version = "0.1.42", optional = true } protobuf = { version = "3.2.0" } serde = { version = "1.0.130", features = ["derive"] } diff --git a/src/runtime-rs/Cargo.lock b/src/runtime-rs/Cargo.lock index b838ca9c1ba8..44593fce5b4e 100644 --- a/src/runtime-rs/Cargo.lock +++ b/src/runtime-rs/Cargo.lock @@ -1579,6 +1579,15 @@ dependencies = [ "digest 0.10.7", ] +[[package]] +name = "home" +version = "0.5.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3d1354bf6b7235cb4a0576c2619fd4ed18183f689b12b006a0ee7329eeff9a5" +dependencies = [ + "windows-sys 0.52.0", +] + [[package]] name = "http" version = "0.2.9" @@ -4426,14 +4435,15 @@ checksum = "3528ecfd12c466c6f163363caf2d02a71161dd5e1cc6ae7b34207ea2d42d81ed" [[package]] name = "ttrpc" -version = "0.8.1" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55ea338db445bee75c596cf8a478fbfcefad5a943c9e92a7e1c805c65ed39551" +checksum = "2c580c498a547b4c083ec758be543e11a0772e03013aef4cdb1fbe77c8b62cae" dependencies = [ "async-trait", "byteorder", "crossbeam", "futures 0.3.28", + "home", "libc", "log", "nix 0.26.2", diff --git a/src/runtime-rs/crates/agent/Cargo.toml b/src/runtime-rs/crates/agent/Cargo.toml index a37a639fc8dc..bb42a4dd9cb2 100644 --- a/src/runtime-rs/crates/agent/Cargo.toml +++ b/src/runtime-rs/crates/agent/Cargo.toml @@ -17,7 +17,7 @@ serde = { version = "^1.0", features = ["derive"] } serde_json = ">=1.0.9" slog = "2.5.2" slog-scope = "4.4.0" -ttrpc = "0.8" +ttrpc = "0.8.4" tokio = { version = "1.38.0", features = ["fs", "rt"] } tracing = "0.1.36" url = "2.2.2" diff --git a/src/runtime-rs/crates/hypervisor/Cargo.toml b/src/runtime-rs/crates/hypervisor/Cargo.toml index 62a92544f712..94972a0f5d8c 100644 --- a/src/runtime-rs/crates/hypervisor/Cargo.toml +++ b/src/runtime-rs/crates/hypervisor/Cargo.toml @@ -28,7 +28,7 @@ rand = "0.8.4" path-clean = "1.0.1" lazy_static = "1.4" tracing = "0.1.36" -ttrpc = {version = "0.8.1", features = ["async"] } +ttrpc = { version = "0.8.4", features = ["async"] } protobuf = "3.1.0" kata-sys-util = { path = "../../../libs/kata-sys-util" } diff --git a/src/runtime-rs/crates/runtimes/common/Cargo.toml b/src/runtime-rs/crates/runtimes/common/Cargo.toml index 49f2898b2864..dcc8e4697191 100644 --- a/src/runtime-rs/crates/runtimes/common/Cargo.toml +++ b/src/runtime-rs/crates/runtimes/common/Cargo.toml @@ -20,7 +20,7 @@ slog-scope = "4.4.0" strum = { version = "0.24.0", features = ["derive"] } thiserror = "^1.0" tokio = { version = "1.38.0", features = ["rt-multi-thread", "process", "fs"] } -ttrpc = "0.8" +ttrpc = "0.8.4" persist = { path = "../../persist" } agent = { path = "../../agent" } kata-sys-util = { path = "../../../../libs/kata-sys-util" } diff --git a/src/runtime-rs/crates/service/Cargo.toml b/src/runtime-rs/crates/service/Cargo.toml index 528b2642c62d..4a63318014b3 100644 --- a/src/runtime-rs/crates/service/Cargo.toml +++ b/src/runtime-rs/crates/service/Cargo.toml @@ -12,7 +12,7 @@ slog = "2.5.2" slog-scope = "4.4.0" tokio = { version = "1.38.0", features = ["rt-multi-thread"] } tracing = "0.1.36" -ttrpc = "0.8" +ttrpc = "0.8.4" common = { path = "../runtimes/common" } containerd-shim-protos = { version = "0.6.0", features = ["async"] } diff --git a/src/tools/agent-ctl/Cargo.lock b/src/tools/agent-ctl/Cargo.lock index e4094eaf12a0..a8aae4d7b5d7 100644 --- a/src/tools/agent-ctl/Cargo.lock +++ b/src/tools/agent-ctl/Cargo.lock @@ -2212,7 +2212,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4979f22fdb869068da03c9f7528f8297c6fd2606bc3a4affe42e6a823fdb8da4" dependencies = [ "cfg-if 1.0.0", - "windows-targets 0.48.0", + "windows-targets 0.52.6", ] [[package]] @@ -4556,12 +4556,13 @@ checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" [[package]] name = "ttrpc" -version = "0.8.1" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55ea338db445bee75c596cf8a478fbfcefad5a943c9e92a7e1c805c65ed39551" +checksum = "2c580c498a547b4c083ec758be543e11a0772e03013aef4cdb1fbe77c8b62cae" dependencies = [ "byteorder", "crossbeam", + "home", "libc", "log", "nix 0.26.4", @@ -4904,7 +4905,7 @@ version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb" dependencies = [ - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] diff --git a/src/tools/agent-ctl/Cargo.toml b/src/tools/agent-ctl/Cargo.toml index ace641314921..da99d9c0c7d2 100644 --- a/src/tools/agent-ctl/Cargo.toml +++ b/src/tools/agent-ctl/Cargo.toml @@ -33,7 +33,7 @@ log = "0.4.22" nix = "0.23.0" libc = "0.2.112" # XXX: Must be the same as the version used by the agent -ttrpc = "0.8" +ttrpc = "0.8.4" # For parsing timeouts humantime = "2.1.0" diff --git a/src/tools/genpolicy/Cargo.lock b/src/tools/genpolicy/Cargo.lock index 74df8a2bbdf1..3f903a7898be 100644 --- a/src/tools/genpolicy/Cargo.lock +++ b/src/tools/genpolicy/Cargo.lock @@ -827,11 +827,11 @@ dependencies = [ [[package]] name = "home" -version = "0.5.5" +version = "0.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5444c27eef6923071f7ebcc33e3444508466a76f7a2b93da00ed6e19f30c1ddb" +checksum = "e3d1354bf6b7235cb4a0576c2619fd4ed18183f689b12b006a0ee7329eeff9a5" dependencies = [ - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] @@ -2455,12 +2455,13 @@ checksum = "3528ecfd12c466c6f163363caf2d02a71161dd5e1cc6ae7b34207ea2d42d81ed" [[package]] name = "ttrpc" -version = "0.8.1" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55ea338db445bee75c596cf8a478fbfcefad5a943c9e92a7e1c805c65ed39551" +checksum = "2c580c498a547b4c083ec758be543e11a0772e03013aef4cdb1fbe77c8b62cae" dependencies = [ "byteorder", "crossbeam", + "home", "libc", "log", "nix", diff --git a/src/tools/kata-ctl/Cargo.lock b/src/tools/kata-ctl/Cargo.lock index bd2de0038875..eb4b528fca11 100644 --- a/src/tools/kata-ctl/Cargo.lock +++ b/src/tools/kata-ctl/Cargo.lock @@ -36,7 +36,7 @@ dependencies = [ "slog-scope", "tokio", "tracing", - "ttrpc 0.8.1", + "ttrpc", "url", ] @@ -952,11 +952,11 @@ checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" [[package]] name = "home" -version = "0.5.5" +version = "0.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5444c27eef6923071f7ebcc33e3444508466a76f7a2b93da00ed6e19f30c1ddb" +checksum = "e3d1354bf6b7235cb4a0576c2619fd4ed18183f689b12b006a0ee7329eeff9a5" dependencies = [ - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] @@ -1211,7 +1211,7 @@ dependencies = [ "thiserror", "tokio", "toml", - "ttrpc 0.6.1", + "ttrpc", "url", "vmm-sys-util", ] @@ -1415,19 +1415,6 @@ dependencies = [ "tempfile", ] -[[package]] -name = "nix" -version = "0.23.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f3790c00a0150112de0f4cd161e3d7fc4b2d8a5542ffc35f099a2562aecb35c" -dependencies = [ - "bitflags 1.3.2", - "cc", - "cfg-if", - "libc", - "memoffset 0.6.5", -] - [[package]] name = "nix" version = "0.24.3" @@ -1904,16 +1891,6 @@ dependencies = [ "thiserror", ] -[[package]] -name = "protobuf-codegen-pure" -version = "2.28.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95a29399fc94bcd3eeaa951c715f7bea69409b2445356b00519740bcd6ddd865" -dependencies = [ - "protobuf 2.28.0", - "protobuf-codegen 2.28.0", -] - [[package]] name = "protobuf-parse" version = "3.3.0" @@ -1948,7 +1925,7 @@ dependencies = [ "protobuf 3.3.0", "serde", "serde_json", - "ttrpc 0.8.1", + "ttrpc", "ttrpc-codegen", ] @@ -3046,29 +3023,15 @@ checksum = "3528ecfd12c466c6f163363caf2d02a71161dd5e1cc6ae7b34207ea2d42d81ed" [[package]] name = "ttrpc" -version = "0.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2ecfff459a859c6ba6668ff72b34c2f1d94d9d58f7088414c2674ad0f31cc7d8" -dependencies = [ - "byteorder", - "libc", - "log", - "nix 0.23.2", - "protobuf 2.28.0", - "protobuf-codegen-pure", - "thiserror", -] - -[[package]] -name = "ttrpc" -version = "0.8.1" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55ea338db445bee75c596cf8a478fbfcefad5a943c9e92a7e1c805c65ed39551" +checksum = "2c580c498a547b4c083ec758be543e11a0772e03013aef4cdb1fbe77c8b62cae" dependencies = [ "async-trait", "byteorder", "crossbeam", "futures", + "home", "libc", "log", "nix 0.26.4", diff --git a/src/tools/kata-ctl/Cargo.toml b/src/tools/kata-ctl/Cargo.toml index 7d4661693c9b..7b84772bb204 100644 --- a/src/tools/kata-ctl/Cargo.toml +++ b/src/tools/kata-ctl/Cargo.toml @@ -45,7 +45,7 @@ slog = "2.7.0" slog-scope = "4.4.0" hyper = "0.14.20" tokio = { version = "1.28.1", features = ["signal"] } -ttrpc = "0.6.0" +ttrpc = "0.8.4" prometheus = { version = "0.13.0", features = ["process"] } procfs = "0.12.0"