Skip to content

Commit

Permalink
Merge pull request #32 from algorealmInc/docs-revamp
Browse files Browse the repository at this point in the history
Merge file sharing example from docs-revamp
  • Loading branch information
sacha-l authored May 16, 2024
2 parents fd77f89 + a525fc5 commit 1cb4542
Show file tree
Hide file tree
Showing 15 changed files with 1,142 additions and 1,234 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ Visit the deployed Rust docs [here](https://algorealminc.github.io/SwarmNL/swarm
- Protocol specification and handlers
- Event handlers for network events and logging

#### Example
### Example

#### Setup a node

```rust
//! Using the default node setup configuration and the default network event handler
Expand Down Expand Up @@ -124,7 +126,7 @@ Visit the deployed Rust docs [here](https://algorealminc.github.io/SwarmNL/swarm
- A simple RPC mechanism to exchange data quickly between peers.
- Gossiping: SwarmNL uses the Gossipsub 1.1 protocol, specified by the [libp2p spec](https://github.com/libp2p/specs/blob/master/pubsub/gossipsub/gossipsub-v1.1.md).

#### Example
#### Communicate with the network layer

```rust
//! Communicate with remote nodes using the simple and familiar async-await paradigm.
Expand Down
1 change: 1 addition & 0 deletions client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ tokio = { version = "1.37.0", features = ["full"] }
base58 = "0.2.0"

[features]
first-node = []
second-node = []
test-reading-node = []
test-writing-node = []
Loading

0 comments on commit 1cb4542

Please sign in to comment.