42 releases (breaking)

Uses new Rust 2021

0.34.0 Jul 5, 2022
0.32.0 Feb 22, 2022
0.30.0 Nov 1, 2021
0.29.0 Jul 12, 2021
0.6.0 Mar 29, 2019

#1430 in Network programming

Download history 18246/week @ 2022-04-27 21961/week @ 2022-05-04 22491/week @ 2022-05-11 22489/week @ 2022-05-18 19643/week @ 2022-05-25 19878/week @ 2022-06-01 22530/week @ 2022-06-08 23204/week @ 2022-06-15 20643/week @ 2022-06-22 19245/week @ 2022-06-29 19565/week @ 2022-07-06 23399/week @ 2022-07-13 25309/week @ 2022-07-20 23635/week @ 2022-07-27 24437/week @ 2022-08-03 22249/week @ 2022-08-10

99,914 downloads per month
Used in libp2p

MIT license

365KB
7K SLoC

Central repository for work on libp2p

dependency status

This repository is the central place for Rust development of the libp2p spec.

Getting started

Repository Structure

The main components of this repository are structured as follows:

  • core/: The implementation of libp2p-core with its Transport and StreamMuxer API on which almost all other crates depend.

  • transports/: Implementations of transport protocols (e.g. TCP) and protocol upgrades (e.g. for authenticated encryption, compression, ...) based on the libp2p-core Transport API .

  • muxers/: Implementations of the StreamMuxer interface of libp2p-core, e.g. (sub)stream multiplexing protocols on top of (typically TCP) connections. Multiplexing protocols are (mandatory) Transport upgrades.

  • swarm/: The implementation of libp2p-swarm building on libp2p-core with the central interfaces NetworkBehaviour and ConnectionHandler used to implement application protocols (see protocols/).

  • protocols/: Implementations of application protocols based on the libp2p-swarm APIs.

  • misc/: Utility libraries.

  • examples/: Worked examples of built-in application protocols (see protocols/) with common Transport configurations.

Community Guidelines

The libp2p project operates under the IPFS Code of Conduct.

tl;dr

  • Be respectful.
  • We're here to help: abuse@ipfs.io
  • Abusive behavior is never tolerated.
  • Violations of this code may result in swift and permanent expulsion from the IPFS [and libp2p] community.
  • "Too long, didn't read" is not a valid excuse for not knowing what is in this document.

Maintainers

(In alphabetical order.)

Notable users

(open a pull request if you want your project to be added here)

Dependencies

~8–47MB
~859K SLoC