preprocessor
English | 简体中文
Compile-time computation macro library — analyzes computable sub-expressions in code and evaluates parts that can be executed at compile time.
Installation
cargo add preprocessor
cargo add chrono # Required for the test code below
Usage
#[optimize] — Function-level attribute macro
op! — Expression-level macro