clappen 0.1.3

Clap flatten prefix macro
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pub(crate) mod attrs;
pub(crate) mod item_struct;

// Constant
const FIELD_ATTR_CLAPPEN_COMMAND: &str = "clappen_command";
const FIELD_ATTR_CLAPPEN_COMMAND_APPLY: &str = "apply";

const FIELD_ATTR_CLAP_FLATTEN_COMMAND: &str = "command";
const FIELD_ATTR_CLAP_FLATTEN_COMMAND_FLATTEN: &str = "flatten";

/// Process an Item (a struct, enum, etc) and return a TokenStream
pub(crate) trait ProcessItem {
    fn process(
        &mut self,
        default_prefix: String,
        prefix: String,
    ) -> syn::Result<proc_macro2::TokenStream>;
}