mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-12 01:21:21 +00:00
docs(examples): add a README to each example
Resolves #3853. Pull-Request: #3974.
This commit is contained in:
@ -18,24 +18,8 @@
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
|
||||
/// Examples for the rendezvous protocol:
|
||||
///
|
||||
/// 1. Run the rendezvous server:
|
||||
/// ```
|
||||
/// RUST_LOG=info cargo run --bin rendezvous-example
|
||||
/// ```
|
||||
/// 2. Register a peer:
|
||||
/// ```
|
||||
/// RUST_LOG=info cargo run --bin rzv-register
|
||||
/// ```
|
||||
/// 3. Try to discover the peer from (2):
|
||||
/// ```
|
||||
/// RUST_LOG=info cargo run --bin rzv-discover
|
||||
/// ```
|
||||
/// 4. Try to discover with identify:
|
||||
/// ```
|
||||
/// RUST_LOG=info cargo run --bin rzv-identify
|
||||
/// ```
|
||||
#![doc = include_str!("../README.md")]
|
||||
|
||||
use futures::StreamExt;
|
||||
use libp2p::{
|
||||
core::transport::upgrade::Version,
|
||||
|
Reference in New Issue
Block a user