#json-rpc #ipc #tetsy #server #server-builder #linux

tetsy-jsonrpc-ipc-server

Tetsy IPC server for JSON-RPC

Show the crate…

3 stable releases

15.1.0 Mar 13, 2021
14.2.1 Mar 1, 2021

#15 in #server-builder

Download history 39/week @ 2024-03-14 45/week @ 2024-03-21 91/week @ 2024-03-28 52/week @ 2024-04-04 35/week @ 2024-04-11 35/week @ 2024-04-18 35/week @ 2024-04-25 28/week @ 2024-05-02 29/week @ 2024-05-09 34/week @ 2024-05-16 29/week @ 2024-05-23 44/week @ 2024-05-30 27/week @ 2024-06-06 28/week @ 2024-06-13 33/week @ 2024-06-20 19/week @ 2024-06-27

114 downloads per month
Used in 26 crates (3 directly)

MIT license

130KB
3.5K SLoC

tetsy-jsonrpc-ipc-server

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

Documentation

Example

Cargo.toml

[dependencies]
tetsy-jsonrpc-ipc-server = "14.2"

main.rs

extern crate tetsy_jsonrpc_ipc_server;

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

~12MB
~213K SLoC