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]
async fn async_add_without_args() -> u32 {
    5 + 5
}

#[test]
fn async_without_args() {
    async_std::task::block_on(async { assert_eq!(async_add_without_args_thunk().await, 10) });
}