csv-codegen 0.2.3

A Rust procedural macro that transforms CSV data into safe, zero-cost code. Generate match arms, loops, and nested queries directly from CSV files, ensuring type safety and deterministic code generation.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use csv_codegen::csv_template;

fn main() {
    // This should fail because #having cannot be used with #else
    csv_template!("../departments.csv", 
        #having(union_rep == true) {
            const TEST: u32 = 1;
        }
        #else {
            const TEST: u32 = 0;
        }
    );
}