#jsonrpc #ipc #server #json-rpc

susydev-jsonrpc-ipc-server

IPC server for JSON-RPC

3 stable releases

11.0.0 Apr 13, 2019
10.1.0 Apr 13, 2019
10.0.1 Mar 25, 2019

MIT license

120KB
3K SLoC

susydev-jsonrpc-ipc-server

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

Documentation

Example

Cargo.toml

[dependencies]
susydev-jsonrpc-ipc-server = "11.0"

main.rs

extern crate susydev_jsonrpc_ipc_server;

use susydev_jsonrpc_ipc_server::ServerBuilder;
use susydev_jsonrpc_ipc_server::susydev_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

~9MB
~179K SLoC