jsonrpc-core

Rust http server using JSON-RPC 2.0.

Example

Cargo.toml

[dependencies] jsonrpc-http-server = "0.1"

main.rs

```rust extern crate jsonrpccore; extern crate jsonrpchttp_server;

use jsonrpccore::*; use jsonrpchttp_server::*;

struct SayHello; impl MethodCommand for SayHello { fn execute(&mut self, params: Option) -> Result { Ok(Value::String("hello".tostring())) } }

fn main() { let mut io = IoHandler::new(); io.addmethod("sayhello", SayHello); let server = Server::new(io, 1); server.start("127.0.0.1:3030".to_string()); } ```