Skip to main content

auto_models

Macro auto_models 

Source
auto_models!() { /* proc-macro */ }
Expand description

Auto-discover and include all models from src/models/*.rs

This macro scans the models directory at build time and generates the necessary module declarations and model registration code.

§Usage

ⓘ
use rustf::prelude::*;

let register_fn = auto_models!();
let app = RustF::new().models(register_fn);