Native Fusion Builds
Native Fusion — Rust Interop Reference
How It Works
Macros
use matchbox_vm::{matchbox_fn, matchbox_class, matchbox_methods};#[matchbox_fn] — Expose a Rust function as a BoxLang BIF
#[matchbox_fn] — Expose a Rust function as a BoxLang BIFRust parameter type
VM conversion applied by the macro
#[matchbox_class] — Expose a Rust struct as a BoxLang native object
#[matchbox_class] — Expose a Rust struct as a BoxLang native object#[matchbox_methods] — Generate a method dispatcher for a native class
#[matchbox_methods] — Generate a method dispatcher for a native class#[matchbox_module] — Module marker (no-op)
#[matchbox_module] — Module marker (no-op)Registration Entry Points
register_bifs() — standalone functions
register_bifs() — standalone functionsregister_classes() — native object constructors
register_classes() — native object constructorsManual BIF Signature
Project Layout
Using External Rust Crates
Limitations
Feature
Status
Last updated
Was this helpful?
