Rust Version compatibility
This library is compatible with Rust 1.48.0 or higher.
However, if you want to use the library with 1.41, you will need to pin a couple of our dependencies:
cargo update -p serde --precise 1.0.156
cargo update -p syn --precise 1.0.107
before building. (And if your code is a library, your downstream users will need to run these commands, and so on.)
Rust JSONRPC Client
Rudimentary support for sending JSONRPC 2.0 requests and receiving responses.
As an example, hit a local bitcoind JSON-RPC endpoint and call the uptime
command.
use Client;
use ;
// Demonstrate an example JSON-RCP call against bitcoind.
Githooks
To assist devs in catching errors before running CI we provide some githooks. If you do not already have locally configured githooks you can use the ones in this repository by running, in the root directory of the repository:
git config --local core.hooksPath githooks/
Alternatively add symlinks in your .git/hooks
directory to any of the githooks we provide.