ba14ffdd42
protocols/identify: Change default cache_size of Config to 100 ( #2995 )
...
`Config` struct's member `cache_size` now defaults to `100`.
2022-11-04 19:40:30 +00:00
280c51ef83
*: Link to libp2p/specs in doc comments ( #3077 )
2022-11-04 10:32:41 +00:00
1ba9e4579d
protocols/gossipsub: Make use of prost-codec
( #3070 )
2022-11-04 10:12:08 +00:00
b528d336cd
*: Fix clippy warnings introduced by Rust 1.65 release ( #3081 )
2022-11-04 09:40:09 +00:00
53d445e61c
protocols/kademlia: Refactor stream state machines ( #3074 )
...
* Refactor `InboundSubstreamState` to implement `Stream`
This allows us to use `stream::SelectAll` instead of iterating
through the states ourselves. It also allows us to fix an existing
TODO where we don't properly close a stream.
* Refactor `OutboundSubstreamState` to implement `Stream`
* Remove unnecessary keep_alive changes
The same thing is happening further down.
* Remove code duplication in answering requests
* Debug assert that we can answer every request
2022-11-02 19:20:55 +00:00
71131e0622
*: Don't leak prost
dependency in error types ( #3058 )
...
With the current design, a major version bump of `prost` leaks into
all consumers of `prost-codec`.
2022-11-02 12:02:21 +00:00
4d1b165982
transports/tcp: Unify symbol naming ( #2961 )
...
Co-authored-by: Elena Frank <elena.frank@protonmail.com >
2022-10-24 15:41:08 +11:00
fcadc83aca
*: Use auto_doc_cfg
instead of doc(cfg)
attributes ( #2983 )
...
Co-authored-by: João Oliveira <hello@jxs.pt >
Co-authored-by: Thomas Eizinger <thomas@eizinger.io >
2022-10-24 13:00:20 +11:00
4a4d4ad5c9
protocols/identify: Fix Identify protocol link in module doc ( #3047 )
2022-10-20 14:59:30 +01:00
d530e5112c
*: Prepare v0.49.0 ( #2931 )
2022-10-14 15:30:16 +01:00
d9a2e6c1bd
build(deps): Update clap
to v4 ( #3015 )
2022-10-14 15:51:23 +11:00
eb10af7a4b
protocols/{relay,dcutr}: Replace std::time::SystemTime
with instant::SystemTime
( #2991 )
2022-10-12 14:09:47 +01:00
87ab49e812
protocols/mdns: Update to if-watch v2.0.0 ( #2978 )
2022-10-05 21:23:50 +01:00
bdf9209824
swarm: Split off "keep alive" functionality from DummyConnectionHandler
( #2859 )
...
Previously, the `DummyConnectionHandler` offered a "keep alive" functionality,
i.e. it allowed users to set the value of what is returned from
`ConnectionHandler::keep_alive`. This handler is primarily used in tests or
`NetworkBehaviour`s that don't open any connections (like mDNS). In all of these
cases, it is statically known whether we want to keep connections alive. As
such, this functionality is better represented by a static
`KeepAliveConnectionHandler` that always returns `KeepAlive::Yes` and a
`DummyConnectionHandler` that always returns `KeepAlive::No`.
To follow the naming conventions described in
https://github.com/libp2p/rust-libp2p/issues/2217 , we introduce a top-level
`keep_alive` and `dummy` behaviour in `libp2p-swarm` that contains both the
`NetworkBehaviour` and `ConnectionHandler` implementation for either case.
2022-10-05 17:50:11 +01:00
da0403dc45
protocols/mdns: Removed obsolete lazy static use from mdns ( #2977 )
...
Co-authored-by: Max Inden <mail@max-inden.de >
2022-10-05 10:26:30 +11:00
f13f9edeb4
protocols/identify: Fix bad changelog entries and manifest version ( #2974 )
...
Fix bad changelog entries and manifest version for libp2p-identify
2022-10-04 18:06:45 +01:00
a905a36cbc
protocols/mdns: Optimise InterfaceState::poll
for low latency ( #2939 )
2022-10-04 18:45:39 +11:00
1b793242e6
.cargo: Run clippy
on ALL the source files ( #2949 )
2022-10-04 18:24:38 +11:00
e6da99e4f8
.github/workflows: Deny cargo doc warnings in CI ( #2936 )
...
Co-authored-by: Thomas Eizinger <thomas@eizinger.io >
2022-10-04 12:01:45 +11:00
a7a96e5502
protocols/identify: Revise symbol naming ( #2927 )
2022-10-04 11:17:31 +11:00
1da75b2b25
protocols/ping: Properly deprecate types with Ping
prefix ( #2937 )
...
Co-authored-by: Elena Frank <elena.frank@protonmail.com >
Co-authored-by: João Oliveira <hello@jxs.pt >
2022-10-01 00:19:34 +10:00
cce296e55e
protocols/{autonat,dcutr}: Fixing filename collision in examples ( #2959 )
...
Co-authored-by: Ryan Plauche <ryan@littlebearlabs.io >
2022-09-30 13:58:35 +10:00
f6bb846c36
*: Remove default features from all crates ( #2918 )
...
Remove default features. You need to enable required features
explicitly now. As a quick workaround, you may want to use the
new `full` feature which activates all features.
2022-09-29 16:32:22 +01:00
b28ab2c6bc
build(deps): Update lru to 0.8.0 ( #2908 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Inden <mail@max-inden.de >
2022-09-27 11:39:10 +10:00
e530118fb0
build(deps): Bump rand to 0.8 and quickcheck to 1 ( #2857 )
...
Co-authored-by: Thomas Eizinger <thomas@eizinger.io >
Co-authored-by: Max Inden <mail@max-inden.de >
2022-09-22 18:48:32 +10:00
45faefa36c
*: Unfiy how we depend on crates across the workspace ( #2886 )
2022-09-19 17:32:02 +10:00
c81b06a9b2
*: Fix various clippy warnings ( #2900 )
2022-09-16 16:30:11 +02:00
2c739e9bdb
protocols/noise: Introduce NoiseAuthenticated::xx
constructor with X25519 DH key exchange ( #2887 )
...
Co-authored-by: Max Inden <mail@max-inden.de >
2022-09-16 11:41:35 +10:00
5906140d38
protocols/kad: Remove deprecated set_protocol_name()
( #2866 )
2022-09-15 15:30:32 +02:00
72bade1799
build(deps): Update env_logger to 0.9 and criterion to 0.4 ( #2896 )
2022-09-14 13:01:41 +10:00
c650dc19db
*: Replace _serde with dep:serde in Cargo.toml ( #2868 )
2022-09-08 18:30:43 +10:00
83c67954e9
*: Prepare v0.48.0 ( #2869 )
2022-09-07 09:44:51 +02:00
2eca38cca0
core/upgrade/: Add ReadyUpgrade
( #2855 )
2022-09-07 09:08:23 +02:00
8644c65a22
core/: Introduce rsa
feature flag to avoid ring
dependency ( #2860 )
...
- Introduce `rsa` feature flag to `libp2p-core`.
- Expose `rsa` feature in `libp2p`.
- Add `rsa` feature to `libp2p` `default`.
2022-09-07 08:16:22 +02:00
b8c3b282ee
protocols/gossipsub: Allow publishing to anything that implements Into<TopicHash>
( #2862 )
2022-09-05 06:31:13 +02:00
cee199afca
protocols/kad: Support multiple protocol names ( #2846 )
...
Add support for multiple Kademlia protocol names to allow
protocol name upgrades.
2022-09-03 02:46:50 +02:00
89f898c69f
protocols/mdns: Allow users to choose between async-io and tokio runtime ( #2748 )
...
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.
Fix high CPU usage with Tokio library.
2022-09-02 05:53:38 +02:00
36a2773861
*: Update changelogs for prost dep update ( #2851 )
2022-08-30 10:03:54 +02:00
ca07ce4d64
swarm/behaviour: Remove deprecated NetworkBehaviourEventProcess ( #2840 )
...
Removes the `NetworkBehaviourEventProcess` and all its associated logic.
See deprecation pull request https://github.com/libp2p/rust-libp2p/pull/2784 .
Find rational in https://github.com/libp2p/rust-libp2p/pull/2751 .
2022-08-26 07:08:33 +02:00
d610e4b0fb
protocols/dcutr: Disable libp2p-core
default features ( #2836 )
2022-08-23 09:12:00 +02:00
4253080a43
*: Prepare v0.47.0 ( #2830 )
2022-08-22 05:14:04 +02:00
d2c50530e9
build(deps): Update prometheus-client requirement from 0.17.0 to 0.18.0 ( #2822 )
...
* build(deps): Update prometheus-client requirement from 0.17.0 to 0.18.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.17.0...v0.18.0 )
---
updated-dependencies:
- dependency-name: prometheus-client
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-17 07:02:21 +02:00
6a9fa3d930
build(deps): Update prost requirement from 0.10 to 0.11 ( #2788 )
...
* build(deps): Update prost-build requirement from 0.10 to 0.11
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/compare/v0.10.0...v0.11.0 )
---
updated-dependencies:
- dependency-name: prost-build
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
* build(deps): Update prost requirement from 0.10 to 0.11
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/compare/v0.10.0...v0.11.0 )
---
updated-dependencies:
- dependency-name: prost
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-08-16 08:49:09 +02:00
06aaea67f3
*: Fix clippy::derive-partial-eq-without-eq
( #2818 )
2022-08-14 04:03:04 +02:00
a4110a2b69
*: Remove inject_connected
/ inject_disconnected
from docs ( #2805 )
2022-08-10 10:20:31 +02:00
1012579d77
protocols/: Remove passing default variant to WithPeerId::condition
( #2802 )
2022-08-10 09:50:24 +02:00
09c690862e
protocols/dcutr: Fix clippy lints ( #2772 )
2022-07-28 03:04:36 +02:00
51a847128c
build(deps): Update prometheus-client requirement from 0.16.0 to 0.17.0 ( #2761 )
...
* build(deps): Update prometheus-client requirement from 0.16.0 to 0.17.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.16.0...v0.17.0 )
---
updated-dependencies:
- dependency-name: prometheus-client
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-22 11:20:39 +02:00
c8066df232
*: Update to if-watch
1.1.1
( #2754 )
2022-07-19 09:14:00 +02:00
1a553db596
core/muxing: Flatten StreamMuxer
interface to poll_{inbound,outbound,address_change,close}
( #2724 )
...
Instead of having a mix of `poll_event`, `poll_outbound` and `poll_close`, we
flatten the entire interface of `StreamMuxer` into 4 individual functions:
- `poll_inbound`
- `poll_outbound`
- `poll_address_change`
- `poll_close`
This design is closer to the design of other async traits like `AsyncRead` and
`AsyncWrite`. It also allows us to delete the `StreamMuxerEvent`.
2022-07-18 05:20:11 +02:00