8 releases (5 breaking)

0.6.0 Oct 7, 2024
0.5.0 Mar 13, 2024
0.4.0 Aug 10, 2023
0.3.0 May 5, 2023
0.1.2 Dec 11, 2021

#196 in Asynchronous

Download history 1321/week @ 2024-08-19 1133/week @ 2024-08-26 1546/week @ 2024-09-02 1463/week @ 2024-09-09 1487/week @ 2024-09-16 1212/week @ 2024-09-23 1324/week @ 2024-09-30 2189/week @ 2024-10-07 2172/week @ 2024-10-14 2126/week @ 2024-10-21 2321/week @ 2024-10-28 2271/week @ 2024-11-04 2593/week @ 2024-11-11 2806/week @ 2024-11-18 2050/week @ 2024-11-25 1888/week @ 2024-12-02

9,417 downloads per month
Used in containerd-shim-wasm

Apache-2.0

50KB
262 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–13MB
~161K SLoC