efe9c07b34
protocols/kad: Update arrayvec
dependency to latest version 0.7.2 ( #2644 )
2022-05-16 18:52:19 +02:00
f04f6bb4fc
identify/handler: Improve property name ( #2639 )
2022-05-11 11:18:20 +10:00
93fa86c263
build(deps): Update prometheus-client requirement from 0.15.0 to 0.16.0 ( #2631 )
...
* build(deps): Update prometheus-client requirement from 0.15.0 to 0.16.0
Updates the requirements on [prometheus-client](https://github.com/prometheus/client_rust ) to permit the latest version.
- [Release notes](https://github.com/prometheus/client_rust/releases )
- [Changelog](https://github.com/prometheus/client_rust/blob/master/CHANGELOG.md )
- [Commits](https://github.com/prometheus/client_rust/compare/v0.15.0...v0.16.0 )
---
updated-dependencies:
- dependency-name: prometheus-client
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
* *: Update changelogs
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Inden <mail@max-inden.de >
2022-05-06 14:57:40 +02:00
bbd2f8f009
misc/prost-codec: Introduce codec for varint prefixed Protobuf messages ( #2630 )
...
Extracts the Protobuf en-/decoding pattern into its separate crate
and applies it to `libp2p-identify`.
2022-05-05 18:28:47 +02:00
70d38520fd
*: Activate clippy::style
lint group ( #2620 )
2022-05-03 13:11:48 +02:00
c427bb3958
protocols/kad: Implement Error for GetRecordError ( #2614 )
2022-04-17 10:16:32 +02:00
a1f3547b43
protocols/gossipsub: Allow score buckets to be set ( #2595 )
...
Moves the score buckets to the metrics configuration, setting the same defaults
as what we had but also allowing the user to pass a reference to the score
thresholds to create them from that. Having them in the config also allows users
to set them directly.
2022-04-08 21:32:27 +02:00
f5b982a13b
protocols/ping: Log remote PeerId instead of payload ( #2608 )
2022-04-07 21:37:02 +02:00
2ad905f35a
{core,swarm}/: Don't require Transport: Clone
and take &mut
( #2529 )
...
Previously `libp2p-swarm` required a `Transport` to be `Clone`. Methods
on `Transport`, e.g. `Transport::dial` would take ownership, requiring
e.g. a `Clone::clone` before calling `Transport::dial`.
The requirement of `Transport` to be `Clone` is no longer needed in
`libp2p-swarm`. E.g. concurrent dialing can be done without a clone per
dial.
This commit removes the requirement of `Clone` for `Transport` in
`libp2p-swarm`. As a follow-up methods on `Transport` no longer take
ownership, but instead a mutable reference (`&mut self`).
On the one hand this simplifies `libp2p-swarm`, on the other it
simplifies implementations of `Transport`.
2022-04-06 20:23:16 +02:00
7a1147877a
build(deps): Update prost-build requirement from 0.9 to 0.10 ( #2596 )
...
* build(deps): Update prost-build requirement from 0.9 to 0.10
Updates the requirements on [prost-build](https://github.com/tokio-rs/prost ) to permit the latest version.
- [Release notes](https://github.com/tokio-rs/prost/releases )
- [Commits](https://github.com/tokio-rs/prost/commits )
---
updated-dependencies:
- dependency-name: prost-build
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
* .github/workflow: Don't run integration test in container
* .github/workflow: Don't run doc step in container
* .github/workflows: Remove component docs
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Inden <mail@max-inden.de >
2022-04-06 15:54:42 +02:00
90140a6eaf
*: Change structopt to native clap derive implementations ( #2600 )
...
Co-authored-by: Max Inden <mail@max-inden.de >
2022-04-05 21:56:44 +02:00
680604f3d3
build(deps): Update prost requirement from 0.9 to 0.10 ( #2597 )
...
Updates the requirements on [prost](https://github.com/tokio-rs/prost ) to permit the latest version.
- [Release notes](https://github.com/tokio-rs/prost/releases )
- [Commits](https://github.com/tokio-rs/prost/commits )
---
updated-dependencies:
- dependency-name: prost
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Inden <mail@max-inden.de >
2022-04-05 21:35:54 +02:00
f26adbcd84
*: Prepare libp2p v0.44.0 ( #2604 )
2022-04-04 18:27:41 +02:00
4d796fdca1
protocols/{dcutr,relay}: Expose error types ( #2605 )
...
Co-authored-by: canewsin <canews.in@gmail.com >
2022-04-04 11:32:54 +02:00
6cc3b4ec52
*: Import libp2p
with default-features = false
( #2574 )
...
* *: Import `libp2p` with `default-features = false`
While not a win in most cases, it reduces compile time for tests of
individual crates.
* Cargo.toml: Set features for examples
2022-03-22 11:22:17 +01:00
7839e7b362
protocols/gossipsub/Cargo.toml: Update to regex
v1.5.5 ( #2576 )
...
See https://rustsec.org/advisories/RUSTSEC-2022-0013
2022-03-18 17:13:27 +01:00
e771ab8659
protocols/dcutr/Cargo.toml: Update prost to v0.9 ( #2575 )
2022-03-18 16:58:01 +01:00
7f97d49073
build(deps): Update derive_builder requirement from 0.10.0 to 0.11.1 ( #2568 )
...
Updates the requirements on [derive_builder](https://github.com/colin-kiegel/rust-derive-builder ) to permit the latest version.
- [Release notes](https://github.com/colin-kiegel/rust-derive-builder/releases )
- [Commits](https://github.com/colin-kiegel/rust-derive-builder/compare/v0.10.0...v0.11.1 )
---
updated-dependencies:
- dependency-name: derive_builder
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-18 15:46:33 +01:00
b98d23263a
protocols/gossipsub: Fix metric name ( #2558 )
2022-03-17 17:44:52 +01:00
96103ee590
protocols/autonat: Fix wrong parameter name in examples ( #2555 )
2022-03-13 10:23:15 +11:00
108c970a59
protocols/relay: Remove support for Circuit Relay v1 protocol ( #2549 )
2022-03-11 12:12:10 +01:00
e2fcc47da6
swarm/src/behaviour: Remove Send bound from NetworkBehaviour ( #2535 )
...
The bound is no longer needed across the libp2p-XXX crates.
Co-authored-by: Max Inden <mail@max-inden.de >
2022-02-28 10:27:58 +01:00
99855b1d10
*: Apply clippy suggestions ( #2540 )
2022-02-28 10:05:17 +01:00
b1859464c9
*: Prepare v0.43.0 ( #2531 )
2022-02-22 14:05:19 +01:00
fd2be38faf
swarm/: Rename ProtocolsHandler to ConnectionHandler ( #2527 )
...
A `ProtocolsHandler`, now `ConnectionHandler`, handels a connection, not
a protocol. Thus the name `CONNECTIONHandler` is more appropriate.
Next to the rename of `ProtocolsHandler` this commit renames the `mod
protocols_handler` to `mod handler`. Finally all combinators (e.g.
`ProtocolsHandlerSelect`) are renamed appropriately.
2022-02-21 13:32:24 +01:00
65cc8994a6
*: Derive Debug
and Clone
( #2495 )
...
Co-authored-by: Max Inden <mail@max-inden.de >
2022-02-16 16:16:54 +01:00
9f1114d8b9
protocols/gossipsub: Add IWANT and memcache misses metrics ( #2518 )
...
Co-authored-by: Max Inden <mail@max-inden.de >
2022-02-16 15:54:24 +01:00
df4905d798
core/src: Take ref of key in SignedEnvelope & PeerRecord ( #2516 )
2022-02-15 23:47:32 +01:00
dceb72bfe2
protocols/autonat: Fix flaky test ( #2480 )
2022-02-15 14:12:41 +01:00
e66f04f41b
protocols/gossipsub: Do not overwrite msg's peers if put again into mcache ( #2493 )
...
Co-authored-by: Max Inden <mail@max-inden.de >
2022-02-14 15:49:00 +01:00
60666f5455
protocols/gossipsub: Revert back to wasm_timer for interval ( #2506 )
...
Removed the custom interval implementation and removes support for
wasm32-unknown-unknown. See https://github.com/libp2p/rust-libp2p/issues/2497
for details.
Co-authored-by: Diva M <divma@protonmail.com >
Co-authored-by: Max Inden <mail@max-inden.de >
2022-02-14 11:24:58 +01:00
e6f034c132
protocols/gossipsub: Remove outdated warning ( #2496 )
...
Co-authored-by: Max Inden <mail@max-inden.de >
2022-02-09 16:24:08 +01:00
4eb3d15db1
protocols/dcutr: Add changelog ( #2499 )
2022-02-09 16:09:00 +01:00
dc8433e3fc
swarm/src/behaviour: Merge inject_* paired methods ( #2445 )
...
Co-authored-by: Max Inden <mail@max-inden.de >
2022-02-09 16:08:28 +01:00
5a95a46cd3
protocols/: Add documentation on peer discovery ( #2465 )
...
Co-authored-by: Max Inden <mail@max-inden.de >
2022-02-09 15:54:07 +01:00
0bb8ee98d5
protocols/: Implement Direct Connection Upgrade through Relay (DCUtR) ( #2438 )
...
Enables two peers to coordinate a hole punch (direct connection upgrade)
via a relayed connection.
See https://github.com/libp2p/specs/blob/master/relay/DCUtR.md for
specification.
2022-02-08 15:56:35 +01:00
bd41e0461e
protocols/kad: Require owned key in get_record ( #2477 )
...
Co-authored-by: Max Inden <mail@max-inden.de >
2022-02-07 22:56:30 +01:00
78f5981856
protocols/gossipsub: Emit gossip of all non empty topics ( #2481 )
...
Co-authored-by: Max Inden <mail@max-inden.de >
2022-02-07 20:00:46 +01:00
a2c93fc766
*: Update multihash and multiaddr ( #2469 )
...
Co-authored-by: Max Inden <mail@max-inden.de >
2022-02-03 17:38:41 +01:00
3f4dbb1717
{misc,protocols/gossipsub}: Move to prometheus-client ( #2442 )
...
`open-metrics-client` has been accepted as the official Prometheus Rust
client and thus renamed to `prometheus-client`.
See https://groups.google.com/g/prometheus-developers/c/E67ByGmVQKM
2022-02-03 11:31:41 +01:00
ea180aa3a8
*: Prepare v0.42.1 ( #2467 )
2022-02-02 15:59:32 +01:00
6338b25e4b
protocols/relay/src/v2: Remove empty peer entries in self.reservations ( #2464 )
...
When a peer disconnects, reservations associated with that peer are removed from
the set of reservations of the peer. In case the set of reservations for the
peer is now empty, remove the entire peer.
Same when a reservation times out.
2022-02-01 19:32:58 +01:00
13ded7f6a8
protocols/autonat/tests: Ignore irrelevant events ( #2450 )
...
Ignore `SwarmEvent::ExpiredListenAddr` in tests.
Print swarm event on panic.
Co-authored-by: Max Inden <mail@max-inden.de >
2022-01-29 12:33:15 +01:00
73c103e694
protocols/autonat/Cargo.toml: Add description field ( #2452 )
...
Without one can not publish the crate to crates.io.
2022-01-27 12:17:02 +01:00
e6ccfbc4e7
*: Prepare v0.42.0 ( #2440 )
2022-01-27 11:29:09 +01:00
320a1cde00
protocols/kad: Add Kademlia::get_closest_local_peers ( #2436 )
...
Co-authored-by: Max Inden <mail@max-inden.de >
2022-01-22 11:43:07 +01:00
a26b6ab7f0
protocols/autonat: Add changelog and start version at v0.1.0 ( #2444 )
...
The `libp2p-autonat` crate has never been released, thus it should start at
`v0.1.0`.
2022-01-20 13:18:05 +01:00
fad99808ac
*: Update tokio, lru and prost ( #2443 )
2022-01-20 09:43:32 +01:00
4001b565b6
*: Rework reporting of invalid and wrong PeerIds ( #2441 )
...
Previously, the negotiated PeerId was included in the swarm event and
inject_dial_failure’s arguments while the expected one was absent. This
patch adds the negotiated PeerId to the DialError and includes the expected
one in the notifications.
Co-authored-by: Roland Kuhn <rk@rkuhn.info >
2022-01-18 21:21:11 +01:00
30fc882037
protocols/gossipsub: Implement unsub backoff spec changes ( #2403 )
...
Implements the changes specified by
https://github.com/libp2p/specs/pull/383 .
Co-authored-by: Max Inden <mail@max-inden.de >
2022-01-17 18:08:34 +01:00