3 stable releases
11.0.0 | Apr 13, 2019 |
---|---|
10.1.0 | Apr 13, 2019 |
10.0.1 | Mar 25, 2019 |
#6 in #server-builder
135 downloads per month
120KB
3.5K
SLoC
susydev-jsonrpc-ipc-server
IPC server (Windows & Linux) for JSON-RPC 2.0.
Example
Cargo.toml
[dependencies]
susydev-jsonrpc-ipc-server = "11.0"
main.rs
extern crate susydev_jsonrpc_ipc_server;
use susydev_jsonrpc_ipc_server::ServerBuilder;
use susydev_jsonrpc_ipc_server::susydev_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
~211K SLoC