10 releases (breaking)

0.8.0 Jan 16, 2025
0.7.0 Jan 8, 2025
0.6.0 Oct 7, 2024
0.5.0 Mar 13, 2024
0.1.2 Dec 11, 2021

#290 in Asynchronous

Download history 2477/week @ 2024-12-06 2093/week @ 2024-12-13 1435/week @ 2024-12-20 1647/week @ 2024-12-27 2343/week @ 2025-01-03 2183/week @ 2025-01-10 2967/week @ 2025-01-17 4134/week @ 2025-01-24 3773/week @ 2025-01-31 3843/week @ 2025-02-07 3851/week @ 2025-02-14 4244/week @ 2025-02-21 3849/week @ 2025-02-28 3216/week @ 2025-03-07 2982/week @ 2025-03-14 2865/week @ 2025-03-21

13,777 downloads per month
Used in 3 crates

Apache-2.0

70KB
274 lines

containerd GRPC client

Crates.io docs.rs Crates.io CI

This crate implements a GRPC client to query containerd APIs.

Example

Run with cargo run --example version

use containerd_client::{connect, services::v1::version_client::VersionClient};

async fn query_version() {
    // Launch containerd at /run/containerd/containerd.sock
    let channel = connect("/run/containerd/containerd.sock").await.unwrap();

    let mut client = VersionClient::new(channel);
    let resp = client.version(()).await.unwrap();

    println!("Response: {:?}", resp.get_ref());
}

Dependencies

~6–14MB
~162K SLoC