kittycad_modeling_cmds_macros_impl/
modeling_cmd_output.rs

1use proc_macro2::TokenStream;
2use quote::quote_spanned;
3use syn::{spanned::Spanned, DeriveInput};
4
5pub fn derive(input: DeriveInput) -> TokenStream {
6    // Where in the input source code is this type defined?
7    let span = input.span();
8    // Name of type that is deriving the trait.
9    let name = input.ident;
10    quote_spanned! {span=>
11        impl kittycad_modeling_cmds::traits::ModelingCmdOutput for #name {}
12    }
13}