Skip to main content

Module limits

Module limits 

Source
Expand description

Hand-built sandbox bounds for the tree-walking evaluator.

This interpreter is native Rust, not Wasm: there is no fuel meter, no linear-memory ceiling, and no engine-level deadline to fall back on. Every bound a script can exhaust is owned here and enforced from the evaluator.

Structs§

Budget
Mutable per-execution counters for one script run.
Limits
Configurable execution bounds.
OutputBuffer
Bounded combined stdout/stderr accumulator.

Enums§

LimitExceeded
A limit a running script exhausted.

Constants§

DEFAULT_ALLOW_CLOCK
Whether a script may read the host wall clock by default. It may not.
DEFAULT_MAX_CAPABILITY_CALLS
Default number of capability invocations one script may drive.
DEFAULT_MAX_OUTPUT_BYTES
Default accumulated output ceiling in bytes.
DEFAULT_MAX_OUTPUT_LINES
Default accumulated output ceiling in lines.
DEFAULT_MAX_RECURSION_DEPTH
Default shell-function call-stack depth.
DEFAULT_MAX_STEPS
Default statement/loop/call budget for one script.
DEFAULT_MAX_VALUE_BYTES
Default ceiling on the value bytes one script may materialize.
DEFAULT_TIMEOUT
Default wall-clock deadline for one script.