server-less 0.6.0

Composable derive macros for common Rust patterns
Documentation
1
2
3
4
5
6
7
8
9
10
use server_less::cli;

// #[cli] applied to a function (not an impl block) should produce a meaningful error.
// The macro calls `parse_macro_input!(item as ItemImpl)` so this should fail to parse.
#[cli]
fn my_function() -> String {
    "hello".into()
}

fn main() {}