bao_bundler 0.1.0

SpiderMonkey CYCLEBREAK bridge for bun_bundler — provides SM-backed link-time symbols and dispatch interfaces
docs.rs failed to build bao_bundler-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.

SpiderMonkey CYCLEBREAK bridge for bun_bundler.

bun_bundler is a pure-Rust bundler that uses CYCLEBREAK architecture: it declares unsafe extern "Rust" symbols and link_interface! dispatch vtables, but never names JSC types. The actual implementations are provided by the engine layer (traditionally bun_jsc / bun_runtime).

This crate provides SpiderMonkey-backed implementations of those CYCLEBREAK symbols and dispatch interfaces, replacing the JSC versions. The bundler logic itself is 100% reused from bun_bundler.

CYCLEBREAK symbols provided

Symbol JSC implementation SM implementation
__bun_jsc_generate_cached_bytecode JSC bytecode cache SM XDR encode (Phase 2)
__bun_jsc_enable_hot_module_reloading_for_bundler JSC HMR watcher bun_watcher + SM reload

Dispatch interfaces provided

Interface Variant Backing type
VmLoaderCtx Runtime BaoVmLoaderCtx
DevServerHandle Bake no-op (Phase 2: Bao bake)