10 releases (breaking)

new 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

#213 in Asynchronous

Download history 1602/week @ 2024-10-02 2253/week @ 2024-10-09 1945/week @ 2024-10-16 2364/week @ 2024-10-23 2312/week @ 2024-10-30 2356/week @ 2024-11-06 3150/week @ 2024-11-13 2404/week @ 2024-11-20 1552/week @ 2024-11-27 2382/week @ 2024-12-04 2127/week @ 2024-12-11 2156/week @ 2024-12-18 1395/week @ 2024-12-25 1892/week @ 2025-01-01 2167/week @ 2025-01-08 2277/week @ 2025-01-15

7,922 downloads per month
Used in containerd-shim-wasm

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
~163K SLoC