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

#208 in Asynchronous

Download history 1219/week @ 2024-09-27 1872/week @ 2024-10-04 2580/week @ 2024-10-11 1634/week @ 2024-10-18 2615/week @ 2024-10-25 2113/week @ 2024-11-01 2536/week @ 2024-11-08 3081/week @ 2024-11-15 2238/week @ 2024-11-22 1754/week @ 2024-11-29 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 2116/week @ 2025-01-10

8,210 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