dosio_macros/
lib.rs

1//! A macro to build the dos inputs and outputs enum variants
2//!
3//! For the FEM, the macro get the variant identifiers from the field names of the structures `fem_inputs` and `fem_outputs` in the file `modal_state_space_model_2ndOrder.rs.mat`.
4//! The location of the file is given by the environment variable `FEM_REPO`
5
6use proc_macro::TokenStream;
7
8mod io;
9
10#[cfg(feature = "hdf5")]
11mod hdf5_io;
12#[cfg(feature = "hdf5")]
13use hdf5_io::ad_hoc_macro;
14
15#[cfg(feature = "prqt")]
16mod parquet_io;
17#[cfg(feature = "prqt")]
18use parquet_io::ad_hoc_macro;
19
20/// Ad-hoc `dosio` crate builder
21#[proc_macro]
22pub fn ad_hoc(_item: TokenStream) -> TokenStream {
23    ad_hoc_macro(_item)
24}