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.
usecsv_codegen::csv_template;fnmain(){// This should fail with a syntax error inside the template
// and the error should point to the template braces, not the entire macro
csv_template!("../fruits.csv",#find(name =="Orange"){constCITRUS_ID:u32=#({id}_u32);// This next line has a syntax error (missing semicolon)
let bad_syntax:u32=#({id}_u32)+1println!("This is wrong too");});}