Pirates!
Rust ArrrrPC Lib
Pirates, a simple and straightforward interface for serving and calling RPCs from async rust programs
Define an RPC
Serve it
let mut server = new;
server.add_rpc;
Call it
let addr = "200.1.3.7:5959";
let name = Stringfrom;
call_client.await;
let names = call_client.await;
assert_eq!;
Documentation
Documentation available on docs.rs
Examples
And example "name server" is available in example/.
This produces a CLI binary from which you can host the server and then query it
separately to add and print names. See the README in that directory for more info
TODO
- More examples?
License
Apache-2.0 Or MIT