Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
move to tonic 0.12

Signed-off-by: Eliad Peller <eliad.peller@wiz.io>
  • Loading branch information
eliad-wiz committed Sep 10, 2024
1 parent 64f4807 commit d576ee1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
11 changes: 6 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,16 @@ 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"]

[dev-dependencies]
tokio = { version = "1.37", features = [ "rt-multi-thread", "macros" ] }
tower = "0.4"
tokio = { version = "1.40", features = [ "rt-multi-thread", "macros" ] }
tower = { version = "0.5", features = ["util"] }
hyper-util = "0.1"
7 changes: 5 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,16 @@
//! use tokio::net::UnixStream;
//! use tonic::transport::{Channel, Endpoint, Uri};
//! use tower::service_fn;
//! use hyper_util::rt::TokioIo;
//!
//! #[tokio::main]
//! async fn main() {
//! let path = "/run/containerd/containerd.sock";
//! let channel = Endpoint::try_from("http://[::]")
//! .unwrap()
//! .connect_with_connector(service_fn(move |_: Uri| UnixStream::connect(path)))
//! .connect_with_connector(service_fn(|_: Uri| async {
//! let path = "/run/containerd/containerd.sock";
//! Ok::<_, std::io::Error>(TokioIo::new(UnixStream::connect(path).await?))
//! }))
//! .await
//! .expect("Could not create client.");
//!
Expand Down

0 comments on commit d576ee1

Please sign in to comment.