arctk-attr 0.3.1

Attribute macro support library for the ARCTK crate.
Documentation
//! Implementation function of the output attribute macro.

use proc_macro::TokenStream;

/// Create the attribute macro output.
#[inline]
#[must_use]
pub fn implementation(_metadata: &TokenStream, input: TokenStream) -> TokenStream {
    let input: proc_macro2::TokenStream = input.into();
    let output = quote::quote! {
        #[derive(Debug, serde::Serialize, arctk_proc::Output)]
        #input
    };
    output.into()
}