Cargo Features

[dependencies]
ruvllm-wasm = { version = "2.0.0", default-features = false, features = ["webgpu", "parallel", "simd", "intelligent", "console_error_panic_hook"] }
default = console_error_panic_hook

The console_error_panic_hook feature is set by default whenever ruvllm-wasm is added without default-features = false somewhere in the dependency tree.

webgpu

WebGPU acceleration

Affects ruvllm-wasm::webgpu

parallel

Enable parallel inference with Web Workers

simd

Enable SIMD optimizations (requires wasm-simd target feature)

intelligent

Enable intelligent features (HNSW Router, MicroLoRA, SONA)

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

console_error_panic_hook default

Enables console_error_panic_hook

Error handling