rust-jsonrpc Target
rust-jsonrpc generates Rust JSON-RPC server/client bindings from IDL.
Minimal Command
Section titled “Minimal Command”xidlc gen --out-dir out rust-jsonrpc your.idlAfter generating, implement the resulting trait and expose the service through xidl_jsonrpc::Server.
Examples in the Repository
Section titled “Examples in the Repository”Server:
cargo run -p xidlc-examples --example jsonrpc_hello_world_serverClient:
cargo run -p xidlc-examples --example jsonrpc_hello_world_client -- --name WorldRuntime Integration
Section titled “Runtime Integration”The generated code is designed to be used with the xidl-jsonrpc runtime by default.