Skip to main content

Crate sassi_macros

Crate sassi_macros 

Source
Expand description

§sassi-macros

Support proc-macro crate for Sassi: #[derive(Cacheable)] and #[sassi::trait_impl].

Ordinary adopters depend on sassi, which re-exports these macros.

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.