Registry / networking / libp2p-request-response

libp2p-request-response

JSON →
library0.29.0rscratesunverified

Generic request/response protocol for libp2p networks.

# Cargo.toml [dependencies] libp2p-request-response = "0.29.0"
INSTALL
IMPORT
SIG · LIBP2P-REQUEST-RES
L
libp2p-request-response
networkingrustv0.29.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.

RequestResponse
use libp2p_request_response::RequestResponse;

Create a new request-response behaviour.

use libp2p_request_response::RequestResponse; fn main() { let behaviour = RequestResponse::new( libp2p::core::ProtocolSupport::Full, std::iter::empty(), ); println!("Behaviour created"); }
Debug
Known issues
gotchaRequires an async runtime (e.g., Tokio) to function.
fix
Add tokio as a dependency and use #[tokio::main] or similar.
affects: >=0.1.0
Upgrade
Version history
0.29.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources