5 releases

0.12.6 Jan 15, 2025
0.12.5 Dec 9, 2023
0.12.4 Nov 12, 2023
0.12.3 Sep 22, 2023
0.12.2 Aug 30, 2023

#2432 in Network programming

Download history 3/week @ 2024-12-06 98/week @ 2025-01-10 32/week @ 2025-01-17

130 downloads per month

MIT license

185KB
3K SLoC

Rust libp2p Server

A rust-libp2p based server implementation running:

Usage

cargo run -- --help

A rust-libp2p server binary.

Usage: libp2p-server [OPTIONS] --config <CONFIG>

Options:
      --config <CONFIG>              Path to IPFS config file
      --metrics-path <METRICS_PATH>  Metric endpoint path [default: /metrics]
      --enable-kademlia              Whether to run the libp2p Kademlia protocol and join the IPFS DHT
      --enable-autonat               Whether to run the libp2p Autonat protocol
  -h, --help                         Print help
cargo run -- --config ~/.ipfs/config

Local peer id: PeerId("12D3KooWSa1YEeQVSwvoqAMhwjKQ6kqZQckhWPb3RWEGV3sZGU6Z")
Listening on "/ip4/127.0.0.1/udp/4001/quic"
[...]

Dependencies

~18–56MB
~1M SLoC