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

#1 in #server-builder

Download history 10564/week @ 2024-07-27 10958/week @ 2024-08-03 10592/week @ 2024-08-10 9961/week @ 2024-08-17 11524/week @ 2024-08-24 8791/week @ 2024-08-31 9437/week @ 2024-09-07 4928/week @ 2024-09-14 8478/week @ 2024-09-21 8310/week @ 2024-09-28 7818/week @ 2024-10-05 11212/week @ 2024-10-12 11171/week @ 2024-10-19 11537/week @ 2024-10-26 12512/week @ 2024-11-02 10991/week @ 2024-11-09

47,829 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