podman-client

Crates.iopodman-client
lib.rspodman-client
version0.0.2
created_at2025-07-20 08:43:48.073778+00
updated_at2025-08-02 08:14:34.180938+00
descriptionA native Rust client for the Podman REST API over Unix sockets
homepage
repositoryhttps://github.com/PodInCloud/podman-client-rs
max_upload_size
id1760930
size295,197
Muhammad Naufal Hilmy Makarim (mnaufalhilmym)

documentation

README

podman-client

Latest Version

A minimal async client for Podman over a Unix socket, written in Rust using hyper and tokio.

This crate provides basic Podman API access over a Unix domain socket with lightweight dependencies.

📦 Installation

Add to your Cargo.toml:

[dependencies]
podman-client = "0.1"

🚀 Example

Make sure the Podman socket is running:

podman system service --time=0

Then use the client like this:

use podman_client::client::Client;

#[tokio::main]
async fn main() {
    let client = Client::new("/run/user/1000/podman/podman.sock");

    match client.info().await {
        Ok(info) => println!("{:#?}", info),
        Err(err) => eprintln!("Failed to get podman info: {}", err),
    }
}
Commit count: 0

cargo fmt