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§
- Backend
Probe - Result of probing sandbox backends.
- Backend
Probe Entry - Result of probing one sandbox backend.
- Sandbox
- Reusable, validated authority boundary.
- Sandbox
Builder - Validates and builds a reusable
Sandbox. - Sandbox
Child - A spawned sandboxed process tree.
- Sandbox
Command - A sandboxed command, mirroring the familiar
std::process::CommandAPI. - Sandbox
Output - Result of a completed sandboxed command.
Enums§
- Backend
Kind - Backend that enforces a sandboxed execution.
- Backend
Preference - Backend selection preference.
- Sandbox
Error - Errors produced while validating, building, or executing a sandbox.
- Stdio
- Standard stream mode for a sandboxed command.