Skip to content

Commit

Permalink
examples/: Add file sharing example (#2186)
Browse files Browse the repository at this point in the history
Basic file sharing application with peers either providing or locating
and getting files by name.

While obviously showcasing how to build a basic file sharing
application, the actual goal of this example is **to show how to
integrate rust-libp2p into a larger application**.

Architectural properties

- Clean clonable async/await interface ([`Client`]) to interact with the
network layer.

- Single task driving the network layer, no locks required.
  • Loading branch information
mxinden authored Aug 16, 2021
1 parent 0afed65 commit d3f5a1e
Show file tree
Hide file tree
Showing 2 changed files with 735 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ libp2p-websocket = { version = "0.31.0", path = "transports/websocket", optional

[dev-dependencies]
async-std = { version = "1.6.2", features = ["attributes"] }
async-trait = "0.1"
env_logger = "0.9.0"
structopt = "0.3.21"
tokio = { version = "1.0.1", features = ["io-util", "io-std", "macros", "rt", "rt-multi-thread"] }

[workspace]
Expand Down
Loading

0 comments on commit d3f5a1e

Please sign in to comment.