Skip to main content

Crate sandboxrs_windows

Crate sandboxrs_windows 

Source
Expand description

No-admin Windows process sandbox library with a std::process::Command-like API.

The API guide documents stream defaults, backend selection, lifecycle behavior, and the error model.

use sandboxrs_windows::Sandbox;

let sandbox = Sandbox::builder(r"C:\repo")
    .read_only(r"C:\Users\me\.rustup")
    .read_write(r"C:\temp\sandboxrs")
    .build()?;

let output = sandbox
    .command("cargo")
    .arg("test")
    .output()?;

Structs§

BackendProbe
Result of probing sandbox backends.
BackendProbeEntry
Result of probing one sandbox backend.
Sandbox
Reusable, validated authority boundary.
SandboxBuilder
Validates and builds a reusable Sandbox.
SandboxChild
A spawned sandboxed process tree.
SandboxCommand
A sandboxed command, mirroring the familiar std::process::Command API.
SandboxOutput
Result of a completed sandboxed command.

Enums§

BackendKind
Backend that enforces a sandboxed execution.
BackendPreference
Backend selection preference.
SandboxError
Errors produced while validating, building, or executing a sandbox.
Stdio
Standard stream mode for a sandboxed command.