Skip to main content

bundled

Function bundled 

Source
pub fn bundled() -> &'static EngineApi
Available on crate feature bundled-api and non-WebAssembly only.
Expand description

The bundled engine-API model, decoded once on first use.

Native-only and gated on the default bundled-api feature: the blob is embedded via include_bytes!. On wasm32 the blob is not embedded — fetch it and use EngineApi::from_bytes instead (Playbook §4.5).

§Panics

Panics if the embedded blob fails to decode, which can only happen if engine_api.bin was hand-edited or truncated — cargo xtask codegen-api always emits a valid, self-validated artifact.