Skip to main content

iso4217_macros/
lib.rs

1//! Procedural Macros for Generating ISO 4217 Data
2
3#![doc = include_str!("../README.md")]
4
5mod xml;
6
7use proc_macro::TokenStream;
8
9/// Generate ISO 4217 data.
10///
11/// # Panics
12///
13/// If there was an error while parsing or generating data.
14#[proc_macro]
15pub fn generate(input: TokenStream) -> TokenStream {
16    xml::try_generate(input.into())
17        .expect("Could not generate data")
18        .into()
19}