Skip to main content
The Rust SDK is currently in development. Check back soon or follow us on GitHub for updates.
The Rust SDK will allow you to programmatically configure Docker containers to route through the OneCLI proxy from Rust applications.

Planned installation

[dependencies]
onecli = "0.1"

Planned usage

use onecli::OneCLI;

#[tokio::main]
async fn main() {
    let oc = OneCLI::new("http://localhost:18080");

    let config = oc.get_container_config().await.unwrap();
    println!("{:?}", config.env);
    println!("{:?}", config.mounts);
}
Want this SDK sooner? Let us know on GitHub.