Skip to main content

Crate sassi_macros

Crate sassi_macros 

Source
Expand description

§sassi-macros

Proc macros for sassi: #[derive(Cacheable)] and #[sassi::trait_impl].

Macros call into sassi-codegen for the actual TokenStream emission so the codegen logic stays in a regular library crate that downstream macro crates (e.g., djogi-macros) can also consume without running into proc-macro-cycle limitations.

Attribute Macros§

trait_impl
Attribute macro for registering a trait implementation with Sassi::all_impl::<dyn Trait>().

Derive Macros§

Cacheable
Derive macro for sassi::Cacheable.