0.46.0
0.45.2
- Add
#[track_caller]on allspawnwrappers. See PR 5465.
0.45.1
- Ensure
Multiaddrhandled and returned byBehaviourare/p2pterminated. See PR 4596. - Fix a bug in the
Behaviour::pollmethod causing missed mdns packets. See PR 4861.
0.45.0
- Don't perform IO in
Behaviour::poll. See PR 4623.
0.44.0
Change
mdns::Eventto holdVecand removeDiscoveredAddrsIterandExpiredAddrsIter. See PR 3621.Raise MSRV to 1.65. See PR 3715.
Remove deprecated
Mdnsprefixed items. See PR 3699.Faster peer discovery with adaptive initial interval. See PR 3975.
0.43.1
- Derive
Cloneformdns::Event. See PR 3606.
0.43.0
Update to
libp2p-corev0.39.0.Require the node's local
PeerIdto be passed into the constructor oflibp2p_mdns::Behaviour. See PR 3153.Update to
libp2p-swarmv0.42.0.Don't expire mDNS records when the last connection was closed. mDNS records will only be expired when the TTL is reached and the DNS record is no longer valid. See PR 3367.
0.42.0
Update to
libp2p-corev0.38.0.Update to
libp2p-swarmv0.41.0.Update to
if-watch3.0.0and both renameTokioMdnstoBehaviourliving intokio::Behaviour, and move and renameMdnstoasync_io::Behaviour. See PR 3096.Remove the remaning
Mdnsprefixes from types as per discussion 2174. I.e theMdnsprefix has been removed from various types likeMdnsEvent. Users should prefer importing the mdns protocol as a module (use libp2p::mdns;), and refer to its types viamdns::. For example:mdns::Behaviourormdns::Event.Replace
GenMdns'sNetworkBehaviourimplementioninject_*methods with the newon_*methods. See PR 3011.Use
trust-dns-prototo parse DNS messages. See PR 3102.Update
rust-versionto reflect the actual MSRV: 1.62.0. See PR 3090.
0.41.0
Remove default features. If you previously depended on
async-ioyou need to enable this explicitly now. See PR 2918.Update to
libp2p-corev0.37.0.Update to
libp2p-swarmv0.40.0.Fix a bug that could cause a delay of ~10s until peers would get discovered when using the tokio runtime. See PR 2939.
Removed the
lazy_staticdependency. See PR 2977.Update to
if-watchv2.0.0and thus theasyncmethodMdns::newandTokioMdns::newbecomes synchronous. See PR 2978.
0.40.0
Update to
libp2p-swarmv0.39.0.Allow users to choose between async-io and tokio runtime in the mdns protocol implementation.
async-iois a default feature, with an additionaltokiofeature (see PR 2748)Fix high CPU usage with Tokio library (see PR 2748).
Update to
libp2p-corev0.36.0.
0.39.0
Update to
libp2p-swarmv0.38.0.Update to
if-watchv1.1.1.Update to
libp2p-corev0.35.0.
0.38.0
Update to
libp2p-corev0.34.0.Update to
libp2p-swarmv0.37.0.
0.37.0
Update to
libp2p-corev0.33.0.Update to
libp2p-swarmv0.36.0.
0.36.0
- Update to
libp2p-swarmv0.35.0.
0.35.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.34.0 [2022-01-27]
Update dependencies.
Use a random alphanumeric string instead of the local peer ID for mDNS peer name (see PR 2311).
Note that previous versions of
libp2p-mdnsexpect the peer name to be a valid peer ID. Thus they will be unable to discover nodes running this new version oflibp2p-mdns.Migrate to Rust edition 2021 (see PR 2339).
Fix generation of peer expiration event and listen on specified IP version (see PR 2359).
Support multiple interfaces (see PR 2383).
0.33.0 [2021-11-16]
- Update dependencies.
0.32.0 [2021-11-01]
Make default features of
libp2p-coreoptional. PR 2181Update dependencies.
Add support for IPv6. To enable set the multicast address in
MdnsConfigtoIPV6_MDNS_MULTICAST_ADDRESS. See PR 2161 for details.Prevent timers from firing at the same time. See PR 2212 for details.
0.31.0 [2021-07-12]
- Update dependencies.
0.30.2 [2021-05-06]
- Fix discovered event emission. PR 2065
0.30.1 [2021-04-21]
- Fix timely discovery of peers after listening on a new address. PR 2053
0.30.0 [2021-04-13]
Derive
DebugandCloneforMdnsConfig.Update
libp2p-swarm.
0.29.0 [2021-03-17]
Introduce
MdnsConfigwith configurable TTL of discovered peer records and configurable multicast query interval. The default query interval is increased from 20 seconds to 5 minutes, to significantly reduce bandwidth usage. To ensure timely peer discovery in the majority of cases, a multicast query is initiated whenever a change on a network interface is detected, which includes MDNS initialisation at node startup. If necessary the MDNS query interval can be reduced via theMdnsConfig. TheMdnsServicehas been removed from the public API, making it compulsory that all uses occur through theMdnsNetworkBehaviour. AnMdnsConfigmust now be given toMdns::new(). PR 1977.Update
libp2p-swarm.
0.28.1 [2021-02-15]
- Update dependencies.
0.28.0 [2021-01-12]
- Update dependencies.
0.27.0 [2020-12-17]
- Update
libp2p-swarmandlibp2p-core.
0.26.0 [2020-12-08]
Create multiple multicast response packets as required to avoid hitting the limit of 9000 bytes per MDNS packet. PR 1877.
Detect interface changes and join the MDNS multicast group on all interfaces as they become available. PR 1830.
Replace the use of macros for abstracting over
tokioandasync-stdwith the use ofasync-io. As a result there may now be an additional reactor thread running calledasync-iowhen usingtokio, with the futures still being polled by thetokioruntime. PR 1830.
0.25.0 [2020-11-25]
- Update
libp2p-swarmandlibp2p-core.
0.24.0 [2020-11-09]
- Update dependencies.
0.23.0 [2020-10-16]
Update
libp2p-swarmandlibp2p-core.Double receive buffer to 4KiB. PR 1779.
0.22.0 [2020-09-09]
- Update
libp2p-swarmandlibp2p-core.
0.21.0 [2020-08-18]
Bump
libp2p-coreandlibp2p-swarmdependencies.Allow libp2p-mdns to use either async-std or tokio to drive required UDP socket (PR 1699).
0.20.0 [2020-07-01]
- Updated dependencies.
0.19.2 [2020-06-22]
- Updated dependencies.