0.27.0
0.26.4
- Use
web-timeinstead ofinstant. See PR 5347.
0.26.3
Report failure when streams are at capacity. See PR 5417.
Report dial IO errors to the user. See PR 5429.
0.26.2
- Deprecate
Behaviour::add_addressin favor ofSwarm::add_peer_address. See PR 4371.
0.26.1
- Derive
PartialOrdandOrdfor{Out,In}boundRequestId. See PR 4956.
0.26.0
- Remove
request_response::Config::set_connection_keep_alivein favor ofSwarmBuilder::idle_connection_timeout. See PR 4679. - Allow at most 100 concurrent inbound + outbound streams per instance of
request_response::Behaviour. This limit is configurable viaConfig::with_max_concurrent_streams. See PR 3914. - Report IO failures on inbound and outbound streams. See PR 3914.
- Introduce dedicated types for
InboundRequestIdandOutboundRequestId. See PR 3914. - Keep peer addresses in
HashSetinstead ofSmallVecto prevent adding duplicate addresses. See PR 4700.
0.25.2
- Deprecate
request_response::Config::set_connection_keep_alivein favor ofSwarmBuilder::idle_connection_timeout. See PR 4029.
0.25.1
- Replace unmaintained
serde_cbordependency withcbor4ii. See PR 4187.
0.25.0
Add
request_response::json::Behaviourandrequest_response::cbor::Behaviourbuilding on top of theserdetraits. To conveniently construct these, we remove theCodecparameter fromBehaviour::newand addBehaviour::with_codec. See PR 3952.Raise MSRV to 1.65. See PR 3715.
Remove deprecated
RequestResponseprefixed items. See PR 3702.Remove
InboundFailure::UnsupportedProtocolsandInboundFailure::InboundTimeout. These variants are no longer constructed. See PR 3605.Don't close connections if individual streams fail. Log the error instead. See PR 3913.
0.24.1
- Deprecate
handler,codecmodules to make them private. See PR 3847.
0.24.0
Update to
libp2p-corev0.39.0.Rename types as per discussion 2174.
RequestResponsehas been renamed toBehaviour. TheRequestResponseprefix has been removed from various types likeRequestResponseEvent. Users should prefer importing the request_response protocol as a module (use libp2p::request_response;), and refer to its types viarequest_response::. For example:request_response::Behaviourorrequest_response::Event. See PR 3159.Update to
libp2p-swarmv0.42.0.
0.23.0
Update to
libp2p-corev0.38.0.Update to
libp2p-swarmv0.41.0.Replace
RequestResponse'sNetworkBehaviourimplementioninject_*methods with the newon_*methods. See PR 3011.Replace
RequestResponseHandler'sConnectionHandlerimplementioninject_*methods with the newon_*methods. See PR 3085.Update
rust-versionto reflect the actual MSRV: 1.62.0. See PR 3090.
0.22.0
Bump rand to 0.8 and quickcheck to 1. See PR 2857.
Update to
libp2p-corev0.37.0.Update to
libp2p-swarmv0.40.0.
0.21.0
Update to
libp2p-swarmv0.39.0.Update to
libp2p-corev0.36.0.
0.20.0
Update to
libp2p-swarmv0.38.0.Update to
libp2p-corev0.35.0.
0.19.0
Update to
libp2p-corev0.34.0.Update to
libp2p-swarmv0.37.0.
0.18.0
Update to
libp2p-corev0.33.0.Update to
libp2p-swarmv0.36.0.
0.17.0
- Update to
libp2p-swarmv0.35.0.
0.16.0 [2022-02-22]
Update to
libp2p-corev0.32.0.Update to
libp2p-swarmv0.34.0.Merge NetworkBehaviour's inject_* paired methods (see PR 2445).
0.15.0 [2022-01-27]
Update dependencies.
Remove unused
lrucrate (see PR 2358).Migrate to Rust edition 2021 (see PR 2339).
0.14.0 [2021-11-16]
Use
instantinstead ofwasm-timer(see PR 2245).Update dependencies.
0.13.0 [2021-11-01]
Make default features of
libp2p-coreoptional. PR 2181Update dependencies.
Manually implement
DebugforRequestResponseHandlerEventandRequestProtocol. See PR 2183.Remove
RequestResponse::throttledand thethrottledmodule. See PR 2236.
0.12.0 [2021-07-12]
- Update dependencies.
0.11.0 [2021-04-13]
- Update
libp2p-swarm. - Implement
std::error::ErrorforInboundFailureandOutboundFailurePR 2033.
0.10.0 [2021-03-17]
Update
libp2p-swarm.Close stream even when no response has been sent. PR 1987.
Update dependencies.
0.9.1 [2021-02-15]
Make
is_pending_outboundreturn true on pending connection. PR 1928.Update dependencies.
0.9.0 [2021-01-12]
Update dependencies.
Re-export
throttled-specific response channel. PR 1902.
0.8.0 [2020-12-17]
Update
libp2p-swarmandlibp2p-core.Emit
InboundFailure::ConnectionClosedfor inbound requests that failed due to the underlying connection closing. PR 1886.Derive Clone for
InboundFailureandOutbound}Failure. PR 1891
0.7.0 [2020-12-08]
- Refine emitted events for inbound requests, introducing
the
ResponseSentevent and theResponseOmissioninbound failures. This effectively removes previous support for one-way protocols without responses. PR 1867.
0.6.0 [2020-11-25]
- Update
libp2p-swarmandlibp2p-core.
0.5.0 [2020-11-09]
- Update dependencies.
0.4.0 [2020-10-16]
- Update dependencies.
0.3.0 [2020-09-09]
Add support for opt-in request-based flow-control to any request-response protocol via
RequestResponse::throttled(). PR 1726.Update
libp2p-swarmandlibp2p-core.
0.2.0 [2020-08-18]
- Fixed connection keep-alive, permitting connections to close due to inactivity.
- Bump
libp2p-coreandlibp2p-swarmdependencies.
0.1.1
- Always properly
close()the substream after sending requests and responses in theInboundUpgradeandOutboundUpgrade. Otherwise this is left toRequestResponseCodec::write_requestandRequestResponseCodec::write_response, which can be a pitfall and lead to subtle problems (see e.g. https://github.com/libp2p/rust-libp2p/pull/1606).
0.1.0
- Initial release.