server-less 0.5.0

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

#[derive(Clone)]
struct MyService;

// #[cli(nonexistent_attr = "val")] should error with "unknown argument"
#[cli(nonexistent_attr = "val")]
impl MyService {
    pub fn hello(&self) -> String {
        "hello".into()
    }
}

fn main() {}