File size: 8,733 Bytes
f0f4f2b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 | ## 0.46.0
<!-- Update to libp2p-swarm v0.45.0 -->
## 0.45.2
- Add `#[track_caller]` on all `spawn` wrappers.
See [PR 5465](https://github.com/libp2p/rust-libp2p/pull/5465).
## 0.45.1
- Ensure `Multiaddr` handled and returned by `Behaviour` are `/p2p` terminated.
See [PR 4596](https://github.com/libp2p/rust-libp2p/pull/4596).
- Fix a bug in the `Behaviour::poll` method causing missed mdns packets.
See [PR 4861](https://github.com/libp2p/rust-libp2p/pull/4861).
## 0.45.0
- Don't perform IO in `Behaviour::poll`.
See [PR 4623](https://github.com/libp2p/rust-libp2p/pull/4623).
## 0.44.0
- Change `mdns::Event` to hold `Vec` and remove `DiscoveredAddrsIter` and `ExpiredAddrsIter`.
See [PR 3621].
- Raise MSRV to 1.65.
See [PR 3715].
- Remove deprecated `Mdns` prefixed items. See [PR 3699].
- Faster peer discovery with adaptive initial interval. See [PR 3975].
[PR 3975]: https://github.com/libp2p/rust-libp2p/pull/3975
[PR 3621]: https://github.com/libp2p/rust-libp2p/pull/3621
[PR 3715]: https://github.com/libp2p/rust-libp2p/pull/3715
[PR 3699]: https://github.com/libp2p/rust-libp2p/pull/3699
## 0.43.1
- Derive `Clone` for `mdns::Event`. See [PR 3606].
[PR 3606]: https://github.com/libp2p/rust-libp2p/pull/3606
## 0.43.0
- Update to `libp2p-core` `v0.39.0`.
- Require the node's local `PeerId` to be passed into the constructor of `libp2p_mdns::Behaviour`. See [PR 3153].
- Update to `libp2p-swarm` `v0.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].
[PR 3153]: https://github.com/libp2p/rust-libp2p/pull/3153
[PR 3367]: https://github.com/libp2p/rust-libp2p/pull/3367
## 0.42.0
- Update to `libp2p-core` `v0.38.0`.
- Update to `libp2p-swarm` `v0.41.0`.
- Update to `if-watch` `3.0.0` and both rename `TokioMdns` to `Behaviour` living in `tokio::Behaviour`,
and move and rename `Mdns` to `async_io::Behaviour`. See [PR 3096].
- Remove the remaning `Mdns` prefixes from types as per [discussion 2174].
I.e the `Mdns` prefix has been removed from various types like `MdnsEvent`.
Users should prefer importing the mdns protocol as a module (`use libp2p::mdns;`),
and refer to its types via `mdns::`. For example: `mdns::Behaviour` or `mdns::Event`.
- Replace `GenMdns`'s `NetworkBehaviour` implemention `inject_*` methods with the new `on_*` methods.
See [PR 3011].
- Use `trust-dns-proto` to parse DNS messages. See [PR 3102].
- Update `rust-version` to reflect the actual MSRV: 1.62.0. See [PR 3090].
[discussion 2174]: https://github.com/libp2p/rust-libp2p/discussions/2174
[PR 3096]: https://github.com/libp2p/rust-libp2p/pull/3096
[PR 3011]: https://github.com/libp2p/rust-libp2p/pull/3011
[PR 3102]: https://github.com/libp2p/rust-libp2p/pull/3102
[PR 3090]: https://github.com/libp2p/rust-libp2p/pull/3090
## 0.41.0
- Remove default features. If you previously depended on `async-io` you need to enable this explicitly now. See [PR 2918].
- Update to `libp2p-core` `v0.37.0`.
- Update to `libp2p-swarm` `v0.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_static` dependency. See [PR 2977].
- Update to `if-watch` `v2.0.0` and thus the `async` method `Mdns::new` and `TokioMdns::new` becomes synchronous. See [PR 2978].
[PR 2918]: https://github.com/libp2p/rust-libp2p/pull/2918
[PR 2939]: https://github.com/libp2p/rust-libp2p/pull/2939
[PR 2977]: https://github.com/libp2p/rust-libp2p/pull/2977
[PR 2978]: https://github.com/libp2p/rust-libp2p/pull/2978
## 0.40.0
- Update to `libp2p-swarm` `v0.39.0`.
- Allow users to choose between async-io and tokio runtime
in the mdns protocol implementation. `async-io` is a default
feature, with an additional `tokio` feature (see [PR 2748])
- Fix high CPU usage with Tokio library (see [PR 2748]).
- Update to `libp2p-core` `v0.36.0`.
[PR 2748]: https://github.com/libp2p/rust-libp2p/pull/2748
## 0.39.0
- Update to `libp2p-swarm` `v0.38.0`.
- Update to `if-watch` `v1.1.1`.
- Update to `libp2p-core` `v0.35.0`.
## 0.38.0
- Update to `libp2p-core` `v0.34.0`.
- Update to `libp2p-swarm` `v0.37.0`.
## 0.37.0
- Update to `libp2p-core` `v0.33.0`.
- Update to `libp2p-swarm` `v0.36.0`.
## 0.36.0
- Update to `libp2p-swarm` `v0.35.0`.
## 0.35.0 [2022-02-22]
- Update to `libp2p-core` `v0.32.0`.
- Update to `libp2p-swarm` `v0.34.0`.
- Merge NetworkBehaviour's inject_\* paired methods (see PR 2445).
[PR 2445]: https://github.com/libp2p/rust-libp2p/pull/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-mdns` expect the peer name to be a
valid peer ID. Thus they will be unable to discover nodes running this new
version of `libp2p-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]).
[PR 2339]: https://github.com/libp2p/rust-libp2p/pull/2339
[PR 2311]: https://github.com/libp2p/rust-libp2p/pull/2311/
[PR 2359]: https://github.com/libp2p/rust-libp2p/pull/2359
[PR 2383]: https://github.com/libp2p/rust-libp2p/pull/2383
## 0.33.0 [2021-11-16]
- Update dependencies.
## 0.32.0 [2021-11-01]
- Make default features of `libp2p-core` optional.
[PR 2181](https://github.com/libp2p/rust-libp2p/pull/2181)
- Update dependencies.
- Add support for IPv6. To enable set the multicast address
in `MdnsConfig` to `IPV6_MDNS_MULTICAST_ADDRESS`.
See [PR 2161] for details.
- Prevent timers from firing at the same time. See [PR 2212] for details.
[PR 2161]: https://github.com/libp2p/rust-libp2p/pull/2161/
[PR 2212]: https://github.com/libp2p/rust-libp2p/pull/2212/
## 0.31.0 [2021-07-12]
- Update dependencies.
## 0.30.2 [2021-05-06]
- Fix discovered event emission.
[PR 2065](https://github.com/libp2p/rust-libp2p/pull/2065)
## 0.30.1 [2021-04-21]
- Fix timely discovery of peers after listening on a new address.
[PR 2053](https://github.com/libp2p/rust-libp2p/pull/2053/)
## 0.30.0 [2021-04-13]
- Derive `Debug` and `Clone` for `MdnsConfig`.
- Update `libp2p-swarm`.
## 0.29.0 [2021-03-17]
- Introduce `MdnsConfig` with 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 the `MdnsConfig`.
The `MdnsService` has been removed from the public API, making
it compulsory that all uses occur through the `Mdns` `NetworkBehaviour`.
An `MdnsConfig` must now be given to `Mdns::new()`.
[PR 1977](https://github.com/libp2p/rust-libp2p/pull/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-swarm` and `libp2p-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](https://github.com/libp2p/rust-libp2p/pull/1877).
- Detect interface changes and join the MDNS multicast
group on all interfaces as they become available.
[PR 1830](https://github.com/libp2p/rust-libp2p/pull/1830).
- Replace the use of macros for abstracting over `tokio`
and `async-std` with the use of `async-io`. As a result
there may now be an additional reactor thread running
called `async-io` when using `tokio`, with the futures
still being polled by the `tokio` runtime.
[PR 1830](https://github.com/libp2p/rust-libp2p/pull/1830).
## 0.25.0 [2020-11-25]
- Update `libp2p-swarm` and `libp2p-core`.
## 0.24.0 [2020-11-09]
- Update dependencies.
## 0.23.0 [2020-10-16]
- Update `libp2p-swarm` and `libp2p-core`.
- Double receive buffer to 4KiB. [PR 1779](https://github.com/libp2p/rust-libp2p/pull/1779/files).
## 0.22.0 [2020-09-09]
- Update `libp2p-swarm` and `libp2p-core`.
## 0.21.0 [2020-08-18]
- Bump `libp2p-core` and `libp2p-swarm` dependencies.
- Allow libp2p-mdns to use either async-std or tokio to drive required UDP
socket ([PR 1699](https://github.com/libp2p/rust-libp2p/pull/1699)).
## 0.20.0 [2020-07-01]
- Updated dependencies.
## 0.19.2 [2020-06-22]
- Updated dependencies.
|