Skip to content
Permalink
master
Switch branches/tags

Commits on Sep 5, 2022

Commits on Sep 4, 2022

  1. .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
    thomaseizinger committed Sep 4, 2022

Commits on Sep 3, 2022

  1. protocols/kad: Support multiple protocol names (#2846)

    Add support for multiple Kademlia protocol names to allow
    protocol name upgrades.
    dmitry-markin committed Sep 3, 2022

Commits on Sep 2, 2022

  1. 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.
    gallegogt committed Sep 2, 2022

Commits on Aug 29, 2022

  1. swarm-derive/: Remove support for ignoring fields on struct (#2842)

    With the removal of `NetworkBehaviourEventProcess` there is no more need for
    ignoring fields.
    mxinden committed Aug 29, 2022

Commits on Aug 28, 2022

  1. swarm-derive/: Remove support for custom poll method (#2841)

    With the removal of `NetworkBehaviourEventProcess` there is no more need for a
    custom poll method.
    mxinden committed Aug 28, 2022

Commits on Aug 26, 2022

  1. docs/coding-guidelines: Document limit on number of tasks (#2839)

    Add guideline to limit number of tasks being spawned.
    mxinden committed Aug 26, 2022
  2. swarm/behaviour: Remove deprecated NetworkBehaviourEventProcess (#2840)

    Removes the `NetworkBehaviourEventProcess` and all its associated logic.
    
    See deprecation pull request #2784.
    
    Find rational in #2751.
    mxinden committed Aug 26, 2022

Commits on Aug 23, 2022

  1. 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>
    dependabot[bot] and mxinden committed Aug 23, 2022

Commits on Aug 22, 2022

  1. *: Prepare v0.47.0 (#2830)

    mxinden committed Aug 22, 2022

Commits on Aug 20, 2022

  1. 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.
    mxinden committed Aug 20, 2022

Commits on Aug 17, 2022

  1. 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>
    mxinden and thomaseizinger committed Aug 17, 2022
  2. 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`.
    mxinden committed Aug 17, 2022
  3. 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>
    dependabot[bot] committed Aug 17, 2022
  4. 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`.
    mxinden committed Aug 17, 2022

Commits on Aug 16, 2022

  1. swarm/src/connection: Test max_negotiating_inbound_streams (#2785)

    Test that `HandlerWrapper` upholds the provided
    `max_negotiating_inbound_streams` limit.
    mxinden committed Aug 16, 2022
  2. 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>
    dependabot[bot] committed Aug 16, 2022
  3. core/muxing: Generalise StreamMuxer::poll_address_change to poll (#…

    …2797)
    
    This is to allow general-purpose background work to be performed
    by implementations.
    thomaseizinger committed Aug 16, 2022

Commits on Aug 14, 2022

Commits on Aug 8, 2022

  1. 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).
    mxinden committed Aug 8, 2022

Commits on Aug 3, 2022

  1. core/muxing: Have functions on StreamMuxer take Pin<&mut Self> (#…

    …2765)
    
    Co-authored-by: Elena Frank <elena.frank@protonmail.com>
    Co-authored-by: Max Inden <mail@max-inden.de>
    3 people committed Aug 3, 2022

Commits on Aug 2, 2022

Older