Registry / networking / jsonrpc-lite

jsonrpc-lite

JSON →
library0.7.0rscratesunverified

JSON-RPC 2.0 Specification serialization for Rust.

# Cargo.toml [dependencies] jsonrpc-lite = "0.7.0"
INSTALL
IMPORT
SIG · JSONRPC-LITE
J
jsonrpc-lite
networkingrustv0.7.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

JsonRpc
use jsonrpc_lite::JsonRpc;

Create a JSON-RPC 2.0 request and serialize it.

use jsonrpc_lite::JsonRpc; fn main() { let request = JsonRpc::request("1", "method", serde_json::json!(["param1"])); println!("{}", serde_json::to_string(&request).unwrap()); }
Debug
Known issues
gotchaRequires serde_json for serialization/deserialization
fix
Add serde_json to your dependencies
affects: >=0.7.0
Upgrade
Version history
0.7.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
3 hits · last 30 days
node
2
Amazon
1
Resources
jsonrpc-lite — cargo add jsonrpc-lite · libregistry