runtime-rs: update the protobuf to 3.7.1

Since some files generated by protobuf were share between
runtime-rs and kata agent, and the kata agent's dependency
image-rs dependened protobuf@3.7.1, thus we'd better to keep
the protobuf version aligned between runtime-rs and agent,
otherwise, we couldn't compile the runtime-rs and agent
at the same time.

Fixes: https://github.com/kata-containers/kata-containers/issues/10650

Signed-off-by: Fupan Li <fupan.lfp@antgroup.com>
This commit is contained in:
Fupan Li 2025-03-21 17:35:36 +08:00
parent e84f7c2c4b
commit 4b93176225
9 changed files with 54 additions and 31 deletions

View File

@ -13,7 +13,7 @@ rustjail = { path = "rustjail" }
protocols = { path = "../libs/protocols", features = ["async", "with-serde"] } protocols = { path = "../libs/protocols", features = ["async", "with-serde"] }
lazy_static = "1.3.0" lazy_static = "1.3.0"
ttrpc = { version = "0.8.4", features = ["async"], default-features = false } ttrpc = { version = "0.8.4", features = ["async"], default-features = false }
protobuf = "3.2.0" protobuf = "=3.7.1"
libc = "0.2.58" libc = "0.2.58"
nix = "0.24.2" nix = "0.24.2"
capctl = "0.2.0" capctl = "0.2.0"

View File

@ -20,7 +20,7 @@ scopeguard = "1.0.0"
capctl = "0.2.0" capctl = "0.2.0"
lazy_static = "1.3.0" lazy_static = "1.3.0"
libc = "0.2.58" libc = "0.2.58"
protobuf = "3.2.0" protobuf = "=3.7.1"
slog = "2.5.2" slog = "2.5.2"
slog-scope = "4.1.2" slog-scope = "4.1.2"
scan_fmt = "0.2.6" scan_fmt = "0.2.6"

View File

@ -50,7 +50,7 @@ dependencies = [
"logging", "logging",
"nix 0.24.3", "nix 0.24.3",
"oci-spec", "oci-spec",
"protobuf 3.2.0", "protobuf 3.7.1",
"protocols", "protocols",
"serde", "serde",
"serde_json", "serde_json",
@ -512,7 +512,7 @@ dependencies = [
"nix 0.24.3", "nix 0.24.3",
"oci-spec", "oci-spec",
"persist", "persist",
"protobuf 3.2.0", "protobuf 3.7.1",
"protocols", "protocols",
"resource", "resource",
"runtime-spec", "runtime-spec",
@ -584,7 +584,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "967dbd2804aceb398bd7d867410342d68b9d74c1fead823ad8353b3ab5f23eb7" checksum = "967dbd2804aceb398bd7d867410342d68b9d74c1fead823ad8353b3ab5f23eb7"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"protobuf 3.2.0", "protobuf 3.7.1",
"ttrpc", "ttrpc",
"ttrpc-codegen", "ttrpc-codegen",
] ]
@ -1135,6 +1135,12 @@ dependencies = [
"libc", "libc",
] ]
[[package]]
name = "equivalent"
version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
[[package]] [[package]]
name = "errno" name = "errno"
version = "0.3.1" version = "0.3.1"
@ -1482,7 +1488,7 @@ dependencies = [
"futures-sink", "futures-sink",
"futures-util", "futures-util",
"http", "http",
"indexmap", "indexmap 1.9.3",
"slab", "slab",
"tokio", "tokio",
"tokio-util", "tokio-util",
@ -1504,6 +1510,12 @@ version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2c6201b9ff9fd90a5a3bac2e56a830d0caa509576f0e503818ee82c181b3437a" checksum = "2c6201b9ff9fd90a5a3bac2e56a830d0caa509576f0e503818ee82c181b3437a"
[[package]]
name = "hashbrown"
version = "0.15.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bf151400ff0baff5465007dd2f3e717f3fe502074ca563069ce3a6629d07b289"
[[package]] [[package]]
name = "headers" name = "headers"
version = "0.3.8" version = "0.3.8"
@ -1698,7 +1710,7 @@ dependencies = [
"oci-spec", "oci-spec",
"path-clean", "path-clean",
"persist", "persist",
"protobuf 3.2.0", "protobuf 3.7.1",
"protocols", "protocols",
"qapi", "qapi",
"qapi-qmp", "qapi-qmp",
@ -1773,6 +1785,16 @@ dependencies = [
"hashbrown 0.12.3", "hashbrown 0.12.3",
] ]
[[package]]
name = "indexmap"
version = "2.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3954d50fe15b02142bf25d3b8bdadb634ec3948f103d04ffe3031bc8fe9d7058"
dependencies = [
"equivalent",
"hashbrown 0.15.2",
]
[[package]] [[package]]
name = "instant" name = "instant"
version = "0.1.12" version = "0.1.12"
@ -2566,7 +2588,7 @@ dependencies = [
"fnv", "fnv",
"futures-channel", "futures-channel",
"futures-util", "futures-util",
"indexmap", "indexmap 1.9.3",
"js-sys", "js-sys",
"once_cell", "once_cell",
"pin-project-lite", "pin-project-lite",
@ -2734,7 +2756,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "467d164a6de56270bd7c4d070df81d07beace25012d5103ced4e9ff08d6afdb7" checksum = "467d164a6de56270bd7c4d070df81d07beace25012d5103ced4e9ff08d6afdb7"
dependencies = [ dependencies = [
"fixedbitset", "fixedbitset",
"indexmap", "indexmap 1.9.3",
] ]
[[package]] [[package]]
@ -2950,9 +2972,9 @@ checksum = "106dd99e98437432fed6519dedecfade6a06a73bb7b2a1e019fdd2bee5778d94"
[[package]] [[package]]
name = "protobuf" name = "protobuf"
version = "3.2.0" version = "3.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b55bad9126f378a853655831eb7363b7b01b81d19f8cb1218861086ca4a1a61e" checksum = "a3a7c64d9bf75b1b8d981124c14c179074e8caa7dfe7b6a12e6222ddcd0c8f72"
dependencies = [ dependencies = [
"once_cell", "once_cell",
"protobuf-support", "protobuf-support",
@ -2970,13 +2992,13 @@ dependencies = [
[[package]] [[package]]
name = "protobuf-codegen" name = "protobuf-codegen"
version = "3.2.0" version = "3.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0dd418ac3c91caa4032d37cb80ff0d44e2ebe637b2fb243b6234bf89cdac4901" checksum = "e26b833f144769a30e04b1db0146b2aaa53fd2fd83acf10a6b5f996606c18144"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"once_cell", "once_cell",
"protobuf 3.2.0", "protobuf 3.7.1",
"protobuf-parse", "protobuf-parse",
"regex", "regex",
"tempfile", "tempfile",
@ -2985,14 +3007,14 @@ dependencies = [
[[package]] [[package]]
name = "protobuf-parse" name = "protobuf-parse"
version = "3.2.0" version = "3.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9d39b14605eaa1f6a340aec7f320b34064feb26c93aec35d6a9a2272a8ddfa49" checksum = "322330e133eab455718444b4e033ebfac7c6528972c784fcde28d2cc783c6257"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"indexmap", "indexmap 2.8.0",
"log", "log",
"protobuf 3.2.0", "protobuf 3.7.1",
"protobuf-support", "protobuf-support",
"tempfile", "tempfile",
"thiserror 1.0.44", "thiserror 1.0.44",
@ -3001,9 +3023,9 @@ dependencies = [
[[package]] [[package]]
name = "protobuf-support" name = "protobuf-support"
version = "3.2.0" version = "3.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a5d4d7b8601c814cfb36bcebb79f0e61e45e1e93640cf778837833bbed05c372" checksum = "b088fd20b938a875ea00843b6faf48579462630015c3788d397ad6a786663252"
dependencies = [ dependencies = [
"thiserror 1.0.44", "thiserror 1.0.44",
] ]
@ -3014,7 +3036,7 @@ version = "0.1.0"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"oci-spec", "oci-spec",
"protobuf 3.2.0", "protobuf 3.7.1",
"serde", "serde",
"serde_json", "serde_json",
"ttrpc", "ttrpc",
@ -3796,7 +3818,7 @@ dependencies = [
"logging", "logging",
"nix 0.24.3", "nix 0.24.3",
"oci-spec", "oci-spec",
"protobuf 3.2.0", "protobuf 3.7.1",
"rand 0.8.5", "rand 0.8.5",
"runtime-spec", "runtime-spec",
"runtimes", "runtimes",
@ -4478,8 +4500,8 @@ dependencies = [
"libc", "libc",
"log", "log",
"nix 0.26.2", "nix 0.26.2",
"protobuf 3.2.0", "protobuf 3.7.1",
"protobuf-codegen 3.2.0", "protobuf-codegen 3.7.1",
"thiserror 1.0.44", "thiserror 1.0.44",
"tokio", "tokio",
"tokio-vsock", "tokio-vsock",
@ -4493,7 +4515,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "94d7f7631d7a9ebed715a47cd4cb6072cbc7ae1d4ec01598971bbec0024340c2" checksum = "94d7f7631d7a9ebed715a47cd4cb6072cbc7ae1d4ec01598971bbec0024340c2"
dependencies = [ dependencies = [
"protobuf 2.28.0", "protobuf 2.28.0",
"protobuf-codegen 3.2.0", "protobuf-codegen 3.7.1",
"protobuf-support", "protobuf-support",
"ttrpc-compiler", "ttrpc-compiler",
] ]
@ -4661,7 +4683,7 @@ dependencies = [
"nix 0.24.3", "nix 0.24.3",
"oci-spec", "oci-spec",
"persist", "persist",
"protobuf 3.2.0", "protobuf 3.7.1",
"resource", "resource",
"runtime-spec", "runtime-spec",
"sendfd", "sendfd",

View File

@ -12,7 +12,7 @@ futures = "0.1.27"
anyhow = "1.0.26" anyhow = "1.0.26"
async-trait = "0.1.48" async-trait = "0.1.48"
log = "0.4.14" log = "0.4.14"
protobuf = "3.2.0" protobuf = "=3.7.1"
serde = { version = "^1.0", features = ["derive"] } serde = { version = "^1.0", features = ["derive"] }
serde_json = ">=1.0.9" serde_json = ">=1.0.9"
slog = "2.5.2" slog = "2.5.2"

View File

@ -29,7 +29,7 @@ path-clean = "1.0.1"
lazy_static = "1.4" lazy_static = "1.4"
tracing = "0.1.36" tracing = "0.1.36"
ttrpc = { version = "0.8.4", features = ["async"] } ttrpc = { version = "0.8.4", features = ["async"] }
protobuf = "3.1.0" protobuf = "=3.7.1"
kata-sys-util = { path = "../../../libs/kata-sys-util" } kata-sys-util = { path = "../../../libs/kata-sys-util" }
kata-types = { path = "../../../libs/kata-types" } kata-types = { path = "../../../libs/kata-types" }

View File

@ -13,7 +13,7 @@ async-trait = "0.1.48"
containerd-shim-protos = { version = "0.6.0", features = ["async"] } containerd-shim-protos = { version = "0.6.0", features = ["async"] }
lazy_static = "1.4.0" lazy_static = "1.4.0"
nix = "0.24.2" nix = "0.24.2"
protobuf = "3.2.0" protobuf = "=3.7.1"
serde_json = "1.0.39" serde_json = "1.0.39"
slog = "2.5.2" slog = "2.5.2"
slog-scope = "4.4.0" slog-scope = "4.4.0"

View File

@ -4,6 +4,7 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
// //
#[macro_use(lazy_static)] #[macro_use(lazy_static)]
extern crate lazy_static; extern crate lazy_static;

View File

@ -14,7 +14,7 @@ futures = "0.3.19"
lazy_static = "1.4.0" lazy_static = "1.4.0"
libc = ">=0.2.39" libc = ">=0.2.39"
nix = "0.24.2" nix = "0.24.2"
protobuf = "3.2.0" protobuf = "=3.7.1"
sendfd = { version = "0.4.3", features = ["tokio"] } sendfd = { version = "0.4.3", features = ["tokio"] }
serde = { version = "1.0.100", features = ["derive"] } serde = { version = "1.0.100", features = ["derive"] }
serde_derive = "1.0.27" serde_derive = "1.0.27"

View File

@ -20,7 +20,7 @@ go-flag = "0.1.0"
libc = "0.2.108" libc = "0.2.108"
log = "0.4.14" log = "0.4.14"
nix = "0.24.2" nix = "0.24.2"
protobuf = "3.2.0" protobuf = "=3.7.1"
sha2 = "=0.9.3" sha2 = "=0.9.3"
slog = {version = "2.5.2", features = ["std", "release_max_level_trace", "max_level_trace"]} slog = {version = "2.5.2", features = ["std", "release_max_level_trace", "max_level_trace"]}
slog-async = "2.5.2" slog-async = "2.5.2"