Skip to content

Commit

Permalink
Test configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
surban committed Dec 18, 2024
1 parent 15fe182 commit 93117cc
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[target.wasm32-unknown-unknown]
runner = "wasm-bindgen-test-runner"
runner = "cargo run --release --quiet --manifest-path /data/surban/dev/rust-wasi-web/wasm-bindgen/crates/cli/Cargo.toml --bin wasm-bindgen-test-runner --"
#runner = "wasm-bindgen-test-runner"

[target.wasm32-wasip1]
runner = "wasmtime -S inherit-env"
Expand Down
9 changes: 6 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"files.exclude": {
"target": true,
},
"cSpell.languageSettings": [
{
"languageId": "rust",
Expand Down Expand Up @@ -47,8 +50,8 @@
"codec-ciborium",
"codec-json",
"codec-message-pack",
"codec-postcard"
"codec-postcard",
"js",
],

"rust-analyzer.cargo.target": "wasm32-wasip1-threads"
"rust-analyzer.cargo.target": "wasm32-unknown-unknown"
}
16 changes: 16 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,19 @@ authors = [
resolver = "2"
members = ["remoc", "remoc_macro"]
exclude = ["examples"]


[patch.crates-io]
tokio = { git = "https://github.com/surban/tokio.git", branch = "fix/wasm-park" }

# js-sys = { git = "https://github.com/rust-wasi-web/wasm-bindgen.git" }
# web-sys = { git = "https://github.com/rust-wasi-web/wasm-bindgen.git" }
# wasm-bindgen = { git = "https://github.com/rust-wasi-web/wasm-bindgen.git" }
# wasm-bindgen-futures = { git = "https://github.com/rust-wasi-web/wasm-bindgen.git" }
# wasm-bindgen-test = { git = "https://github.com/rust-wasi-web/wasm-bindgen.git" }

js-sys = { path = "/data/surban/dev/rust-wasi-web/wasm-bindgen/crates/js-sys" }
web-sys = { path = "/data/surban/dev/rust-wasi-web/wasm-bindgen/crates/web-sys" }
wasm-bindgen = { path = "/data/surban/dev/rust-wasi-web/wasm-bindgen" }
wasm-bindgen-futures = { path = "/data/surban/dev/rust-wasi-web/wasm-bindgen/crates/futures" }
wasm-bindgen-test = { path = "/data/surban/dev/rust-wasi-web/wasm-bindgen/crates/test" }

0 comments on commit 93117cc

Please sign in to comment.