Skip to main content

Crate sim_lib_exec

Crate sim_lib_exec 

Source
Expand description

Capability-gated bounded host-process execution for the SIM runtime.

This crate supplies a general host exec operation for libraries that need to run an external process under explicit authority. The operation accepts a structured argv vector, never inserts a shell, captures stdout and stderr, enforces a mandatory timeout, and truncates captured output at a caller-set byte cap. It is a host operation, not SIM evaluation.

Structs§

ExecOptions
Bounded process execution options.
ProcResult
Result of a bounded process run.

Statics§

RECIPES
Cookbook recipes for this lib, embedded at build time.

Functions§

exec
Runs one host process with explicit argv and bounded output.
exec_capability
Returns the capability required by exec.
proc_result_symbol
Returns the constructor symbol used by ProcResult::to_constructor_expr.