#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

#14 in #server-builder

Download history 23/week @ 2024-09-11 31/week @ 2024-09-18 47/week @ 2024-09-25 35/week @ 2024-10-02 3/week @ 2024-10-09 7/week @ 2024-10-16 11/week @ 2024-10-23 8/week @ 2024-10-30 5/week @ 2024-11-06 10/week @ 2024-11-13 13/week @ 2024-11-20 23/week @ 2024-11-27 30/week @ 2024-12-04 46/week @ 2024-12-11 16/week @ 2024-12-18 3/week @ 2024-12-25

98 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

~13MB
~223K SLoC