rpc-api 0.1.0

A typed rpc library to be used by wasm and other targets
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pub mod rpc;

pub fn rpc_api_add(left: usize, right: usize) -> usize {
    left + right
}

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn it_works() {
        let result = rpc_api_add(2, 2);
        assert_eq!(result, 4);
    }
}