2023-09-17 16:13:11 -03:00
|
|
|
[package]
|
|
|
|
authors = ["Doug Anderson <douganderson444@peerpiper.io>"]
|
|
|
|
description = "Example use of the WebRTC transport in a browser wasm environment"
|
|
|
|
edition = "2021"
|
|
|
|
license = "MIT"
|
|
|
|
name = "browser-webrtc-example"
|
|
|
|
publish = false
|
|
|
|
repository = "https://github.com/libp2p/rust-libp2p"
|
|
|
|
rust-version = { workspace = true }
|
|
|
|
version = "0.1.0"
|
|
|
|
|
|
|
|
[lib]
|
|
|
|
crate-type = ["cdylib"]
|
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
anyhow = "1.0.72"
|
|
|
|
env_logger = "0.10"
|
|
|
|
futures = "0.3.28"
|
|
|
|
log = "0.4"
|
|
|
|
rand = "0.8"
|
|
|
|
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
|
|
axum = "0.6.19"
|
2023-10-09 07:50:46 +05:30
|
|
|
libp2p = { path = "../../libp2p", features = [ "ed25519", "macros", "ping", "wasm-bindgen", "tokio"] }
|
2023-09-17 16:13:11 -03:00
|
|
|
libp2p-webrtc = { workspace = true, features = ["tokio"] }
|
2023-09-18 09:29:47 +00:00
|
|
|
rust-embed = { version = "8.0.0", features = ["include-exclude", "interpolate-folder-path"] }
|
2023-09-17 16:13:11 -03:00
|
|
|
tokio = { version = "1.29", features = ["macros", "net", "rt", "signal"] }
|
|
|
|
tokio-util = { version = "0.7", features = ["compat"] }
|
|
|
|
tower = "0.4"
|
|
|
|
tower-http = { version = "0.4.0", features = ["cors"] }
|
|
|
|
mime_guess = "2.0.4"
|
|
|
|
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
|
|
js-sys = "0.3.64"
|
2023-10-09 07:50:46 +05:30
|
|
|
libp2p = { path = "../../libp2p", features = [ "ed25519", "macros", "ping", "wasm-bindgen"] }
|
2023-09-17 16:13:11 -03:00
|
|
|
libp2p-webrtc-websys = { workspace = true }
|
|
|
|
wasm-bindgen = "0.2.84"
|
|
|
|
wasm-bindgen-futures = "0.4.37"
|
|
|
|
wasm-logger = { version = "0.2.0" }
|
|
|
|
web-sys = { version = "0.3", features = ['Document', 'Element', 'HtmlElement', 'Node', 'Response', 'Window'] }
|
2023-10-09 07:50:46 +05:30
|
|
|
|
|
|
|
[lints]
|
|
|
|
workspace = true
|