1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! 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
//!
//! ```rust,no_run
//! 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(())
//! }
//! ```
pub
pub use ;
pub use ;
pub use BoxSdk;
// Re-export streaming types from runtime for convenience
pub use StreamingExec;
/// SDK version.
pub const VERSION: &str = env!;