Crate tetsy_jsonrpc_stdio_server

Source
Expand description

jsonrpc server using stdin/stdout


use tetsy_jsonrpc_stdio_server::ServerBuilder;
use tetsy_jsonrpc_stdio_server::tetsy_jsonrpc_core::*;

fn main() {
	let mut io = IoHandler::default();
	io.add_method("say_hello", |_params| {
		Ok(Value::String("hello".to_owned()))
	});

	ServerBuilder::new(io).build();
}

Re-exports§

Structs§