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
14
15
16
17
18
error: Template expects exactly one group but found 15. Use #each for iteration or add filtering.
 --> tests/compile_fail/implicit_multiple_groups.rs:7:38
  |
7 |       csv_template!("../products.csv", {
  |  ______________________________________^
8 | |         pub const #CONST({name}_PRICE): f64 = #({price}_f64);
9 | |     });
  | |_____^

error[E0308]: mismatched types
 --> tests/compile_fail/implicit_multiple_groups.rs:7:5
  |
7 | /     csv_template!("../products.csv", {
8 | |         pub const #CONST({name}_PRICE): f64 = #({price}_f64);
9 | |     });
  | |______^ expected `f64`, found `&str`
  |
  = note: this error originates in the macro `csv_template` (in Nightly builds, run with -Z macro-backtrace for more info)