2 stable releases

10.1.0 Mar 24, 2019
10.0.1 Mar 25, 2019

#4 in #susy

MIT license

120KB
3K SLoC

susy-jsonrpc-ipc-server

IPC server (Windows & Linux) for JSON-RPC 2.0.

Documentation

Example

Cargo.toml

[dependencies]
susy-jsonrpc-ipc-server = "10.0"

main.rs

extern crate susy_jsonrpc_ipc_server;

use susy_jsonrpc_ipc_server::ServerBuilder;
use susy_jsonrpc_ipc_server::susy_jsonrpc_core::*;

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

	let builder = ServerBuilder::new(io);
	let server = builder.start("/tmp/json-ipc-test.ipc").expect("Couldn't open socket");
	server.wait();
}

lib.rs:

Cross-platform JSON-RPC IPC transport.

Dependencies

~13MB
~213K SLoC