Moved to https://github.com/libp2p/rust-libp2p/tree/master/misc/server
A rust-libp2p based server implementation running:
$ cargo run -- --help
libp2p server 0.5.4
A rust-libp2p server binary.
USAGE:
libp2p-server [FLAGS] [OPTIONS]
FLAGS:
--enable-autonat Whether to run the libp2p Autonat protocol
--enable-kademlia Whether to run the libp2p Kademlia protocol and join the IPFS DHT
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
--config <config> Path to IPFS config file
--metrics-path <metrics-path> Metric endpoint path [default: /metrics]
$ cargo run
Local peer id: PeerId("12D3KooWDx8yJKVEN5LsCsovRb8HyHKA79cBshzShsE14ioS6Kok")
Listening for metric requests on 0.0.0.0:8080/metrics
Listening on "/ip4/127.0.0.1/tcp/4001"