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
use csv_codegen::csv_template;

fn main() {
    // This should fail because products.csv has multiple products (groups)
    // but implicit {} syntax expects exactly one group
    // trybuild builds 4 dirs deep inside target/
    csv_template!("../products.csv", {
        pub const #CONST({name}_PRICE): f64 = #({price}_f64);
    });
}