#rpc-lib
This is an RPC 2.0 library for making requests to a server, it has been modified to handle some non-standard server responses such as, string error return value.
Why not strict RPC 2.0 responses
Because I am supporting some legacy Go RPC server that are slightly off spec, however, this will also support the proper RPC 2.0 spec.
Requirements
On Linux:
- OpenSSL 1.0.1, 1.0.2, or 1.1.0 with headers (see https://github.com/sfackler/rust-openssl)
On Windows and macOS:
- Nothing.
Usage
First, add this to your Cargo.toml
:
[]
= "1.0.0"
Here is a quite example to get you going:
extern crate rpc_lib;
extern crate serde;
extern crate serde_derive;
use *;
use Error;