Crate stageleft_macro
source ·Macros§
- Creates a quoted expression, which can be typechecked but has its AST serialized until it is spliced into a staged entrypoint. Returns a value which implements
Quoted<T>
, whereT
is the type of the expression, and also may implementIntoQuotedMut<T>
is the values it captures would be safe to capture inside anFnMut
context.
Attribute Macros§
- Defines an entrypoint for staged code, which will be available as a proc macro. The entrypoint must be a function that returns
impl Quoted<T>
for some typeT
. - Marks a chunk of code as being runtime-only, which means that no staged code in its crate can depend on it. Code behind this attribute is allowed to use staged entrypoints defined in the same crate.