Skip to main content

Crate camel_component_wasm

Crate camel_component_wasm 

Source
Expand description

WebAssembly component for rust-camel — executes WASM modules as route processors via a Wasmtime runtime.

Main types: WasmComponent, WasmBundle, WasmConfig, WasmEndpoint, StateStore. Main modules: runtime, bindings, state_store, host_functions.

§Limitations

  • Only the Wasmtime runtime is supported; other WASM runtimes (Wasmer, WasmEdge, etc.) are not compatible.
  • WASM modules must export a specific interface defined by camel_wasm_bindings; arbitrary WASM binaries cannot be dropped in without meeting this contract.
  • The WASM sandbox has no access to the host filesystem or network by default; host functions are limited to what is explicitly exposed via host_functions.
  • Epoch-based fuel/interruption requires the epoch feature; long-running modules without epoch support may block the async executor.

Re-exports§

pub use authorization_policy::WasmAuthorizationPolicyEvaluator;
pub use authorization_policy::build_permission_registry;
pub use bundle::WasmBundle;
pub use config::WasmConfig;
pub use endpoint::WasmEndpoint;
pub use epoch::EpochTicker;
pub use error::TrapReason;
pub use error::WasmError;
pub use health::WasmHealthCheck;
pub use security_policy::WasmSecurityPolicy;
pub use security_policy::build_security_policy_registry;
pub use state_store::StateStore;

Modules§

authorization_policy
bean
bean_bindings
bindings
bundle
config
WASM plugin configuration for Processor URI query params and Camel.toml limits blocks used by Bean/AuthorizationPolicy/SecurityPolicy.
endpoint
epoch
Epoch-based execution timeout enforcement.
error
WASM component error types.
health
host_functions
producer
runtime
security_policy
security_policy_bindings
serde_bridge
state_store
wasm_plugin_context

Structs§

WasmComponent