Skip to content

Commit

Permalink
fix(bootstrap): make it wasm compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
RolandSherwin committed Dec 5, 2024
1 parent f8bb46f commit d8f3ac7
Show file tree
Hide file tree
Showing 8 changed files with 65 additions and 211 deletions.
185 changes: 7 additions & 178 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 12 additions & 4 deletions ant-bootstrap/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,27 @@ ant-protocol = { version = "0.17.15", path = "../ant-protocol" }
chrono = { version = "0.4", features = ["serde"] }
clap = { version = "4.2.1", features = ["derive", "env"] }
dirs-next = "~2.0.0"
fs2 = "0.4.3"
futures = "0.3.30"
libp2p = { version = "0.54.1", features = ["serde"] }
reqwest = { version = "0.12.2", features = ["json"] }
reqwest = { version = "0.12.2", default-features = false, features = [
"rustls-tls-manual-roots",
] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tempfile = "3.8.1"
thiserror = "1.0"
tokio = { version = "1.0", features = ["full", "sync"] }
tokio = { version = "1.0", features = ["time"] }
tracing = "0.1"
url = "2.4.0"
# fs2 fails to compile on wasm32 target
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
fs2 = "0.4.3"


[dev-dependencies]
wiremock = "0.5"
tokio = { version = "1.0", features = ["full", "test-util"] }
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
tracing-subscriber = { version = "0.3", features = ["env-filter"] }

[target.'cfg(target_arch = "wasm32")'.dependencies]
wasmtimer = "0.2.0"
Loading

0 comments on commit d8f3ac7

Please sign in to comment.