server-function 0.1.3

A macro for easy RPC creation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use serde::{Deserialize, Serialize};
use server_function::server_function;

#[server_function]
fn add_without_args() -> u32 {
    5 + 5
}

#[test]
fn without_args() {
    assert_eq!(add_without_args_thunk(), 10)
}