RPC between Server/Client written in Rust
RRPC (Rust Remote Procedure Call) is pronounced as ripsy, thus the name of this crate.
client/main.rs ```rust use shared::add;
async fn main() {
ripsy::client::init("http://localhost:3000");
let r: Result
server/main.rs ```rust use axum::routing::post; use ripsy::Bincode; use shared::add;
async fn main() { let app = ripsy::ripsy!(add,);
axum::Server::bind(&"0.0.0.0:3000".parse().unwrap())
.serve(app.into_make_service())
.await
.unwrap();
} ```
shared/lib.rs ```rust use ripsy::endpoint;
pub async fn add(n: u32) -> Result
fn work() -> Result<(), String> { Err("err".to_string()) } ```