You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/README.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,23 @@ A set of examples showcasing how to use rust-libp2p.
4
4
5
5
## Getting started
6
6
7
+
To run any example in this directory, you can use Cargo:
8
+
9
+
```sh
10
+
# Navigate to the specific example directory
11
+
cd examples/ping
12
+
13
+
# Run the example
14
+
cargo run
15
+
```
16
+
17
+
Each example includes its own README.md file with specific instructions on how to use it. Most examples require running multiple instances to demonstrate peer-to-peer communication, so be sure to read the individual example documentation.
18
+
19
+
### Prerequisites
20
+
21
+
- Rust and Cargo installed (see [rustup.rs](https://rustup.rs/) for installation)
22
+
- Basic understanding of peer-to-peer networking concepts
23
+
- Some examples may require additional dependencies specific to their functionality
0 commit comments