Something went wrong. Try again.
Flatpak-style launcher for sandboxed WebAssembly tools. Install, verify, and run .wasm binaries with explicit capability grants. Single binary, local-first, zero telemetry. wasmbox.orbiter.website
wasm rust wasmbox
Something went wrong. Try again.
496 B · 20 lines
Rust
at dev
123456789101112131415161718192021use serde::{Deserialize, Serialize};
/// A filesystem access grant scoped to a specific path.#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]pub struct FilesystemGrant { pub path: String, pub read: bool, pub write: bool,}
/// Capabilities a tool can request.#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]pub enum Capability { Stdout, Stdin, Filesystem(FilesystemGrant), Network(Vec<String>), Clipboard, Env(Vec<String>),}