yerpc 0.6.4

Ergonomic JSON-RPC library for async Rust with Axum support
Documentation
1
2
3
4
5
6
7
8
use std::env;
use std::path::PathBuf;
use yerpc::{typescript::export_types_to_file, Message};

fn main() {
    let outpath: PathBuf = env::args().nth(1).expect("Outpath is required").into();
    export_types_to_file::<Message>(&outpath, None).expect("Failed to write TS out");
}