| Crates.io | podman-client |
| lib.rs | podman-client |
| version | 0.0.2 |
| created_at | 2025-07-20 08:43:48.073778+00 |
| updated_at | 2025-08-02 08:14:34.180938+00 |
| description | A native Rust client for the Podman REST API over Unix sockets |
| homepage | |
| repository | https://github.com/PodInCloud/podman-client-rs |
| max_upload_size | |
| id | 1760930 |
| size | 295,197 |
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.
Add to your Cargo.toml:
[dependencies]
podman-client = "0.1"
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),
}
}