rlx-macros
Procedural macros for RLX. Compile-time-only crate; nothing here ships in the runtime.
What's here
#[rlx_model]— expands a struct into a model registration block (AOT-compiled-graph integration; the AOT path is incremental — most consumers will use the JITSessionflow inrlx-runtimefirst).pipeline_schedule!— compile-time pipeline scheduler grammar (plan #11).
Install
[]
= "0.1"
Usually pulled in transitively via rlx-runtime
or rlx.
Build / test
Status
Surface intentionally narrow at 0.1.0. #[rlx_op] and #[rlx_arch]
proc macros for downstream extensibility (plan #25 / #82) are not yet
implemented.
Gotchas
- Proc macros run at compile time of the consumer crate, so error
messages can be confusing. When adding diagnostics, use
syn::Errorwith aSpannedlocation, notpanic!. - Don't pull large deps into this crate; everything here is a build-time dep of every downstream user.
License
GPL-3.0-only.