28 stable releases (10 major)

18.0.0 Jul 20, 2021
17.1.0 Jun 7, 2021
17.0.1 Feb 1, 2021
16.0.0 Dec 14, 2020
6.0.0 Feb 16, 2017

#1737 in Network programming

Download history 11706/week @ 2024-08-22 9369/week @ 2024-08-29 9857/week @ 2024-09-05 6770/week @ 2024-09-12 6394/week @ 2024-09-19 8441/week @ 2024-09-26 8553/week @ 2024-10-03 9862/week @ 2024-10-10 10986/week @ 2024-10-17 12435/week @ 2024-10-24 10521/week @ 2024-10-31 10580/week @ 2024-11-07 12280/week @ 2024-11-14 11109/week @ 2024-11-21 11026/week @ 2024-11-28 11883/week @ 2024-12-05

48,190 downloads per month
Used in 20 crates (6 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

~9–19MB
~257K SLoC