IPC server (Windows & Linux) for JSON-RPC 2.0.
Cargo.toml
[dependencies]
jsonrpc-ipc-server = { git = "https://github.com/paritytech/jsonrpc" }
main.rs
```rust extern crate jsonrpcipcserver;
use jsonrpcipcserver::Server; use jsonrpcipcserver::jsonrpc_core::*;
fn main() { let mut io = IoHandler::new(); io.addmethod("sayhello", |_params| { Ok(Value::String("hello".into())) });
let server = Server::new("/tmp/json-ipc-test.ipc", io).unwrap();
::std::thread::spawn(move || server.run());
} ```