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

#766 in Network programming

Download history 8530/week @ 2024-03-14 10437/week @ 2024-03-21 10019/week @ 2024-03-28 11499/week @ 2024-04-04 12185/week @ 2024-04-11 13220/week @ 2024-04-18 12013/week @ 2024-04-25 11095/week @ 2024-05-02 12286/week @ 2024-05-09 9413/week @ 2024-05-16 8692/week @ 2024-05-23 10068/week @ 2024-05-30 10960/week @ 2024-06-06 10936/week @ 2024-06-13 8377/week @ 2024-06-20 8184/week @ 2024-06-27

40,555 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–22MB
~264K SLoC