Skip to content

Commit

Permalink
feat: add web using egui and libp2p-floodsub
Browse files Browse the repository at this point in the history
Unfortunately, libp2p-gossipsub doesn't support WASM well currently.
That's why I used libp2p-floodsub instead. For more details, please see #4 (comment)
  • Loading branch information
youngjoon-lee committed May 1, 2023
1 parent 8c70428 commit e66958c
Show file tree
Hide file tree
Showing 21 changed files with 6,041 additions and 152 deletions.
1,691 changes: 1,626 additions & 65 deletions Cargo.lock

Large diffs are not rendered by default.

34 changes: 10 additions & 24 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,26 +1,12 @@
[package]
name = "jiri"
version = "0.0.1"
edition = "2021"
[workspace]
members = [
"standalone",
"web",
]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[profile.release]
opt-level = 2 # fast and small wasm

[dependencies]
async-channel = "1.8.0"
async-std = { version = "1.12", features = ["attributes"] }
async-trait = "0.1"
bytes = "1.4.0"
clap = { version = "4.2.1", features = ["derive"] }
env_logger = "0.10"
futures = "0.3.28"
libp2p = { version = "0.51.3", features = ["async-std", "dns", "mdns", "kad", "noise", "macros", "request-response", "tcp", "websocket", "yamux", "gossipsub"] }
log = "0.4.17"
multiaddr = { version = "0.17.1" }
serde = { version = "1.0.160", features = ["derive"] }
serde_derive = "1.0.160"
serde_json = "1.0.96"
tokio = { version = "1.27.0", features = ["full"] }
warp = "0.3.4"

[dev-dependencies]
dockertest = "0.3.1"
[profile.dev]
debug = 2
opt-level = 0
Loading

0 comments on commit e66958c

Please sign in to comment.