master
Commits on Sep 5, 2022
-
protocols/gossipsub: Allow publishing to anything that implements `In…
…to<TopicHash>` (#2862)
Commits on Sep 4, 2022
-
.git-blame-ignore-revs/: Initialize and add rustfmt commit (#2864)
Ignoring certain revisions helps in finding the "correct" commit that touched a file last. For more information, see: https://www.git-scm.com/docs/git-blame#Documentation/git-blame.txt---ignore-revs-fileltfilegt
Commits on Sep 3, 2022
-
protocols/kad: Support multiple protocol names (#2846)
Add support for multiple Kademlia protocol names to allow protocol name upgrades.
Commits on Sep 2, 2022
-
protocols/mdns: Allow users to choose between async-io and tokio runt…
…ime (#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.
Commits on Aug 30, 2022
Commits on Aug 29, 2022
-
swarm-derive/: Remove support for ignoring fields on struct (#2842)
With the removal of `NetworkBehaviourEventProcess` there is no more need for ignoring fields.
Commits on Aug 28, 2022
-
swarm-derive/: Remove support for custom poll method (#2841)
With the removal of `NetworkBehaviourEventProcess` there is no more need for a custom poll method.
Commits on Aug 26, 2022
-
docs/coding-guidelines: Document limit on number of tasks (#2839)
Add guideline to limit number of tasks being spawned.
-
swarm/behaviour: Remove deprecated NetworkBehaviourEventProcess (#2840)
Commits on Aug 23, 2022
-
build(deps): Update p256 requirement from 0.10.0 to 0.11.0 (#2636)
* build(deps): Update p256 requirement from 0.10.0 to 0.11.0 Updates the requirements on [p256](https://github.com/RustCrypto/elliptic-curves) to permit the latest version. - [Release notes](https://github.com/RustCrypto/elliptic-curves/releases) - [Commits](https://github.com/RustCrypto/elliptic-curves/commits/p256/v0.10.1) --- updated-dependencies: - dependency-name: p256 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * core/: Bump version and add changelog entry 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>
Commits on Aug 22, 2022
Commits on Aug 20, 2022
-
clippy.toml: Create config and disallow unbounded channels (#2823)
When using channels (e.g. `futures::channel::mpsc` or `std::sync::mpsc`) always use the bounded variant, never use the unbounded variant. When using a bounded channel, a slow consumer eventually slows down a fast producer once the channel bound is reached, ideally granting the slow consumer more system resources e.g. CPU time, keeping queues small and thus latencies low. When using an unbounded channel a fast producer continues being a fast producer, growing the channel buffer indefinitely, increasing latency until the illusion of unboundedness breaks and the system runs out of memory. One may use an unbounded channel if one enforces backpressure through an out-of-band mechanism, e.g. the consumer granting the producer send-tokens through a side-channel.
-
Commits on Aug 17, 2022
-
docs/coding-guidelines: Add document (#2780)
Add document outlining a set of coding guidelines followed and to be followed across the rust-libp2p code base. Co-authored-by: Thomas Eizinger <thomas@eizinger.io>
-
swarm-derive/: Derive Debug for generated OutEvent (#2821)
When generating an `OutEvent` `enum` definition for a user, derive `Debug` for that `enum`. Why not derive `Clone`, `PartialEq` and `Eq` for the generated `enum` definition? While it is fine to require all sub-`OutEvent`s to implement `Debug`, the same does not apply to traits like `Clone`. I suggest users that need `Clone` to define their own `OutEvent`.
-
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](prometheus/client_rust@v0.17.0...v0.18.0) --- updated-dependencies: - dependency-name: prometheus-client dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
-
swarm-derive/: Add where clause of behaviour to generated out event (#…
…2819) When generating the `OutEvent` for a `NetworkBehaviour`, add the `where` clause of the `NetworkBehaviour` `struct` to the generated `enum`.
Commits on Aug 16, 2022
-
swarm/src/connection: Test max_negotiating_inbound_streams (#2785)
Test that `HandlerWrapper` upholds the provided `max_negotiating_inbound_streams` limit.
-
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](tokio-rs/prost@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](tokio-rs/prost@v0.10.0...v0.11.0) --- updated-dependencies: - dependency-name: prost dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
-
swarm/src/behaviour: Deprecate NetworkBehaviourEventProcess (#2784)
In preparation for #2751.
-
-
core/muxing: Generalise
StreamMuxer::poll_address_changetopoll(#……2797) This is to allow general-purpose background work to be performed by implementations.
Commits on Aug 13, 2022
Commits on Aug 10, 2022
Commits on Aug 8, 2022
-
-
swarm-derive/: Generate OutEvent if not provided (#2792)
Generate `NetworkBehaviour::OutEvent` if not provided through `#[behaviour(out_event = "MyOutEvent")]` and event processing is disabled (default).
Commits on Aug 3, 2022
-
core/muxing: Have functions on
StreamMuxertakePin<&mut Self>(#……2765) Co-authored-by: Elena Frank <elena.frank@protonmail.com> Co-authored-by: Max Inden <mail@max-inden.de>