26 stable releases (9 major)

17.0.1 Feb 1, 2021
16.0.0 Dec 14, 2020
15.1.0 Sep 30, 2020
14.2.0 Jun 3, 2020
6.0.0 Feb 16, 2017
Download history 11321/week @ 2021-01-15 11392/week @ 2021-01-22 11164/week @ 2021-01-29 10587/week @ 2021-02-05 11231/week @ 2021-02-12 12947/week @ 2021-02-19 12702/week @ 2021-02-26 11626/week @ 2021-03-05 14664/week @ 2021-03-12 12853/week @ 2021-03-19 13171/week @ 2021-03-26 11739/week @ 2021-04-02 11256/week @ 2021-04-09 10925/week @ 2021-04-16 11307/week @ 2021-04-23 11380/week @ 2021-04-30

44,734 downloads per month
Used in 20 crates (4 directly)

MIT license

130KB
3.5K SLoC

jsonrpc-ipc-server

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

Documentation

Example

Cargo.toml

[dependencies]
jsonrpc-ipc-server = "15.0"

main.rs

extern crate jsonrpc_ipc_server;

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

~8.5MB
~172K SLoC