#![doc(html_root_url = "https://docs.rs/test-casing-macro/0.1.3")]
#![warn(missing_debug_implementations, bare_trait_objects)]
#![warn(clippy::all, clippy::pedantic)]
#![allow(clippy::must_use_candidate, clippy::module_name_repetitions)]
extern crate proc_macro;
use proc_macro::TokenStream;
mod decorate;
mod test_casing;
use crate::{decorate::impl_decorate, test_casing::impl_test_casing};
#[proc_macro_attribute]
pub fn test_casing(attr: TokenStream, item: TokenStream) -> TokenStream {
match impl_test_casing(attr, item) {
Ok(tokens) => tokens.into(),
Err(err) => err.into_compile_error().into(),
}
}
#[proc_macro_attribute]
pub fn decorate(attr: TokenStream, item: TokenStream) -> TokenStream {
match impl_decorate(attr, item) {
Ok(tokens) => tokens.into(),
Err(err) => err.into_compile_error().into(),
}
}