From 93117ccee67d55a1a66ccb6fa4d0990e36325267 Mon Sep 17 00:00:00 2001 From: Sebastian Urban Date: Wed, 18 Dec 2024 22:19:07 +0100 Subject: [PATCH] Test configuration --- .cargo/config.toml | 3 ++- .vscode/settings.json | 9 ++++++--- Cargo.toml | 16 ++++++++++++++++ 3 files changed, 24 insertions(+), 4 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index 8056c1b..073635a 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -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" diff --git a/.vscode/settings.json b/.vscode/settings.json index b6560cb..6b34dc7 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,7 @@ { + "files.exclude": { + "target": true, + }, "cSpell.languageSettings": [ { "languageId": "rust", @@ -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" } \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index aeb1c1a..919907b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" } \ No newline at end of file