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
use server_less::cli;

#[derive(Clone)]
struct MyService;

// #[param(nonexistent_param_attr)] on a function parameter should error with "unknown attribute".
#[cli]
impl MyService {
    pub fn hello(&self, #[param(nonexistent_param_attr)] name: String) -> String {
        format!("hello {name}")
    }
}

fn main() {}