Registry / networking / jsonrpsee

jsonrpsee

JSON →
library0.26.0rscratesunverified

JSON-RPC client/server framework.

# Cargo.toml [dependencies] jsonrpsee = "0.26.0"
INSTALL
IMPORT
SIG · JSONRPSEE
J
jsonrpsee
networkingrustv0.26.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.

Server
use jsonrpsee::server::Server;

Start a JSON-RPC server.

use jsonrpsee::server::Server; #[tokio::main] async fn main() -> Result<(), Box<dyn std::error::Error>> { let server = Server::builder().build("127.0.0.1:9944").await?; let _handle = server.start(); println!("Server running"); Ok(()) }
Debug
Known issues
gotchaRequires an async runtime (tokio) and the `server` feature for server functionality.
fix
Add `tokio` as a dependency and enable the `server` feature for jsonrpsee.
affects: >=0.26.0
Upgrade
Version history
0.26.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
jsonrpsee — cargo add jsonrpsee · libregistry