Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge master #18

Merged
merged 25 commits into from
Sep 14, 2021
Merged

Merge master #18

merged 25 commits into from
Sep 14, 2021

Commits on Aug 11, 2021

  1. protocols/gossipsub: Fix inconsistency in mesh peer tracking (libp2p#…

    …2189)
    
    Co-authored-by: Age Manning <Age@AgeManning.com>
    mxinden and AgeManning authored Aug 11, 2021
    Configuration menu
    Copy the full SHA
    ce23cbe View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2021

  1. misc/metrics: Add auxiliary crate to record events as OpenMetrics (li…

    …bp2p#2063)
    
    This commit adds an auxiliary crate recording protocol and Swarm events
    and exposing them as metrics in the OpenMetrics format.
    mxinden authored Aug 13, 2021
    Configuration menu
    Copy the full SHA
    98bc5e6 View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2021

  1. Configuration menu
    Copy the full SHA
    0afed65 View commit details
    Browse the repository at this point in the history
  2. examples/: Add file sharing example (libp2p#2186)

    Basic file sharing application with peers either providing or locating
    and getting files by name.
    
    While obviously showcasing how to build a basic file sharing
    application, the actual goal of this example is **to show how to
    integrate rust-libp2p into a larger application**.
    
    Architectural properties
    
    - Clean clonable async/await interface ([`Client`]) to interact with the
    network layer.
    
    - Single task driving the network layer, no locks required.
    mxinden authored Aug 16, 2021
    Configuration menu
    Copy the full SHA
    d3f5a1e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a5b6a0b View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2021

  1. protocols/kad: Enable filtering of (provider) records (libp2p#2163)

    Introduce `KademliaStoreInserts` option, which allows to filter records.
    
    Co-authored-by: Max Inden <mail@max-inden.de>
    rubdos and mxinden authored Aug 17, 2021
    Configuration menu
    Copy the full SHA
    c58f697 View commit details
    Browse the repository at this point in the history
  2. swarm/src/protocols_handler: Impl ProtocolsHandler on either::Either (l…

    …ibp2p#2192)
    
    Implement ProtocolsHandler on either::Either representing either of two
    ProtocolsHandler implementations.
    
    Co-authored-by: Thomas Eizinger <thomas@eizinger.io>
    mxinden and thomaseizinger authored Aug 17, 2021
    Configuration menu
    Copy the full SHA
    49acf2e View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2021

  1. *: Make libp2p-core default features optional (libp2p#2181)

    Co-authored-by: Max Inden <mail@max-inden.de>
    rubdos and mxinden authored Aug 18, 2021
    Configuration menu
    Copy the full SHA
    f2905c0 View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2021

  1. core/: Remove DisconnectedPeer::set_connected and Pool::add (libp2p#2195

    )
    
    This logic seems to be a leftover of
    libp2p#889 and unused today.
    mxinden authored Aug 19, 2021
    Configuration menu
    Copy the full SHA
    1e9fcf9 View commit details
    Browse the repository at this point in the history
  2. protocols/gossipsub: Use ed25519 in tests (libp2p#2197)

    With f2905c0 the secp256k1 feature is
    disabled by default. Instead of enabling it in the dev-dependency,
    simply use ed25519.
    mxinden authored Aug 19, 2021
    Configuration menu
    Copy the full SHA
    25004c4 View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2021

  1. build(deps): Update minicbor requirement from 0.10 to 0.11 (libp2p#2200)

    Updates the requirements on [minicbor](https://gitlab.com/twittner/minicbor) to permit the latest version.
    - [Release notes](https://gitlab.com/twittner/minicbor/tags)
    - [Changelog](https://gitlab.com/twittner/minicbor/blob/master/CHANGELOG.md)
    - [Commits](https://gitlab.com/twittner/minicbor/compare/minicbor-v0.10.0...minicbor-v0.11.0)
    
    ---
    updated-dependencies:
    - dependency-name: minicbor
      dependency-type: direct:production
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Aug 26, 2021
    Configuration menu
    Copy the full SHA
    d617105 View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2021

  1. build(deps): Update salsa20 requirement from 0.8 to 0.9 (libp2p#2206)

    * build(deps): Update salsa20 requirement from 0.8 to 0.9
    
    Updates the requirements on [salsa20](https://github.com/RustCrypto/stream-ciphers) to permit the latest version.
    - [Release notes](https://github.com/RustCrypto/stream-ciphers/releases)
    - [Commits](RustCrypto/stream-ciphers@ctr-v0.8.0...salsa20-v0.9.0)
    
    ---
    updated-dependencies:
    - dependency-name: salsa20
      dependency-type: direct:production
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    * *: Bump pnet to v0.22
    
    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 authored Aug 30, 2021
    Configuration menu
    Copy the full SHA
    b55ee69 View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2021

  1. *: Dial with handler and return handler on error and closed (libp2p#2191

    )
    
    Require `NetworkBehaviourAction::{DialPeer,DialAddress}` to contain a
    `ProtocolsHandler`. This allows a behaviour to attach custom state to its
    handler. The behaviour would no longer need to track this state separately
    during connection establishment, thus reducing state required in a behaviour.
    E.g. in the case of `libp2p-kad` the behaviour can include a `GetRecord` request
    in its handler, or e.g. in the case of `libp2p-request-response` the behaviour
    can include the first request in the handler.
    
    Return `ProtocolsHandler` on connection error and close. This allows a behaviour
    to extract its custom state previously included in the handler on connection
    failure and connection closing. E.g. in the case of `libp2p-kad` the behaviour
    could extract the attached `GetRecord` from the handler of the failed connection
    and then start another connection attempt with a new handler with the same
    `GetRecord` or bubble up an error to the user.
    
    Co-authored-by: Thomas Eizinger <thomas@eizinger.io>
    mxinden and thomaseizinger authored Aug 31, 2021
    Configuration menu
    Copy the full SHA
    c161acf View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2021

  1. core/: Remove deprecated read/write functions (libp2p#2213)

    Co-authored-by: Max Inden <mail@max-inden.de>
    thomaseizinger and mxinden authored Sep 6, 2021
    Configuration menu
    Copy the full SHA
    6924e5e View commit details
    Browse the repository at this point in the history
  2. protocols/ping: Revise naming of symbols (libp2p#2215)

    Co-authored-by: Max Inden <mail@max-inden.de>
    thomaseizinger and mxinden authored Sep 6, 2021
    Configuration menu
    Copy the full SHA
    c1ae8a0 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2021

  1. protocols/rendezvous: Implement protocol (libp2p#2107)

    Implement the libp2p rendezvous protocol.
    
    > A lightweight mechanism for generalized peer discovery. It can be used for
    bootstrap purposes, real time peer discovery, application specific routing, and
    so on.
    
    Co-authored-by: rishflab <rishflab@hotmail.com>
    Co-authored-by: Daniel Karzel <daniel@comit.network>
    3 people authored Sep 7, 2021
    Configuration menu
    Copy the full SHA
    adcfdc0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    733a0b6 View commit details
    Browse the repository at this point in the history
  3. protocols/mdns: Do not fire all timers at the same time. (libp2p#2212)

    Co-authored-by: Max Inden <mail@max-inden.de>
    dvc94ch and mxinden authored Sep 7, 2021
    Configuration menu
    Copy the full SHA
    67722c5 View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2021

  1. misc/metrics/src/kad: Set query_duration lowest bucket to 0.1 sec (li…

    …bp2p#2219)
    
    Probability for a Kademlia query to return in less than 100 milliseconds
    is low, thus increasing the lower bucket to improve accuracy within the
    higher ranges.
    mxinden authored Sep 8, 2021
    Configuration menu
    Copy the full SHA
    9b1f405 View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2021

  1. misc/metrics/src/swarm: Expose role on connections_closed (libp2p#2220)

    Expose whether closed connection was a Dialer or Listener.
    mxinden authored Sep 9, 2021
    Configuration menu
    Copy the full SHA
    fcb2f62 View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2021

  1. Configuration menu
    Copy the full SHA
    2a6a1cc View commit details
    Browse the repository at this point in the history
  2. protocols/rendezvous: Update prost (libp2p#2226)

    Co-authored-by: Max Inden <mail@max-inden.de>
    kpp and mxinden authored Sep 14, 2021
    Configuration menu
    Copy the full SHA
    5f68c74 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b79fd02 View commit details
    Browse the repository at this point in the history
  4. swarm-derive/: Make event_process = false the default (libp2p#2214)

    Co-authored-by: Max Inden <mail@max-inden.de>
    thomaseizinger and mxinden authored Sep 14, 2021
    Configuration menu
    Copy the full SHA
    e83e1b3 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8ed0e26 View commit details
    Browse the repository at this point in the history