server-less 0.6.0

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

struct MyApp;

#[cli]
impl MyApp {
    #[cli(default)]
    fn greet(&self) {
        println!("hello");
    }

    #[cli(default)]
    fn farewell(&self) {
        println!("goodbye");
    }
}

fn main() {}