Expand description
Procedural macros for libperl-rs.
#[thx]— function attribute that splicesmy_perl: *mut PerlInterpreteras the first parameter in threaded builds and is a no-op in non-threaded builds. Lets a single Rust source compile against bothMULTIPLICITYmodes without manualcfgbranches.#[xs_sub]— function attribute that turns a high-level Rust signature likefn is_even(n: IV) -> bool { ... }into a complete XS-callableextern "C"trampoline. (Phase 3.2 — TBD.)xs_boot!— declarative macro that emits the module’sboot_<name>entry. (Phase 3.3 — TBD.)
Threading mode is selected at proc-macro compile time via
cfg(perl_useithreads), set by build.rs.
Macros§
- xs_boot
xs_boot!— seexs_bootmodule documentation.