ushell_dispatcher 0.1.0

Procedural macros for generating command and shortcut dispatchers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
extern crate proc_macro;

mod commandsgen;
mod shortcutsgen;

use commandsgen::generate_commands_dispatcher_from_file;
use proc_macro::TokenStream;
use shortcutsgen::generate_shortcuts_dispatcher_from_file;

#[proc_macro]
pub fn generate_commands_dispatcher(input: TokenStream) -> TokenStream {
    generate_commands_dispatcher_from_file(input)
}

#[proc_macro]
pub fn generate_shortcuts_dispatcher(input: TokenStream) -> TokenStream {
    generate_shortcuts_dispatcher_from_file(input)
}