From afcd053f8adf7c06ff3aadd115656236ee224ce2 Mon Sep 17 00:00:00 2001 From: Aviram Hassan Date: Thu, 3 Oct 2024 12:25:45 +0300 Subject: [PATCH] bump tonic,prost --- Cargo.toml | 6 +++--- build.rs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 05f9240..216ffad 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,12 +12,12 @@ documentation = "https://docs.rs/crate/k8s-cri" readme = "README.md" [dependencies] -tonic = { version = "0.11"} -prost = "0.12" +tonic = { version = "0.12"} +prost = "0.13" serde = { version = "1.0", features = ["derive"] } [build-dependencies.tonic-build] -version = "0.11" +version = "0.12" default-features = false features = ["prost", "transport"] diff --git a/build.rs b/build.rs index b87c594..abfd509 100644 --- a/build.rs +++ b/build.rs @@ -1,11 +1,11 @@ fn main() { tonic_build::configure() .type_attribute(".", "#[derive(serde::Serialize, serde::Deserialize)]") - .compile(&["proto/v1.proto"], &["proto/"]) + .compile_protos(&["proto/v1.proto"], &["proto/"]) .unwrap(); tonic_build::configure() .type_attribute(".", "#[derive(serde::Serialize, serde::Deserialize)]") - .compile(&["proto/v1alpha2.proto"], &["proto/"]) + .compile_protos(&["proto/v1alpha2.proto"], &["proto/"]) .unwrap(); }