2 unstable releases

Uses old Rust 2015

0.3.0 Dec 27, 2016
0.2.0 Nov 23, 2016

#168 in #json-rpc

29 downloads per month
Used in rust_lsp

Apache-2.0

74KB
1.5K SLoC

RustDT JSON-RPC

A JSON-RPC library for Rust.

Originally created because I wanted to developed a "real-world" project to effectively learn Rust (especially with code related to concurrency/multi-threading). Also, at the time, jsonrpc-core didn't support asynchronous method handling.

As compared to jsonrpc-core

  • Supports both client and server directions (The same endpoint can be used for both). jsonrpc-core only server handling, currently.
  • Does't support batch requests, jsonrpc-core does.
  • Some minor implementations details: TODO describe more?
    • id support? Must be a JSON String, Null, or Number fitting into a unsigned 64 bits integer.

Usage:

See full server/client example here:

Projects using rustdt_json_rpc:


lib.rs:

JSON-RPC library.

Examples:

See full server/client example here: https://github.com/RustDT/rustdt-json_rpc/blob/master/tests/example.rs

Dependencies

~1.5MB
~32K SLoC