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
47,829 downloads per month
Used in 20 crates
(6 directly)
130KB
3.5K
SLoC
jsonrpc-ipc-server
IPC server (Windows & Linux) for JSON-RPC 2.0.
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