Skip to main content

Module language_limits

Module language_limits 

Source
Expand description

Tunable resource limits for in-process scripting engines (Rhai, Boa JS).

These types live in camel-language-api (the lowest shared language contract crate) to avoid a circular dependency: camel-language-rhai / camel-language-js already depend on camel-language-api, so the limit types must be defined here rather than in camel-config (which those crates cannot depend on).

All fields are Option; None means “use the rust-camel runtime default” — never the upstream engine’s unlimited default (per ADR-0011). The resolve functions in each language crate document the concrete defaults.

Structs§

JsEngineConfig
JS (Boa) engine configuration block in Camel.toml.
JsLimitsConfig
Tunable resource limits for a single Boa JS Context instance.
LanguagesConfig
Top-level [languages] section in Camel.toml.
RhaiEngineConfig
Rhai engine configuration block in Camel.toml.
RhaiLimitsConfig
Tunable resource limits for a single Rhai Engine instance.