a3s-box-sdk 0.7.0

Embedded MicroVM sandbox SDK — create, exec, stop sandboxes from your code
docs.rs failed to build a3s-box-sdk-0.7.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.

A3S Box SDK — Embedded MicroVM Sandbox

Create, execute commands in, and manage MicroVM sandboxes from your code. No daemon required — everything runs in-process.

Quick Start

use a3s_box_sdk::{BoxSdk, SandboxOptions};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let sdk = BoxSdk::new().await?;

    let sandbox = sdk.create(SandboxOptions {
        image: "alpine:latest".into(),
        ..Default::default()
    }).await?;

    let result = sandbox.exec("echo", &["hello"]).await?;
    println!("{}", result.stdout);

    sandbox.stop().await?;
    Ok(())
}