wolfram-export-macros 0.6.1

Procedural macros for #[export] and #[init]
Documentation

wolfram-export-macros

Procedural macro attributes for wolfram-export and wolfram-library-link.

This crate is typically not depended on directly — use wolfram-export or wolfram-library-link, which re-export these macros.

Attributes

Attribute Description
#[export] Native MArgument mode (default) — arguments/return marshaled via FromArg/IntoArg
#[export(margs)] Raw native mode — same C ABI as #[export], but you marshal &[MArgument]/MArgument by hand
#[export(wstp)] WSTP Link mode
#[export(wxf)] Typed WXF ByteArray mode
#[init] Run once when the library is first loaded

Paths in emitted code are resolved via proc-macro-crate so that the macro works correctly whether the caller depends on wolfram-export (new) or wolfram-library-link (legacy).

Changelog

See docs/CHANGELOG.md.