cgp_field_macro_lib/
lib.rs

1#![no_std]
2
3/*!
4   This is an internal crate used by the `cgp-field-macro` crate. We implement the
5   proc macros for `cgp-field` as a library, so that it can be more easily tested.
6   The constructs are then re-exported as proc macros in the `cgp-field-macro` crate,
7   which is defined as a proc macro crate.
8*/
9
10extern crate alloc;
11
12pub mod field;
13pub mod product;
14pub mod symbol;
15
16#[cfg(test)]
17mod tests;
18
19pub use field::derive_fields;
20pub use product::{make_product_expr, make_product_type, make_sum_type};
21pub use symbol::make_symbol;