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

#10 in #json-rpc-server

Download history 11535/week @ 2024-06-11 8859/week @ 2024-06-18 8976/week @ 2024-06-25 7267/week @ 2024-07-02 8695/week @ 2024-07-09 10223/week @ 2024-07-16 11690/week @ 2024-07-23 10120/week @ 2024-07-30 10954/week @ 2024-08-06 10674/week @ 2024-08-13 9977/week @ 2024-08-20 9884/week @ 2024-08-27 10703/week @ 2024-09-03 8467/week @ 2024-09-10 4129/week @ 2024-09-17 9825/week @ 2024-09-24

33,810 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–20MB
~257K SLoC