3 stable releases

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

#6 in #server-builder

Download history 33/week @ 2024-03-29 3/week @ 2024-04-05 122/week @ 2024-06-07 13/week @ 2024-06-14

135 downloads per month

MIT license

120KB
3.5K 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

~12MB
~211K SLoC