Crate jsonrpc_stdio_server[−][src]
Expand description
jsonrpc server using stdin/stdout
use jsonrpc_stdio_server::ServerBuilder; use jsonrpc_stdio_server::jsonrpc_core::*; #[tokio::main] async fn main() { let mut io = IoHandler::default(); io.add_sync_method("say_hello", |_params| { Ok(Value::String("hello".to_owned())) }); let server = ServerBuilder::new(io).build(); server.await; }
Re-exports
pub use jsonrpc_core;
pub use tokio;
Structs
Stdio server builder