9 releases (breaking)

new 0.7.0 Jan 8, 2025
0.6.0 Oct 7, 2024
0.5.0 Mar 13, 2024
0.4.0 Aug 10, 2023
0.1.2 Dec 11, 2021

#188 in Asynchronous

Download history 1306/week @ 2024-09-21 1241/week @ 2024-09-28 2087/week @ 2024-10-05 2353/week @ 2024-10-12 1861/week @ 2024-10-19 2420/week @ 2024-10-26 2399/week @ 2024-11-02 2441/week @ 2024-11-09 2984/week @ 2024-11-16 2076/week @ 2024-11-23 1963/week @ 2024-11-30 2340/week @ 2024-12-07 2221/week @ 2024-12-14 1205/week @ 2024-12-21 1702/week @ 2024-12-28 2141/week @ 2025-01-04

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

Apache-2.0

70KB
264 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