Skip to content

Commit

Permalink
WIP feat(wasm): make it runnable in a browser
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-melnychuk committed Jun 26, 2024
1 parent f21b8ad commit 40d685a
Show file tree
Hide file tree
Showing 12 changed files with 1,389 additions and 15 deletions.
17 changes: 17 additions & 0 deletions Cargo.lock

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

9 changes: 7 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ edition = "2021"
name = "beerus"
version = "0.5.0"

[lib]
crate-type = ["cdylib"]
## TODO: split into separate crate?
## 'cdylib' type is required for building a WebAssembly library
## wasm-pack build --release --target web --no-default-features
#[lib]
#crate-type = ["cdylib"]

[features]
default = ["rpc", "blockifier"]
Expand Down Expand Up @@ -64,6 +67,8 @@ clap = { version = "4.5.7", features = ["derive"] }
wiremock = "0.6.0"

[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-timer = "0.2.5"
web-sys = "0.3.69"
wasm-bindgen = "0.2.92"
wasm-bindgen-futures = "0.4.37"
reqwest = { version = "0.12.3", default-features = false, features = [
Expand Down
Loading

0 comments on commit 40d685a

Please sign in to comment.