#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 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 8/week @ 2025-01-01 9/week @ 2025-01-08 13/week @ 2025-01-15 15/week @ 2025-01-22 6/week @ 2025-01-29 32/week @ 2025-02-05 57/week @ 2025-02-12 9/week @ 2025-02-19 22/week @ 2025-02-26

121 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
~222K SLoC