instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
wasm-bindgen__wasm-bindgen__4152
wasm-bindgen/wasm-bindgen
4,152
defect
e575aba1ef8b7595feb88fdefc9567a2c48a3a54
23acd75dd538d02af5555add1c044a3cc578637d
Add support for C-style enums with implicit discriminants
fixes #2273 Changes: 1. Allow implicit discriminant by using the same algorithm as rustc. This behavior is [explicitly documented](https://doc.rust-lang.org/reference/items/enumerations.html#implicit-discriminants) and guaranteed by the compiler. 2. Simpler algorithm for finding holes. ### 1. Implicit discrimin...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f8fecd34af1..576627d73c39 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,9 @@ * Added `unsupported` crate to `wasm_bindgen_test(unsupported = test)` as a way of running tests on non-Wasm targets as well. [#4150](https://github.com/rustwasm/wasm-bindgen/pull...
2
2
1
[{"id": "G0", "claim": "The hole-finding code can output u32::MAX as the hole even when a variant already uses u32::MAX, and since this is practically impossible, the fallback should be removed in favor of unwrapping (via unwrap()/expect()).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope"...
null
wasm-bindgen__wasm-bindgen__4178
wasm-bindgen/wasm-bindgen
4,178
defect
3a8da7cb8842d4cb9918871179b6b7d3c77df5a0
d1da723de1a3ded7c955f5c50d5e1c235cbb0cba
Fixed methods with `self: &Self` consuming the object
fixes #3958 Rust allows type annotations for the `self` parameter, so it can have many forms. E.g. `self`, `&self`, `&mut self`, `self: &Self`, `self: Self`, `self: Box<Self>`, etc. Wasm bindgen needs to know whether a value is consumed (pass by value) or referenced to generate the correct JS shim. Previously, th...
diff --git a/crates/cli/tests/reference/self-type.d.ts b/crates/cli/tests/reference/self-type.d.ts new file mode 100644 index 000000000000..b2e2f6e7f85f --- /dev/null +++ b/crates/cli/tests/reference/self-type.d.ts @@ -0,0 +1,12 @@ +/* tslint:disable */ +/* eslint-disable */ +export class Test { + free(): void; + con...
1
1
0
[{"id": "G0", "claim": "The pull request is just missing a changelog entry.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
wasm-bindgen__wasm-bindgen__4204
wasm-bindgen/wasm-bindgen
4,204
defect
76776ef54cce17f1c7442b010e26d7eadaea3cd0
6cd6656ad1ff8f1a6d20ce4a5425294bf460176b
Add support for enums with negative discriminants
fixes #2313 This adds support for enums with negative discriminants and slightly improves error messages. Honestly, implementing this was pretty simple. I don't have too much to say about this, just a few notes on implementation details: 1. Within the serialized data for ASTs and descriptors, variants are stil...
diff --git a/CHANGELOG.md b/CHANGELOG.md index fd9e743e065c..d8519a951ca7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,9 @@ * Added JSDoc type annotations to C-style enums. [#4192](https://github.com/rustwasm/wasm-bindgen/pull/4192) +* Added support for C-style enums with negative discriminants. + [...
3
2
0
[{"id": "G0", "claim": "The `as` conversions on `#hole` in the generated `is_none`/`none` impls (e.g. `*val == #hole as #underlying` and `fn none() -> Self::Abi { #hole as #underlying }`) should not be necessary.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1...
null
wasm-bindgen__wasm-bindgen__4222
wasm-bindgen/wasm-bindgen
4,222
defect
76776ef54cce17f1c7442b010e26d7eadaea3cd0
f47fbcefdde3f5120feb38fa80f58e76a9aa043f
Add support for i128 and u128
Fixes #2822 This adds WASM ABI support for `i128` and `u128`. Both are split into 2 `u64` and passed as such in the ABI. The following types can now be used in argument and return positions: `i128`, `u128`, `Option<i128>`, and `Option<u128>`. Return positions can also use `Result<i128, E>` and `Result<u128, E>`....
diff --git a/crates/cli-support/src/descriptor.rs b/crates/cli-support/src/descriptor.rs index 5dec8d86d712..d1b129ed77a8 100644 --- a/crates/cli-support/src/descriptor.rs +++ b/crates/cli-support/src/descriptor.rs @@ -19,6 +19,8 @@ tys! { U32 I64 U64 + I128 + U128 F32 F64 BOOLEAN @@...
3
3
2
[{"id": "G0", "claim": "The switch to `0n` bigint literals in the generated JS may regress the issue #3164 fixed, so bigint literals should be avoided.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The 128-bit bound assertions could use hexadecimal...
null
wasm-bindgen__wasm-bindgen__4225
wasm-bindgen/wasm-bindgen
4,225
defect
f1d60abe8244eceff2d08d0e7e9b55b07a8b2e1f
78f50b8004e250cc99da106fe7bea44a1dcc3524
Fixed imports with late binding and `this`
Fixes #4214 The problem in #4214 was that function like `document.write` can't be imported as a function reference into WASM directly, because `document.write` does not capture the `this` argument (here `document`). Or in other words, there is a difference between: ```js export function __wbg_reload_90d82b22b83c...
diff --git a/crates/cli-support/src/js/mod.rs b/crates/cli-support/src/js/mod.rs index 5ab61f3c4bc4..aff91c6cfcc2 100644 --- a/crates/cli-support/src/js/mod.rs +++ b/crates/cli-support/src/js/mod.rs @@ -3062,6 +3062,21 @@ __wbg_set_wasm(wasm);" } } + if let JsImportName::Global { .. } | J...
1
1
0
[{"id": "G0", "claim": "The pull request is missing a changelog entry for its change.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
wasm-bindgen__wasm-bindgen__4229
wasm-bindgen/wasm-bindgen
4,229
defect
f1d60abe8244eceff2d08d0e7e9b55b07a8b2e1f
bf7becc55b228de737403ca4f8f37730c64e56a5
Improved TS type generation from WASM
This PR improves the TS generation for the WASM file and the `InitOutput` interface. Changes: - The type generation code is now shared between the 2 use cases with a single `module_export_types` function. `module_export_types` uses interior iteration to pass all name-type pairs to the respective function for format...
diff --git a/crates/cli-support/src/wasm2es6js.rs b/crates/cli-support/src/wasm2es6js.rs index bdf6f020f684..c16eb0a4504c 100644 --- a/crates/cli-support/src/wasm2es6js.rs +++ b/crates/cli-support/src/wasm2es6js.rs @@ -62,97 +62,94 @@ fn args_are_optional(name: &str) -> bool { pub fn interface(module: &Module) -> Re...
3
2
1
[{"id": "G0", "claim": "Integration tests should be added for the changed TS type generation.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "Ideally the internal wasm-bindgen functions should be identified and not exported as part of InitOutput, since t...
null
wasm-bindgen__wasm-bindgen__4269
wasm-bindgen/wasm-bindgen
4,269
defect
2a1c7acc295ad77d3fd36179a34b9573f724c7a1
e3de77d77b6e0162c1a4a8b4b06d45f89c998f97
Hash full signature for imported functions
Fixes #4268 The problem in #4268 was the short hash added to disambiguate imported functions only hashed the Rust identifier of the function. This is enough to ensure uniqueness within a single Rust module, but not across modules as in #4268. This resulted in 2 different wasm functions being exported under the same...
diff --git a/crates/cli/tests/reference/anyref-import-catch.js b/crates/cli/tests/reference/anyref-import-catch.js index b9a96c382b89..b3ebe329cc52 100644 --- a/crates/cli/tests/reference/anyref-import-catch.js +++ b/crates/cli/tests/reference/anyref-import-catch.js @@ -52,7 +52,7 @@ export function exported() { }...
2
1
1
[{"id": "G0", "claim": "Two imported functions with the same signature get the same hash, which may cause issues; the proposed remedy of also hashing the source code position to make collisions very unlikely is likely not possible outside of Rust nightly.", "category": "correctness", "verdict": "uncertain", "priority":...
null
wasm-bindgen__wasm-bindgen__4402
wasm-bindgen/wasm-bindgen
4,402
defect
c9ee617e9a63340bfba0cecd7d53ba5262f25ddc
a32bc1b2180182936b41b583fc26c8a928611a60
Add a deprecation notice about async constructors
Adds a deprecation attribute to the method marked as constructor if it is async. Appreciate suggestions on wording in the deprecation notice. Resolves #3976
diff --git a/crates/macro-support/src/parser.rs b/crates/macro-support/src/parser.rs index 46c76a1ef218..a10d823b3b3c 100644 --- a/crates/macro-support/src/parser.rs +++ b/crates/macro-support/src/parser.rs @@ -1418,6 +1418,11 @@ impl MacroParse<&ClassMarker> for &mut syn::ImplItemFn { FunctionPosition::Im...
3
3
2
[{"id": "G0", "claim": "Please add a test for the deprecation notice in crates/macro/ui-tests.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A changelog entry is missing for this pull request.", "category": "documentation", "verdict": "supported", "pri...
null
wasm-bindgen__wasm-bindgen__4564
wasm-bindgen/wasm-bindgen
4,564
defect
771e1f068706c141701a6de0413862e2dd9eb030
bdc08885af1fe7b8169113a2b047b7d62db5cf26
Deduplicate Closure invocation implementation
This is a branch I had lying around, just cleaned up. Basically, I noticed that owned closures (represented via `wasm_bindgen::Closure`) and closure conversions (bindings for `&dyn Fn()/FnMut()`) duplicated the infrastructure for their invocations, even though they're naturally doing exactly same thing. The only ...
diff --git a/crates/cli-support/src/descriptor.rs b/crates/cli-support/src/descriptor.rs index 59d92248ac93..c5244d5b5fc9 100644 --- a/crates/cli-support/src/descriptor.rs +++ b/crates/cli-support/src/descriptor.rs @@ -101,7 +101,6 @@ pub struct Function { #[derive(Debug, Clone, PartialEq, Eq, Hash)] pub struct Clo...
4
2
1
[{"id": "G0", "claim": "Keep using the REFMUT constant instead of raw 0/1 literals in the new Closure::decode match.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Setting the function table unconditionally may preserve the table (introduce an u...
null
wasm-bindgen__wasm-bindgen__4659
wasm-bindgen/wasm-bindgen
4,659
defect
6832c34d18ce3cd841f3f87f7e5b6417b47ca02b
c27c1ea9b8e1f8dab71b355b617a3d242ad1fecf
Added bindings for `WeakRef`
fix #4658
diff --git a/crates/js-sys/CHANGELOG.md b/crates/js-sys/CHANGELOG.md index 5a4de395eebe..5d7be0fbfb6c 100644 --- a/crates/js-sys/CHANGELOG.md +++ b/crates/js-sys/CHANGELOG.md @@ -2,6 +2,14 @@ -------------------------------------------------------------------------------- +## Unreleased + +### Added + +* Added bin...
1
1
0
[{"id": "G0", "claim": "The pull request adds its changelog entry to crates/js-sys/CHANGELOG.md, which may no longer be updated, and should instead update the CHANGELOG.md at the root of wasm-bindgen.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
wasm-bindgen__wasm-bindgen__4862
wasm-bindgen/wasm-bindgen
4,862
defect
ce43616e52926f6b7f786d606feb1c3282bc942a
bf8a8e6c53f18c6856a64164d8a08d43a311abe0
interpreter: support try_table blocks
Fixes #4861 ### Description <!-- Please describe the changes introduced by this PR. --> ### Checklist <!-- Please complete these checks before submitting the PR. --> <!-- **REQUIRED** for user-facing changes (new features, bug fixes, breaking changes). --> <!-- **NOT required** for internal refactoring or m...
diff --git a/crates/cli-support/Cargo.toml b/crates/cli-support/Cargo.toml index 812ee145082b..c40bc1e21e6d 100644 --- a/crates/cli-support/Cargo.toml +++ b/crates/cli-support/Cargo.toml @@ -27,9 +27,9 @@ wasmparser = "0.240" [dev-dependencies] rstest = "0.26" -wasmprinter = "0.240" -wast = "240" -wat = "1.0" +wasm...
2
1
0
[{"id": "G0", "claim": "The dev-dependency version bumps in crates/cli-support/Cargo.toml (wasmprinter, wast, wat) may be unnecessary; the reviewer asks whether they are needed.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A changelog entry is n...
null
wasm-bindgen__wasm-bindgen__4866
wasm-bindgen/wasm-bindgen
4,866
defect
06c78f0fb8aebb1d649037bbf9ab63df9335e8ef
ce613a75eb3a8501858f49d4c50698bdaa840820
Add codspeed and codecov cache
### Description <!-- Please describe the changes introduced by this PR. --> It will save some time. ### Checklist <!-- Please complete these checks before submitting the PR. --> <!-- **REQUIRED** for user-facing changes (new features, bug fixes, breaking changes). --> <!-- **NOT required** for internal refa...
diff --git a/.github/workflows/codspeed.yml b/.github/workflows/codspeed.yml index 338ecbd28bdc..8094f9835b72 100644 --- a/.github/workflows/codspeed.yml +++ b/.github/workflows/codspeed.yml @@ -30,6 +30,11 @@ jobs: - uses: actions/setup-node@v6 with: node-version: '25' + - uses: actions...
1
1
0
[{"id": "G0", "claim": "Consider whether the codspeed cache key (wbg_benchmark-${{ runner.arch }}) should also hash the engine-related source files, since it currently keys only on runner.arch so the target cache does not invalidate when they change.", "category": "design", "verdict": "supported", "priority": "P2", "sc...
null
wasm-bindgen__wasm-bindgen__4960
wasm-bindgen/wasm-bindgen
4,960
defect
ea01135ef3b764240a880ff46b2bf870ea0e4963
90603945d71d82234a9ec08a0216d256a72d4504
New headless pipeline
## Summary This is a refactor of the wasm-bindgen-test-runner browser headless logging subsystem that rolls up multiple very tightly-integrated improvements. Notably, this PR makes the runner logging >400x faster on chrome, >10x faster on firefox and almost 5x faster on safari on our single benchmark, and is subs...
diff --git a/crates/cli/src/wasm_bindgen_test_runner/headless.rs b/crates/cli/src/wasm_bindgen_test_runner/headless.rs index 2444f314dad6..66f6c7bb13e0 100644 --- a/crates/cli/src/wasm_bindgen_test_runner/headless.rs +++ b/crates/cli/src/wasm_bindgen_test_runner/headless.rs @@ -1,5 +1,5 @@ use super::shell::Shell; -us...
3
2
1
[{"id": "G0", "claim": "With WASM_BINDGEN_TEST_NO_STREAM enabled, running the tests in the browser produces no log output.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A CHANGELOG entry should be added for the new headless pipeline / WASM_BINDGEN_...
null
wasm-bindgen__wasm-bindgen__4977
wasm-bindgen/wasm-bindgen
4,977
defect
693c5430586ddf5ec9ab5652145417e07de2e769
fe82af15eb84f6d02194b8495a2d327d68de988e
fix: allow same js_name in different js_namespace for exports
### Description Previously, two exported structs (or enums/functions) using the same js_name but different js_namespace values would produce symbol collisions at compile time, because internal wasm symbols were derived from js_name alone. This fix introduces a 'qualified_name' concept (namespace_jsname when a n...
diff --git a/crates/cli-support/src/js/binding.rs b/crates/cli-support/src/js/binding.rs index 169d51c3db16..1869b16e3265 100644 --- a/crates/cli-support/src/js/binding.rs +++ b/crates/cli-support/src/js/binding.rs @@ -11,7 +11,7 @@ use crate::wit::{ Adapter, AdapterId, AdapterKind, AdapterType, AuxFunctionArgumen...
4
4
1
[{"id": "G0", "claim": "The qualified-name scheme renames several internal wasm symbols (e.g. __wbg_counter_free -> __wbg_default_counter_free) which in practice get used to work around various things, so this warrants a highlight in the changelog.", "category": "documentation", "verdict": "supported", "priority": "P2"...
null
wasm-bindgen__wasm-bindgen__5002
wasm-bindgen/wasm-bindgen
5,002
defect
8a96593177f8db9f480599780643ba8e1950b1d6
2a06e807caa302110ef3c842d7f9aaee56d4d621
feat: add support for `unchecked_optional_param_type`
### Description This PR implements support for optional parameter type annotations in TypeScript bindings via a new `unchecked_optional_param_type` attribute. **Motivation:** Currently, `wasm-bindgen` supports overriding parameter types via `#[wasm_bindgen(unchecked_param_type = "...")]`, but there is no way to ...
diff --git a/crates/cli-support/src/js/binding.rs b/crates/cli-support/src/js/binding.rs index bdc028b08cee..336c08a2665b 100644 --- a/crates/cli-support/src/js/binding.rs +++ b/crates/cli-support/src/js/binding.rs @@ -212,6 +212,7 @@ impl<'a, 'b> Builder<'a, 'b> { None => AuxFunctionArgumentData { ...
1
1
1
[{"id": "G0", "claim": "Add a check that a non-optional attribute cannot be used after an optional attribute, per standard optional validation.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
wasm-bindgen__wasm-bindgen__5005
wasm-bindgen/wasm-bindgen
5,005
defect
8a96593177f8db9f480599780643ba8e1950b1d6
b82369f48626e0aceda5602b4d3a91e2545c9fb0
Add termination detection for panic=unwind builds
I exported a `__instance_terminated` global from the Rust runtime. We set it if we catch an exception thrown out of wasm which is not wrapped in `__wbindgen_wrapped_jstag`. To check entering into wasm from JS we add `__wbg_termination_guard` JS function that checks the `__instance_terminated` flag and if it is set, ...
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6e1031baacfb..e6e9ab55e6de 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -182,24 +182,6 @@ jobs: node-version: '25' - run: cargo test --target wasm32-unknown-unknown -Zbuild-std --lib --bins --tests ...
3
2
0
[{"id": "G0", "claim": "Use `__instance_terminated.value` instead of the bare WebAssembly.Global when computing the terminated-flag index, in both the `__wbg_termination_guard` check and the `__wbg_handle_catch` store.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id":...
null
wasm-bindgen__wasm-bindgen__5033
wasm-bindgen/wasm-bindgen
5,033
defect
6b6aa1ca4732bfd8f2910745e32ba959c094c2ad
d148c73774249e950bd9e3fe0292e79cc4e0f985
Add Float16Array bindings
### Description Closes #4984 This adds `Float16Array` bindings to `js-sys`, along with `DataView::get_float16` / `set_float16`. Since Rust does not yet have a stable built-in `f16` type, this avoids adding direct `f16` conversions or a dependency on `half` for now. Instead, it adds the raw bindings, `u16` sli...
diff --git a/crates/js-sys/src/lib.rs b/crates/js-sys/src/lib.rs index 4ba73d1cfa86..e59249108b1c 100644 --- a/crates/js-sys/src/lib.rs +++ b/crates/js-sys/src/lib.rs @@ -3346,6 +3346,20 @@ extern "C" { #[wasm_bindgen(method, js_name = getFloat32)] pub fn get_float32_endian(this: &DataView, byte_offset: usize...
5
4
1
[{"id": "G0", "claim": "Deriving Float16Array from the existing TypedArray trait implies the atomic-op APIs that f16 does not have, adding ~18 always-trapping public methods the JS optimizer cannot strip; drewcrawford asks whether a separate atomic-array trait bound would be better, while noting f32/f64 share the same ...
null
wasm-bindgen__wasm-bindgen__5056
wasm-bindgen/wasm-bindgen
5,056
defect
98364582a9c6d02964a127586318e5518b163901
72210c703be6baea2de7eb55fdda95fb7f919333
macro: auto-inject MaybeUnwindSafe bound for &dyn Fn / &mut dyn FnMut import args
Implements automatic `MaybeUnwindSafe` enforcement for raw `&dyn Fn` / `&mut dyn FnMut` closure arguments in `#[wasm_bindgen]` imports, ensuring unwind safety when building with `panic=unwind` while remaining fully backward compatible on all other targets (where `MaybeUnwindSafe` has a blanket impl for all types). Whe...
diff --git a/crates/js-sys/src/futures/mod.rs b/crates/js-sys/src/futures/mod.rs index 0482f040ca1e..e5224c1fada9 100644 --- a/crates/js-sys/src/futures/mod.rs +++ b/crates/js-sys/src/futures/mod.rs @@ -284,8 +284,12 @@ pub fn future_to_promise<F>(future: F) -> Promise where F: Future<Output = Result<JsValue, JsV...
3
2
1
[{"id": "G0", "claim": "The macro should not make the generated signature more invasive by injecting hidden generic parameters (which change the generics list and, per the thread, would break `foo::<MyType>()` turbofish calls); emit the argument as `&(impl Fn(...) + MaybeUnwindSafe)` / `&mut (impl FnMut(...) + MaybeUnw...
null
wasm-bindgen__wasm-bindgen__5081
wasm-bindgen/wasm-bindgen
5,081
defect
d3c92fe4e8b596f586cc178983b5eb62b43fea2c
de82a990a3a8cfdceb1f1af8932f2af8a16a0f9f
feat: support multiple and private `#[wasm_bindgen(start)]` functions
Adds support for multiple start functions by chaining them together when registered, including an end-to-end CLI test to verify execution order. Also adds support for `#[wasm_bindgen(start, private)]` to declare private start functions which are not exported by the Wasm exports. This one implies a schema bump.
diff --git a/CHANGELOG.md b/CHANGELOG.md index 9539bd45a15b..466c0ca15ab9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,16 @@ ## Unreleased +### Added + +* Added support for multiple `#[wasm_bindgen(start)]` functions, which are + chained together at initialization. + [#5081](https://github.com/wasm-bi...
2
1
0
[{"id": "G0", "claim": "The new guide section on multiple start functions should mention that their execution order is arbitrary, since multiple start functions come with no ordering guarantees.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "With ...
null
wasm-bindgen__wasm-bindgen__5095
wasm-bindgen/wasm-bindgen
5,095
defect
d6c12bdf9ab295ee0feea8e85a605a8733179a58
e02f39a652b3f65a5c754a44ebabc4e619830c37
fix: use globals HashMap for all global access in descriptor interpreter
This simplifies the descriptor interpreter's global handling and fixes detection of `__stack_pointer` when it exists as a named global but isn't exported. Resolves #5093. The interpreter previously maintained a separate `sp` field and used a three-way dispatch in `GlobalGet`/`GlobalSet` (legacy fallback / stack pointe...
diff --git a/crates/cli-support/src/interpreter/mod.rs b/crates/cli-support/src/interpreter/mod.rs index ee990de1077e..4abc46537295 100644 --- a/crates/cli-support/src/interpreter/mod.rs +++ b/crates/cli-support/src/interpreter/mod.rs @@ -18,6 +18,7 @@ #![deny(missing_docs)] +use crate::wasm_conventions; use anyh...
4
4
1
[{"id": "G0", "claim": "The interpreter allocates a hardcoded 0x8000 memory size, and the reviewer asks why that value was chosen.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "The new comment says the stack pointer 'uses the same detection as the res...
null
wasm-bindgen__wasm-bindgen__5096
wasm-bindgen/wasm-bindgen
5,096
defect
5bd8fa90b6c4557cf439ada0637b6852fc33e843
078c3a0d6b7d05500aa0ad18833c8c0a178b2832
fix: handle lifetime params in codegen for generic extern types
Extern types declared with lifetime parameters (e.g. `pub type Foo<'a>`) produced invalid code in three places: * `From<JsValue>` impl was missing `impl_generics`/`ty_generics`/`where_clause`, so it emitted `impl From<JsValue> for Foo` instead of `impl<'a> From<JsValue> for Foo<'a>` * `UpcastFrom` identity impls for l...
diff --git a/crates/macro-support/src/codegen.rs b/crates/macro-support/src/codegen.rs index 3cc6c4a66310..b77c90a402a6 100644 --- a/crates/macro-support/src/codegen.rs +++ b/crates/macro-support/src/codegen.rs @@ -1021,10 +1021,27 @@ impl TryToTokens for ast::ImportType { let phantom; let phantom_i...
2
1
0
[{"id": "G0", "claim": "The two from_jsvalue generics variables are set to the same thing, so they could be collapsed into a single variable (or a clone) used for both instead of duplicating the construction.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1",...
null
wasm-bindgen__wasm-bindgen__5099
wasm-bindgen/wasm-bindgen
5,099
defect
a44bc043f1f894f6f65d6d063fcb2381ed15ea30
1647a34bbbc76d98a11819ab2942b4fc6003c074
feat: support schedule_reinit() under panic=abort builds
## Summary Previously `handler::schedule_reinit()` was a no-op under `panic=abort`. This extends it to work with both panic strategies. Under `panic=abort` there's no `__instance_terminated` flag or wasm-level catch wrappers, so the full abort detection machinery doesn't apply. But `schedule_reinit()` is independent ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index d85fd047ff60..68471e2ae0ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,11 @@ is now always a simple boolean (`0` = live, `1` = terminated). [#5083](https://github.com/wasm-bindgen/wasm-bindgen/pull/5083) +* `handler::schedule_reinit()` now works under...
4
4
0
[{"id": "G0", "claim": "Combine the `check_aborted` and `check_reinit` boolean parameters of `maybe_wrap_export_call` into an enum, since both being true is not an allowed state.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The (false, n) branch in `in...
null
wasm-bindgen__wasm-bindgen__5140
wasm-bindgen/wasm-bindgen
5,140
defect
778bd5cf5bee862e39ff62fd241d8919d1fe1ce3
502eda8d08f0057dc49f61319725bf1145f36d5b
Add js_sys::FinalizationRegistry bindings
## Summary Adds `js_sys::FinalizationRegistry` bindings, completing the pair with the existing `WeakRef` bindings. `FinalizationRegistry` (ES2021, all browsers / Node 14+) lets JS request a callback when a registered object is garbage-collected. The bindings: - `FinalizationRegistry` type, extending `Object`. - `Fin...
diff --git a/CHANGELOG.md b/CHANGELOG.md index a4dd3219dfde..e6b657c939d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ ### Added +* Added `js_sys::FinalizationRegistry` bindings (constructor, `register`, + `register_with_token`, and `unregister`). The cleanup callback parameter + is typed as `&F...
1
1
0
[{"id": "G0", "claim": "The doc comment on `FinalizationRegistry::register` refers to the `heldValue` argument, but the Rust parameter is named `held_value`, so the doc line should be reworded to `held_value`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
wasm-bindgen__wasm-bindgen__5145
wasm-bindgen/wasm-bindgen
5,145
defect
b75c754716518a8157ee50ab49dec050d5eb2e8f
5709768257c3cf81752f3afea492c33f82492236
Add slice_to_array attribute for plain-Array slice imports
This adds the `slice_to_array` attribute for imported JS functions, an opt-in per-fn or per-`extern "C"`-block that lets idiomatic `&[T]` arguments be used when binding JS APIs that take a plain `Array<T>` rather than a typed array. Idiomatic Rust uses `&[T]` for borrowed sequences. When binding a JS function that tak...
diff --git a/CHANGELOG.md b/CHANGELOG.md index e54c7410f226..a71be38e08b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,27 @@ ### Added +* Added the `slice_to_array` attribute for imported JS functions, + which makes a `&[T]` (or `Option<&[T]>`) argument arrive on the JS + side as a plain `Array` rathe...
2
1
0
[{"id": "G0", "claim": "The `.slice()` in the string/externref arm of `VectorLoadAsArray` looks like an unnecessary copy and should be dropped so the prelude is `var v{i} = {f}({ptr}, {len});`.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It is un...
null
wasm-bindgen__wasm-bindgen__5149
wasm-bindgen/wasm-bindgen
5,149
defect
e755d214947dcf5fc892333a3093d6ed98f4259e
40cc2117132b4a8caadacf6d4d850639d3e6701c
Loosen JsFuture<T> bound to support Promise<Union>
Minor patch on top of #4734. Imported `async fn` returning a dynamic-union enum (i.e. `Promise<Union>` resolution) failed to compile because `From<Promise<T>> for JsFuture<T>` required `T: JsGeneric`. `JsGeneric` demands `JsCast` + `AsRef<JsValue>` (layout equivalence with `JsValue`), which a tagged-enum union cannot s...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 7bbe88ea655c..d734ddf3d28d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -96,6 +96,13 @@ ### Fixed +* `From<Promise<T>> for JsFuture<T>` (and `IntoFuture for Promise<T>`) no + longer require `T: JsGeneric` — only `T: FromWasmAbi`. The closure + shim that materiali...
1
1
0
[{"id": "G0", "claim": "The comment added above `impl<T: FromWasmAbi + 'static> From<Promise<T>> for JsFuture<T>` should be removed or rewritten so it no longer explains itself in terms of the previous state of the code base.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduce...
null
wasm-bindgen__wasm-bindgen__5152
wasm-bindgen/wasm-bindgen
5,152
defect
49457f2db4465688cb597e9030ccfdefbd2b662e
b2e1f9860d47b84d499dc148d07e4eac586c5431
Fix CI for latest rustc nightly
This fixes CI on current nightly Rust (2026-05-06+) with two recent issues: 1. modern exception handling is now the default as of 2. atomics-flagged builds fail with `failed to find \`__heap_base\` for injecting thread id`. ### Use Node.js 24.15+ 22.22.3+ Node.js modern exception handling requires 22.22.3+ O...
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 157d90b46c41..7218636637c6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -132,7 +132,7 @@ jobs: - name: mvp rustflags: -Ctarget-cpu=mvp - name: atomics - rustflags: -Cta...
1
1
0
[{"id": "G0", "claim": "The changelog entry is filed under a `### Fixed` heading although nothing was fixed, and the reviewer suggests a heading like `Notice` instead.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
wasm-bindgen__wasm-pack__1291
wasm-bindgen/wasm-pack
1,291
defect
03261418eabf0004a2931a1fc7ca58d6c1559335
cf6b08852d8453d47248a91c4fd487d37a11691c
--no-pack flag
Update #695, which has been stale for a while. This is based on top of #1290, which should be merged first. Closes #695 (supersedes it) Fixes #691 Fixes #811 Make sure these boxes are checked! 📦✅ - [x] You have the latest version of `rustfmt` installed ```bash $ rustup component add rustfmt ``` - [...
diff --git a/src/command/build.rs b/src/command/build.rs index 75374ad1f..77a9eae96 100644 --- a/src/command/build.rs +++ b/src/command/build.rs @@ -31,6 +31,7 @@ pub struct Build { pub weak_refs: bool, pub reference_types: bool, pub target: Target, + pub no_pack: bool, pub profile: BuildProfile,...
1
1
0
[{"id": "G0", "claim": "The new --no-pack test should also check that readme and license files are not included (not generated), in one or several tests as the author prefers.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
wasm-bindgen__wasm-pack__283
wasm-bindgen/wasm-pack
283
defect
d0fc382c3c2ffd0d43c844d4a39a594312bbd39e
3e32b1cd8a6d1542d65afb62c6dd7baed6f66fe0
Add listing for precompiled Windows binaries
They're fixed on wasm-bindgen's CI, so let's download/install them!
diff --git a/src/bindgen.rs b/src/bindgen.rs index e8547c1cb..93c70f02e 100644 --- a/src/bindgen.rs +++ b/src/bindgen.rs @@ -99,12 +99,15 @@ fn curl(url: &str) -> Result<Vec<u8>, failure::Error> { pub fn download_prebuilt_wasm_bindgen(root_path: &Path, version: &str) -> Result<(), Error> { let linux = cfg!(target...
1
1
1
[{"id": "G0", "claim": "The tests in tests/all/bindgen.rs that are cfg'ed to run only where prebuilt binaries can be downloaded should be updated to also cover Windows, matching the new Windows download support.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
wasm-bindgen__wasm-pack__504
wasm-bindgen/wasm-pack
504
defect
67a2aac6d2162c5c5c7ed27f81e4e920d1c471f7
abb7d74432f72857c3bc4f61b0dae109a06d526c
More logging and assertions
Some logging and assertions to help us figure out what is going on with #503 when a `cargo install` isn't working right. I can't repro #503 anymore, but this should help us if we ever see it in the wild again :-/
diff --git a/binary-install/Cargo.toml b/binary-install/Cargo.toml index a14b484dd..b735cea28 100644 --- a/binary-install/Cargo.toml +++ b/binary-install/Cargo.toml @@ -14,6 +14,7 @@ dirs = "1.0.4" failure = "0.1.2" flate2 = "1.0.2" hex = "0.3" +is_executable = "0.1.2" siphasher = "0.2.3" tar = "0.4.16" zip = "0....
1
1
1
[{"id": "G0", "claim": "Download::at should propagate an error instead of panicking when the given path is not an executable file (reviewer slightly prefers error over panic).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
wasm-bindgen__wasm-pack__517
wasm-bindgen/wasm-pack
517
defect
a7e45d0755b2b50a7d113ada88756d36dc990d93
3fc5df8b7a6181051dc8f10b3dab8cc4f1d7e1b9
test(binaryinstall): Add initial tests
This PR will add some tests to the binary install crate. Please review even that it's WIP. I appreciate any comments what so ever.
diff --git a/.appveyor.yml b/.appveyor.yml index 58bb395e2..91ac60e14 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -17,6 +17,9 @@ build: false test_script: - cargo test --release --tests --locked - cargo test --release --doc + - cd binary-install + - cargo test + - cd .. before_deploy: - ps: | diff...
3
3
2
[{"id": "G0", "claim": "The added Travis steps end up formatting everything twice unnecessarily and re-run the test suite after cd-ing into binary-install; drop those steps and make the existing `cargo test` a `cargo test --all` instead.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introd...
null
wasm-bindgen__wasm-pack__567
wasm-bindgen/wasm-pack
567
defect
0c452156d138bf31b9267f55c1b33083337f3ad6
94405b52acac65c61dd7b57035f83c85b24fb42b
Add support for `--target web`
This commit adds support for the new `--web` flag in `wasm-bindgen` under the flag name `--target web`. To ensure that it was plubmed around the stringly-typed `target` type was switched to an `enum Target` to ensure that all cases it's looked at are handled appropriately for the new `web` target.
diff --git a/src/bindgen.rs b/src/bindgen.rs index 3d61df6f4..630ffecd6 100644 --- a/src/bindgen.rs +++ b/src/bindgen.rs @@ -2,7 +2,7 @@ use binary_install::{Cache, Download}; use child; -use command::build::BuildProfile; +use command::build::{BuildProfile, Target}; use emoji; use failure::{self, ResultExt}; use...
2
2
1
[{"id": "G0", "claim": "wasm-bindgen should perhaps deprecate the `--browser` flag and add a `--bundler` alias instead of having wasm-pack map Target::Bundler to `--browser`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The pull request must update t...
null
wasm-bindgen__wasm-pack__599
wasm-bindgen/wasm-pack
599
defect
ef745bfdcfebdd5b39907684217caee066eb18a3
f17e65954c255fadf0b9606ab5192154d84f7af7
Added support for --out-name flag
Closes #596 Should I also add tests for this feature?
diff --git a/docs/src/commands/build.md b/docs/src/commands/build.md index 00ab2e9a0..8058e1848 100644 --- a/docs/src/commands/build.md +++ b/docs/src/commands/build.md @@ -32,6 +32,16 @@ wasm-pack build --out-dir out The above command will put your build artifacts in a directory called `out`, instead of the default ...
4
4
1
[{"id": "G0", "claim": "The pull request adds the --out-name flag with no tests, and the maintainer asks that tests be added.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The docs section should add more info on exactly what files are outputted, what ...
null
wasm-bindgen__wasm-pack__624
wasm-bindgen/wasm-pack
624
defect
9423867595e7a4d7bac5c07cd5238ad6ced690d6
4b0383f4960c26fa17a257ac0e653a22c1c595fa
Recurse up the path looking for the Cargo.toml
PR for #620 Walk up parent directories to find the current crate When setting the crate path, if the default path of the current working directory is defined pass back a flag indicating the default was used If the default is used, and a path is not specified, then walk up the path to find the Cargo.toml file I'm...
diff --git a/src/command/build.rs b/src/command/build.rs index 79e3790c0..51af13050 100644 --- a/src/command/build.rs +++ b/src/command/build.rs @@ -193,8 +193,9 @@ type BuildStep = fn(&mut Build) -> Result<(), Error>; impl Build { /// Construct a build command from the given options. pub fn try_from_opts(bu...
1
1
0
[{"id": "G0", "claim": "The manifest-recurse logic should live in `set_crate_path` (renamed to *get* rather than *set*) so the API does not need a `bool` in the returned tuple nor a `bool` parameter.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
wasm-bindgen__wasm-pack__625
wasm-bindgen/wasm-pack
625
defect
9423867595e7a4d7bac5c07cd5238ad6ced690d6
427148de062736bae4c4d458bdaa812e598eab98
Add support for automatically executing `wasm-opt`
This commit adds support for automatically executing the `wasm-opt` binary from the [Binaryen project][binaryen]. By default `wasm-pack` will now, in release and profiling modes, execute `wasm-opt -O` over the final binary. The goal here is to enable optimizations that further reduce binary size or improve runtime....
diff --git a/docs/src/cargo-toml-configuration.md b/docs/src/cargo-toml-configuration.md index 5515ecb08..38414bb40 100644 --- a/docs/src/cargo-toml-configuration.md +++ b/docs/src/cargo-toml-configuration.md @@ -9,6 +9,17 @@ the `--dev`, `--profiling`, and `--release` flags passed to `wasm-pack build`. The available ...
5
2
0
[{"id": "G0", "claim": "The documented `wasm-opt` configuration omits the planned \"size\" and \"speed\" meta options from the original design, and the reviewer asks whether support for these is intended in follow-up PRs.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {...
null
wasm-bindgen__wasm-pack__687
wasm-bindgen/wasm-pack
687
defect
b4a4585af239f68c3b34223ea25bcc9edf68ee3d
03d6e5f6b7730c96439ded9ec53d52c55902a8d2
refactor(tool): wasm-opt is a tool variant
fixes #685 #781 #782
diff --git a/src/bindgen.rs b/src/bindgen.rs index 13da5904c..02d02dce7 100644 --- a/src/bindgen.rs +++ b/src/bindgen.rs @@ -1,10 +1,9 @@ //! Functionality related to running `wasm-bindgen`. -use binary_install::Download; use child; use command::build::{BuildProfile, Target}; use failure::{self, ResultExt}; -use ...
6
5
0
[{"id": "G0", "claim": "The fallback arm added in src/command/test.rs bails with the placeholder message \"bleh!!\" and should use a better error message.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The doc comment on the new Status::CannotInstal...
null
wasm-bindgen__wasm-pack__706
wasm-bindgen/wasm-pack
706
defect
439e523192676fb481b14a79ea88d03a953164e0
2facd176535d90d66c47b95a649a12f50aa69298
Select correct webdriver version
Closes #611 **Changes** - `webdriver.rs` split into `chromedriver.rs`, `geckodriver.rs` and `safaridriver.rs` for better code organization. - Functions `install_geckodriver` and `install_chromedriver` fetches info about the latest `*driver` version so they can find out if we are using the latest `*driver`. **Te...
diff --git a/src/test/webdriver.rs b/src/test/webdriver.rs index 8384bbefc..b9619e19d 100644 --- a/src/test/webdriver.rs +++ b/src/test/webdriver.rs @@ -1,12 +1,22 @@ //! Getting WebDriver client binaries. +mod chromedriver; +mod geckodriver; +mod safaridriver; + use binary_install::Cache; use failure; -use instal...
4
4
2
[{"id": "G0", "claim": "The driver version response should be decoded with a fallible from_utf8 (with context) so non-UTF-8 bytes fail loudly instead of being silently replaced, per the attached suggestion.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "clai...
null
wasm-bindgen__wasm-pack__839
wasm-bindgen/wasm-pack
839
defect
9209df9862a4198b092e37bf44f81be25b4aafc7
af9b8aca8f04256259980f7dc59a5ba27aa1a803
Corrected files included in package.json for bundler / no target (#837)
Make sure these boxes are checked! 📦✅ - [x] You have the latest version of `rustfmt` installed ```bash $ rustup component add rustfmt ``` - [x] You ran `cargo fmt` on the code base before submitting - [x] You reference which issue is being closed in the PR text ✨✨ 😄 Thanks so much for contributing to wasm-...
diff --git a/src/manifest/mod.rs b/src/manifest/mod.rs index 668541ac3..0dbb5d6fe 100644 --- a/src/manifest/mod.rs +++ b/src/manifest/mod.rs @@ -578,7 +578,7 @@ impl CrateData { fn npm_data( &self, scope: &Option<String>, - include_commonjs_shim: bool, + add_js_bg_to_package_json: b...
2
2
1
[{"id": "G0", "claim": "Only `to_esmodules` should pass `true` to `npm_data`; the line-737 call site and `to_commonjs` should pass `false`, so the extra `_bg.js` file is listed in package.json only for the bundler target.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"i...
null
wasmCloud__wasmCloud__2527
wasmCloud/wasmCloud
2,527
defect
e2f6b61f7850c0dd51af1b9d582f44ab8ead633e
53d6fed6ccadecb905a3914814c091de93523e0d
feat(wash-cli): check for wadm and wasmcloud patch version updates
## Feature or Problem <!--- Briefly describe the reason for this pull request: the feature being added or problem being solved. ---> Wouldn't it been nice if new crispy wadm and wasmcloud would be handy with new patch versions? Well that PR supposed to implement this. ## Related Issues <!--- Link to any iss...
diff --git a/crates/wash-cli/src/up/mod.rs b/crates/wash-cli/src/up/mod.rs index ae7de63cc2..9051a82ff5 100644 --- a/crates/wash-cli/src/up/mod.rs +++ b/crates/wash-cli/src/up/mod.rs @@ -17,7 +17,7 @@ use tokio::{ io::{AsyncBufReadExt, BufReader}, process::Child, }; -use tracing::warn; +use tracing::{debug, ...
13
9
4
[{"id": "G0", "claim": "Asks how the new integration test can verify the wadm version, since the test ends in a TODO and does not actually check that the specified wadm version was used.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Asks how the code c...
null
wasmCloud__wasmCloud__2920
wasmCloud/wasmCloud
2,920
defect
8a63e532b295e884e5e7f466115c856ce491ef0f
fd69cbd8d8921f2c7e559ab08d482d4008467c89
feat(wash-cli): Add ability to check and validate OCI image references in WADM manifests
## Feature or Problem <!--- Briefly describe the reason for this pull request: the feature being added or problem being solved. ---> ## Related Issues #2708 ## Release Information next ## Consumer Impact <!--- Indicate the impact, if any, this change will have on other consumers, dependencies, or depen...
diff --git a/Cargo.lock b/Cargo.lock index 46bb252931..4e01e5550a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6956,6 +6956,7 @@ dependencies = [ "wasm-encoder 0.216.0", "wasmcloud-control-interface 1.0.0", "wasmcloud-core 0.9.0", + "wasmcloud-host", "wasmparser 0.215.0", "wasmtime", "wasmtime-wasi", diff -...
7
7
2
[{"id": "G0", "claim": "The inline OCI fetch-and-report loop in validate_manifest_file could be split out into a `validate_oci_references(refs: Vec<String>)` helper.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Fetch failures should be printed with `ep...
null
wasmCloud__wasmCloud__2963
wasmCloud/wasmCloud
2,963
defect
c65d9cab4cc8917eedcad1672812bafad0311ee0
d6a9e5d3842dc3f38dd56dd85384554fb7e69bd6
fix(*): link uniqueness enforcement, deletes
## Feature or Problem This PR implements rejecting links with the same source ID, wit namespace/package, and link name but with different targets. This is a scenario that components cannot support, but some providers did support this. After this PR, if your provider supported links on the same interface to multiple...
diff --git a/crates/host/src/wasmbus/event.rs b/crates/host/src/wasmbus/event.rs index bb5d7c30a5..9e1be6617f 100644 --- a/crates/host/src/wasmbus/event.rs +++ b/crates/host/src/wasmbus/event.rs @@ -127,16 +127,31 @@ pub fn linkdef_set_failed( pub fn linkdef_deleted( source_id: impl AsRef<str>, + target: Opt...
1
1
0
[{"id": "G0", "claim": "The single-element special case for rendering interfaces is unnecessary, since l.interfaces.join(\",\") already yields the same result for a one-element list.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
wasmCloud__wasmCloud__2982
wasmCloud/wasmCloud
2,982
defect
fa875b259c57774c44840dd3a42fbdce8f6c0ef8
2a03dcaacf902fdb3557f4d91878599b04a4c73b
feat(bus)!: add checked set_link_name
## Feature or Problem This PR adds a new function to the `wasmcloud:bus/lattice` interface, `set_link_name_checked`, which will return an error if you attempt to override the default link name for a specific interface but a link doesn't exist. This will be useful at runtime for a component to be able to attempt to inv...
diff --git a/crates/component/wit/deps.lock b/crates/component/wit/deps.lock index 1be8b74ff7..f49b3d873d 100644 --- a/crates/component/wit/deps.lock +++ b/crates/component/wit/deps.lock @@ -60,5 +60,5 @@ sha512 = "5a63c1f36de0c4548e1d2297bdbededb28721cbad94ef7825c469eae29d7451c97e00b [wasmcloud] path = "../../../w...
7
6
2
[{"id": "G0", "claim": "The set_link_name_checked error message in crates/host/src/wasmbus/handler.rs should use inline format arguments instead of positional `{}` placeholders.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The added debug line...
null
wasmCloud__wasmCloud__2987
wasmCloud/wasmCloud
2,987
defect
fc7724c1f0c2046c1a3318477ce58731c3ae2fd6
1a83c122005205533c57150aa48fed865b87a2ac
fix(wash-cli): fix hot reloading for wash dev
## Feature or Problem <!--- Briefly describe the reason for this pull request: the feature being added or problem being solved. ---> This PR fixes building and hot-reload for `wash dev` -- it should merge after #2986 The *new* commit is https://github.com/wasmCloud/wasmCloud/pull/2987/commits/e605c0eedb41c15a...
diff --git a/crates/wash-cli/src/dev.rs b/crates/wash-cli/src/dev.rs index 1535445df8..d19bc02600 100644 --- a/crates/wash-cli/src/dev.rs +++ b/crates/wash-cli/src/dev.rs @@ -18,6 +18,8 @@ use serde::{Deserialize, Serialize}; use tokio::io::AsyncBufReadExt as _; use tokio::{select, sync::mpsc}; use wash_lib::app::Ap...
3
2
1
[{"id": "G0", "claim": "The 'The component under test' doc comment on the new component field is unclear and should say whether it is the component the dev loop is running for.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The exit cleanup should...
null
wasmCloud__wasmCloud__3014
wasmCloud/wasmCloud
3,014
defect
3ddf9d3176534bfd55ba9f2d029bd695e982996b
64a0bd9286f9c9ad96c9eb26c27d25accc9d816b
chore: update dependencies
## Feature or Problem <!--- Briefly describe the reason for this pull request: the feature being added or problem being solved. ---> Update dependencies, which fixes a vulnerability in one of our deps among other things (https://github.com/wasmCloud/wasmCloud/actions/runs/10875438557/job/30173908657?pr=3010) #...
diff --git a/Cargo.lock b/Cargo.lock index 147f24ac37..0131b9d576 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -24,14 +24,23 @@ version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6e4503c46a5c0c7844e948c9a4d6acd9f50cccb4de1c48eb9e291ea17470c678" dependencies = [ - "gimli", ...
1
1
0
[{"id": "G0", "claim": "The tracing subscriber initialization could drop the `let` binding since the value isn't used (e.g. `_ =`).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
wasmCloud__wasmCloud__3019
wasmCloud/wasmCloud
3,019
defect
3ddf9d3176534bfd55ba9f2d029bd695e982996b
c1e6d0460c03ec3c75dc8ecfba63f66fb6b9de04
feat(host): Adds support for batch support to the host
This enables keyvalue batch support inside of the host, along with a test to make sure it works. Not all of our providers implement batch yet, so this uses the Redis provider, which did have implementions. I did have to fix the redis provider to get the right type of data back and transform it. I also had to update our...
diff --git a/Cargo.lock b/Cargo.lock index 147f24ac37..b6ac86668f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6901,11 +6901,11 @@ dependencies = [ "wat", "weld-codegen", "which", - "wit-bindgen-wrpc 0.6.4", + "wit-bindgen-wrpc 0.6.5", "wit-parser 0.215.0", "wrpc-interface-http", - "wrpc-transport 0.26.7", - ...
2
1
0
[{"id": "G0", "claim": "Asks why the redis provider's get_many handler was reworked to fetch the data and zip it with the passed-in keys.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "`k` in the get_many result mapping is already a `String`, so the `.to...
null
wasmCloud__wasmCloud__3061
wasmCloud/wasmCloud
3,061
defect
abc66dd411c4dcce4d419456749b81aba4308157
3f02fa08f1daae7311fefa8dc2a60b71d59650ca
feat(wash-cli): enable undeploying and deleting multiple apps
This commit enables wash to: - Undeploy all applications at the same time - Delete all undeployed applications The combination of `wash app undeploy --all` and `wash app delete --all-undeployed` are meant to be used to gether in order to clear all apps in a given lattice. ## Feature or Problem <!--- Briefly...
diff --git a/crates/wash-cli/src/app/mod.rs b/crates/wash-cli/src/app/mod.rs index 13d23b5a14..e0bafddb66 100644 --- a/crates/wash-cli/src/app/mod.rs +++ b/crates/wash-cli/src/app/mod.rs @@ -67,10 +67,14 @@ pub struct ListCommand { pub struct UndeployCommand { /// Name of the application to undeploy #[clap(n...
3
2
2
[{"id": "G0", "claim": "A clap validator (e.g. required_if_eq / required_unless_present) should ensure app_name is supplied when --all (undeploy) or --all-undeployed (delete) is not present, since the change made app_name optional on both commands.", "category": "correctness", "verdict": "supported", "priority": "P1", ...
null
wasmCloud__wasmCloud__3182
wasmCloud/wasmCloud
3,182
defect
a59d6ef3ec76d6c682b4e69195abf3afcb343850
4e915fd54a20924a56d5c244ffdcd8eab11ef2a5
feat(wash-lib, wash-cli): support overriding manifest via project config
## Feature or Problem <!--- Briefly describe the reason for this pull request: the feature being added or problem being solved. ---> ## Related Issues <!--- Link to any issues or correlated pull requests that are related to this PR. For example, if this PR fixes an issue, link to that issue here. ---> ## R...
diff --git a/crates/wash-cli/src/dev.rs b/crates/wash-cli/src/dev.rs index e9deb48a14..a7a7ec6147 100644 --- a/crates/wash-cli/src/dev.rs +++ b/crates/wash-cli/src/dev.rs @@ -1,5 +1,6 @@ use std::collections::{BTreeMap, BTreeSet, HashMap}; use std::fs::OpenOptions; +use std::hash::Hash; use std::io::Read; use std::...
2
1
0
[{"id": "G0", "claim": "Creating the manifest output directory automatically for the user (instead of failing when it does not exist) would be a nicer experience.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The TODOs left in dev.rs should either be capt...
null
wasmCloud__wasmCloud__3217
wasmCloud/wasmCloud
3,217
defect
646663cf7cc846decd78f345c5b555c382a1da22
0457279c4f1c0c0bbe48f678a41313443dec4127
feat: Tinygo scheduler & garbage collection overrides
Changes to wasmcloud.toml as per #3216 ``` [tinygo] scheduler = none | tasks | asyncify garbage_collector = none | conservative | leaking ```
diff --git a/crates/wash-lib/src/build/component.rs b/crates/wash-lib/src/build/component.rs index cac5a2d1b0..c9fccb3eff 100644 --- a/crates/wash-lib/src/build/component.rs +++ b/crates/wash-lib/src/build/component.rs @@ -297,7 +297,8 @@ async fn build_tinygo_component( "-no-debug", ".", ...
3
2
1
[{"id": "G0", "claim": "The scheduler field's doc comment should be split into a first-line summary followed by a blank `///` line so docs.rs renders the summary.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The scheduler and garbage collector c...
null
wasmCloud__wasmCloud__3424
wasmCloud/wasmCloud
3,424
defect
c50884ac5e7ca8c58bb8a14ef499b0e4ee7d0530
333ba5ec89bf3a959aac825e2aeec2ca5d7d5c2e
fix: Only run wkg if 'deps.toml' is not present
When using wash 0.36 with wrpc, we get an error: ``` ❯ wash build failed to build provider Caused by: 0: failed to load lock file 1: unable to parse lock file from path 2: TOML parse error at line 1, column 1 | 1 | | ^ missing field `version` ``` This PR c...
diff --git a/crates/wash-lib/src/build/mod.rs b/crates/wash-lib/src/build/mod.rs index b5298b1c2c..faf1f5faac 100644 --- a/crates/wash-lib/src/build/mod.rs +++ b/crates/wash-lib/src/build/mod.rs @@ -108,7 +108,15 @@ pub async fn build_project( package_args: &CommonPackageArgs, skip_fetch: bool, ) -> Result<P...
3
2
0
[{"id": "G0", "claim": "The skip message should be emitted with eprintln! instead of info! so users actually see it.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The \"deps.toml\" string literal should be extracted into a named constant used in th...
null
wasmCloud__wasmCloud__3431
wasmCloud/wasmCloud
3,431
defect
4a2b3ec0e9714e3cb4464a8373fbb76b85e79cab
041a1f98ac75799ac7edbf1f20344bfb45d62d63
chore(wash-cli): deprecate wash app list in favor of wash app get
## Feature or Problem <!--- Briefly describe the reason for this pull request: the feature being added or problem being solved. ---> Duplicating the functionality of `wash app list` and `wash app get` (without app_name specification) commands. ## Related Issues <!--- Link to any issues or correlated pull re...
diff --git a/crates/wash-cli/src/app/mod.rs b/crates/wash-cli/src/app/mod.rs index 3488ea138e..c7932caa1c 100644 --- a/crates/wash-cli/src/app/mod.rs +++ b/crates/wash-cli/src/app/mod.rs @@ -10,7 +10,6 @@ use wadm_client::Result; use wadm_types::api::ModelSummary; use wadm_types::validation::{ValidationFailure, Valid...
3
3
2
[{"id": "G0", "claim": "The new `wash app get` syntax (retrieving without an app name, as added by this PR) may not be covered by tests, and a test case for it should be added if there is none.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The list fun...
null
wasmCloud__wasmCloud__3444
wasmCloud/wasmCloud
3,444
defect
8f90bf801427f22baf92450a3f649eabaf6ed0bf
a0f402efdcf4c85c455372c4e8688cdaecb9703c
feat(component): add `http` crate integration
## Feature or Problem <!--- Briefly describe the reason for this pull request: the feature being added or problem being solved. ---> - Ported over most of https://github.com/bytecodealliance/wasi-rs/pull/90 - Adapted a few things from https://github.com/wrpc/http/blob/dbc6a6ba307ef9f53e175da9982c5a757d1a7eaa/src...
diff --git a/Cargo.lock b/Cargo.lock index 97ed130181..4938331166 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8560,7 +8560,9 @@ dependencies = [ name = "wasmcloud-component" version = "0.2.0" dependencies = [ + "anyhow", "futures", + "http 1.1.0", "rand 0.8.5", "tokio", "uuid 1.11.0", diff --git a/crates/co...
4
3
3
[{"id": "G0", "claim": "The `Server::handle` trait's return type should be changed to match the doc comment example, returning the crate's `http::Response` instead of `Result<Response<impl OutgoingBody>, ErrorCode>`.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "c...
null
wasmCloud__wasmCloud__3698
wasmCloud/wasmCloud
3,698
defect
13e0053c19bec4d6775dabc816d068ec1911a0cf
4dfb489230cb4f33d8026ed3b158cc89faa0e432
feat(wash-cli): enable purging all links
## Feature or Problem <!--- Briefly describe the reason for this pull request: the feature being added or problem being solved. ---> ## Related Issues <!--- Link to any issues or correlated pull requests that are related to this PR. For example, if this PR fixes an issue, link to that issue here. ---> ## R...
diff --git a/crates/wash-cli/src/bin/wash.rs b/crates/wash-cli/src/bin/wash.rs index 755d846623..8759cdb96f 100644 --- a/crates/wash-cli/src/bin/wash.rs +++ b/crates/wash-cli/src/bin/wash.rs @@ -27,6 +27,7 @@ use wash_cli::build::{self, BuildCommand}; use wash_cli::call::{self, CallCli}; use wash_cli::cmd::config::{s...
3
3
2
[{"id": "G0", "claim": "The delete-all confirmation prompt should read \"Are you sure you want to delete all links in the cluster? (this action cannot be reversed)\" instead of \"iteratively delete all links\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1",...
null
wasmCloud__wasmCloud__3924
wasmCloud/wasmCloud
3,924
defect
b1b03bfd5669fe5a7de2bd5b134d61c91e8d8bd0
3e19e9d5718f9328faf209fab346fc50a8a1bddb
feat(host): builtin http-server path routing
## Feature or Problem This PR refactors the builtin HTTP server for code reuse and adds an implementation for path-based routing. This uses the same link configuration and handling code as the native binary HTTP server and should be a drop-in replacement for path-based application yamls. ## Related Issues Fixes #3...
diff --git a/crates/host/src/wasmbus/providers/http_server.rs b/crates/host/src/wasmbus/providers/http_server/address.rs similarity index 51% rename from crates/host/src/wasmbus/providers/http_server.rs rename to crates/host/src/wasmbus/providers/http_server/address.rs index 11d92105db..369748bc79 100644 --- a/crates/h...
6
3
1
[{"id": "G0", "claim": "The refactor from JoinSet to JoinHandle/abort leaves the builtin http-server leaking its listener task: the address-based server stores a bare JoinHandle in the links map that nothing cleans up, and the path-based server's shutdown aborts the task with no guarantee delete_link_as_source runs, so...
null
wasmCloud__wasmCloud__3964
wasmCloud/wasmCloud
3,964
defect
27266a01c561b48d6c85a7a5299fbc6ac2c6144d
44944f95eff7a9f07d19fe7ee438bacf69d8a38e
fix(wash-cli): ensure correct output format used for version
## Feature or Problem <!--- Briefly describe the reason for this pull request: the feature being added or problem being solved. ---> Ensures that the correct output format is used for the wash-cli version flag. ## Related Issues <!--- Link to any issues or correlated pull requests that are related to this PR....
diff --git a/crates/wash-cli/src/bin/wash.rs b/crates/wash-cli/src/bin/wash.rs index ad103dba5b..edd238c4e5 100644 --- a/crates/wash-cli/src/bin/wash.rs +++ b/crates/wash-cli/src/bin/wash.rs @@ -223,18 +223,29 @@ ________________________________________________________________________________ } /// Helper function ...
4
3
0
[{"id": "G0", "claim": "The help should be rendered lazily — defer render_help() until the command unwrap fails in the unwrap_or_else closure, instead of eagerly building the help text before argument parsing.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "c...
null
wasmCloud__wasmCloud__4221
wasmCloud/wasmCloud
4,221
defect
b0c97cee60957a70693667aedd63a571bef4617b
a4d6cd1ce8489946a47afda558c625d9697c5c7f
feat(host): builtin http host routing
## Feature or Problem This PR adapts the changes in #4213 to allow for host routing in the builtin provider, along with associated tests. ## Related Issues #4213 ## Release Information next wasmCloud ## Consumer Impact <!--- Indicate the impact, if any, this change will have on other consumers, dependencies, or depe...
diff --git a/crates/host/src/wasmbus/providers/http_server/host.rs b/crates/host/src/wasmbus/providers/http_server/host.rs new file mode 100644 index 0000000000..f008406cbe --- /dev/null +++ b/crates/host/src/wasmbus/providers/http_server/host.rs @@ -0,0 +1,413 @@ +use core::net::SocketAddr; + +use std::collections::Ha...
2
2
1
[{"id": "G0", "claim": "put_link should only bail when the already-registered host/component differs from the incoming one (e.g. router.components.get(&key).map(|val| val != host).unwrap_or(false)) so a duplicate delivery of the same link does not throw an error.", "category": "correctness", "verdict": "supported", "pr...
null
wasmCloud__wasmCloud__4293
wasmCloud/wasmCloud
4,293
defect
68c048f8ac90efe33805fe019cdd90d43bd9b538
98e9e0ceefc4392651ca49562ff46ade72b5dc85
Fix(wash)=disallow overriding hostcore labels
## Feature or Problem <!--- Briefly describe the reason for this pull request: the feature being added or problem being solved. ---> Resolves #4234 ## Related Issues <!--- Link to any issues or correlated pull requests that are related to this PR. For example, if this PR fixes an issue, link to that issue ...
diff --git a/crates/host/src/wasmbus/ctl.rs b/crates/host/src/wasmbus/ctl.rs index 7bff653744..d2bf96384b 100644 --- a/crates/host/src/wasmbus/ctl.rs +++ b/crates/host/src/wasmbus/ctl.rs @@ -667,6 +667,10 @@ impl ControlInterfaceServer for Host { host_id: &str, ) -> anyhow::Result<CtlResponse<()>> { ...
1
1
0
[{"id": "G0", "claim": "Switch this whole test block to use the `wash_instance.wash_cmd()` helper (which takes care of setting the ctl port and other stuff) instead of building the wash Command manually.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
wasmCloud__wasmCloud__4325
wasmCloud/wasmCloud
4,325
defect
6cfc9180ad94ecffcb8937fcc1c17169f0f11676
e1d333ba2b21da9b7d70dd8cdec8e866c36a781d
[feat] Add semver updates to wash
## Feature or Problem - **feat(wash): check for semver compatible versions of tools** checks the github releases for a tool and checks if the version is semver compatible with the current version - **feat(wash): check for updated versions of washboard** adds the same version check for washboard as well - **feat(...
diff --git a/crates/wash/src/cli/cmd/up.rs b/crates/wash/src/cli/cmd/up.rs index 3e7a869374..a0ee732547 100644 --- a/crates/wash/src/cli/cmd/up.rs +++ b/crates/wash/src/cli/cmd/up.rs @@ -9,8 +9,8 @@ use crate::lib::context::ContextManager; use crate::lib::generate::emoji; use crate::lib::start::{ ensure_nats_ser...
1
1
1
[{"id": "G0", "claim": "new_minor_version_compatible_with_version_string should strip the leading 'v' from version_string before parsing it, since parsing a 'v'-prefixed version string (as callers pass) panics and caused the linked CI failure.", "category": "correctness", "verdict": "supported", "priority": "P1", "scop...
null
wasmCloud__wasmCloud__4356
wasmCloud/wasmCloud
4,356
defect
819b47274259e9ff150dcefdd3494b228a7a1583
2f1760611385903f81512e707b920354610af7fb
feat(wash): allow setting link_config via wash dev overrides
This commit enables setting link config (ex. for the HTTP server) component when setting overrides for generated components. Component in this sense means a WADM component -- an element used in a WADM manifest (either a provider or wasm component or whatever else). Up until now `config` has been settable, but thi...
diff --git a/crates/wash/src/cli/cmd/dev/deps.rs b/crates/wash/src/cli/cmd/dev/deps.rs index 5568c6d7c6..bbc7402e58 100644 --- a/crates/wash/src/cli/cmd/dev/deps.rs +++ b/crates/wash/src/cli/cmd/dev/deps.rs @@ -6,14 +6,14 @@ use anyhow::{bail, Context as _, Result}; use semver::Version; use tracing::{debug, trace}; ...
1
1
1
[{"id": "G0", "claim": "Link configuration was always inserted on the link's source, and it is unclear which side of the link should receive the config for a receiving dependency.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
wasmCloud__wasmCloud__4558
wasmCloud/wasmCloud
4,558
defect
f7a2d2f8ad848788fc0e9402036de986399e3a31
94f43f77ce96e0239f689958ff1e35ac22fcc4b5
replace use of `~/.wash` with XDG Base Directory Specification
## Feature or Problem The current implementation does not really respect best practices on where data should be stored (whether config data, cache data, runtime data, etc). This is an attempt to support best practices using XDG directories on Linux and Mac, and using the standard Windows scheme on Windows. This also...
diff --git a/crates/wash/src/bin/wash.rs b/crates/wash/src/bin/wash.rs index 9211e197e5..390e698cff 100644 --- a/crates/wash/src/bin/wash.rs +++ b/crates/wash/src/bin/wash.rs @@ -23,6 +23,7 @@ use wash::lib::cli::start::StartCommand; use wash::lib::cli::stop::StopCommand; use wash::lib::cli::update::UpdateCommand; u...
6
3
0
[{"id": "G0", "claim": "Logs (for instance launch.log) are not actually written into the new logs directory, so that part of the directory migration is still missing.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Per XDG the logs should live under ...
null
wasmerio__wasmer-go__169
wasmerio/wasmer-go
169
defect
10c11f8b8423f152910bfb5250787a15f8421390
409c8c8ea57ccf2a95f7fed58e4f3de2a134e9ec
feat: Allow setting the engine and compiler and the configuration
Closes #104
diff --git a/wasmer/config.go b/wasmer/config.go new file mode 100644 index 00000000..ed840387 --- /dev/null +++ b/wasmer/config.go @@ -0,0 +1,60 @@ +package wasmer + +// #include <wasmer_wasm.h> +import "C" + +type Config struct { + _inner *C.wasm_config_t +} + +// NewConfig instantiates and returns a new Config. +// ...
2
1
1
[{"id": "G0", "claim": "In wasmer/config.go the doc comment above UseLLVMCompiler mentions the Singlepass compiler, so either a UseSinglepassCompiler method is missing or the doc comment is wrong.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "It ...
null
wasmerio__wasmer-go__189
wasmerio/wasmer-go
189
defect
0316d3fbc3176cd1823f8f706064644b670459b2
4bfacc815a49863cb89991b62ed89153571f18cd
fix(wasi): Export WasiEnvironment methods
Additionaly adds a GenerateWasiImportObject helper function.
diff --git a/wasmer/wasi.go b/wasmer/wasi.go index 82daed4f..c41d354b 100644 --- a/wasmer/wasi.go +++ b/wasmer/wasi.go @@ -102,7 +102,7 @@ func NewWasiStateBuilder(programName string) *WasiStateBuilder { return stateBuilder } -func (self *WasiStateBuilder) argument(argument string) *WasiStateBuilder { +func (self ...
1
1
1
[{"id": "G0", "claim": "The GenerateWasiImportObject shortcut helper added to wasmer/wasi.go is not necessary for the moment and should be removed from the pull request.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
wasmerio__wasmer-go__331
wasmerio/wasmer-go
331
defect
a83cf8c76f1b8e85403bdb7a9fe7852863340d7c
bf7d9742484cd05fcc9f39dbcbf1a4a0a3275a94
Enable basic metering using a map of static cost data
We really need to implement metering in our implementation and I thought this might be useful in general for all wasmer-go.
diff --git a/wasmer/config.go b/wasmer/config.go index 3fd2cc2a..fb9f9e64 100644 --- a/wasmer/config.go +++ b/wasmer/config.go @@ -1,6 +1,7 @@ package wasmer // #include <wasmer.h> +// extern uint64_t metering_delegate(enum wasmer_parser_operator_t op); import "C" // CompilerKind represents the possible compile...
4
3
0
[{"id": "G0", "claim": "Rename PushMiddleware to PushMeteringMiddleware, since it is specifically for metering.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use a proper Opcode enum type instead of raw uint32/int32 opcodes in the metering API.", "categ...
null
wasmerio__wasmer-java__12
wasmerio/wasmer-java
12
defect
18147b3e01b82da20a4b00bfb0808948636c7718
07edd060d7b55ed613f4c0954853d866f0086e43
feat: Implement a basic memory API
Close #2 (Edit Feb. 3rd) In this PR, users can read/write `Memory` which can be gotten via `instance.memories.get(<exported_memory_name>)`. The read/write API is here: Read: ```java Memory memory = instance.memories.get("memory"); byte[] data = memory.read(0, 5); ``` Write: ```java Memory memory = i...
diff --git a/include/org_wasmer_Instance.h b/include/org_wasmer_Instance.h index 6bbb705..011be20 100644 --- a/include/org_wasmer_Instance.h +++ b/include/org_wasmer_Instance.h @@ -23,6 +23,14 @@ JNIEXPORT jlong JNICALL Java_org_wasmer_Instance_nativeInstantiate JNIEXPORT void JNICALL Java_org_wasmer_Instance_nativeDr...
8
6
3
[{"id": "G0", "claim": "Since a module can have multiple memories, Instance should expose them as a name-keyed map such as `public final HashMap<String, Memory> memories;` instead of a single `memory` field.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ...
null
wasmerio__wasmer__2397
wasmerio/wasmer
2,397
defect
4d800ec15d3626b8668e40e193e3a52654763113
6d9271a455f0c19aa9cf09d49cc5bf92518fbd7b
Fix WASI rename issue: #2297
# Description Fix issue #2297. The old code push full path to the parent directory, if we run wasmer as below: ```bash wasmer run --mapdir=/:. --mapdir=./:. ./wasm/clang.wasm -- -cc1 -triple wasm32-unknown-wasi -isysroot /sys -internal-isystem /sys/include -emit-obj -o ./source/hello/ hello.o ./source/hello...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b57cb3b4fdc..01796bf908c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -70,6 +70,7 @@ Looking for changes that affect our C API? See the [C API Changelog](lib/c-api/C - [#2157](https://github.com/wasmerio/wasmer/pull/2157) Simplify the code behind `WasmPtr` ### Fix...
3
3
3
[{"id": "G0", "claim": "target_path is user-provided and may not be of a form for which file_name() succeeds, so out_path.push(target_path.file_name().unwrap()) can panic; the reviewer suggested using target_entry_name (which get_parent_at_inode already returns and which should be the same verified-safe value) directly...
null
wasmerio__wasmer__2692
wasmerio/wasmer
2,692
defect
287deb11a37d9bebd6f2a9d6131e20b1f3885c0f
4e46c80c48991aa5d0b4da9863efcb0469750c62
Make module serialization deterministic
Fixes #2173 Includes the tests from #2184.
diff --git a/Cargo.lock b/Cargo.lock index 815f04419e08..23a613570a18 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -210,6 +210,27 @@ version = "3.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9c59e7af012c713f529e7a3ee57ce9b31ddd858d4b512923602f74608b009631" +[[package]] +name = "b...
1
1
0
[{"id": "G0", "claim": "Re-enable the LLVM and Singlepass compile_and_compare calls that the pull request added commented out in the deterministic fuzz target.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
wasmerio__wasmer__3395
wasmerio/wasmer
3,395
defect
ecde2aa8f454b4ace057ee06319fe8dafff95ea6
9ec93acfd69eb74cb0c04ba167e5f3fe5b634ce2
Fix create-exe to be able to cross-compile on Windows
Fixes #3374.
diff --git a/lib/cli/src/commands/create_exe.rs b/lib/cli/src/commands/create_exe.rs index c13a38d11856..46b2a37700db 100644 --- a/lib/cli/src/commands/create_exe.rs +++ b/lib/cli/src/commands/create_exe.rs @@ -403,7 +403,6 @@ impl CreateExe { v.canonicalize().unwrap_or(v) } else { ...
9
6
2
[{"id": "G0", "claim": "The hardcoded `ends_with(\"libwasmer.a\")` match may not find the right library file on every operating system (e.g. a different artifact name such as a Windows DLL).", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Use `anyhow::...
null
wasmerio__wasmer__3428
wasmerio/wasmer
3,428
defect
47200450b3f17fe1671db3bf78a2ca31839cb3b6
9cf5095806d618b23392a796c8cd77068c524705
Implement wasmer config
Fixes #3383.
diff --git a/Makefile b/Makefile index 0123ebf7c97d..15058ce36c59 100644 --- a/Makefile +++ b/Makefile @@ -749,7 +749,7 @@ install-capi-pkgconfig: install-pkgconfig: # Make sure WASMER_INSTALL_PREFIX is set during build unset WASMER_DIR; \ - if pc="$$(target/release/wasmer config --pkg-config 2>/dev/null)"; then \...
7
6
2
[{"id": "G0", "claim": "The config integration tests only assert that the commands do not fail instead of asserting that set-then-get returns the expected output value.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The CLI would be simpler as `config X...
null
wasmerio__wasmer__3531
wasmerio/wasmer
3,531
defect
45cb95c1a83124ea98a0a75e9701962c10d7d7f5
94be948b426a81d4c9bd6bd643672c7300990e8a
Reenable create-exe tests
Fixes https://github.com/wasmerio/wasmer/issues/3513. Fixes #3529. Might fail for now since `3.2.0-alpha.1` isn't released yet.
diff --git a/.gitignore b/.gitignore index 1a08ad112dda..54290d7d6e71 100644 --- a/.gitignore +++ b/.gitignore @@ -21,4 +21,6 @@ out.txt wapm.toml build-capi.tar.gz build-wasmer.tar.gz -lcov.info \ No newline at end of file +lcov.info +link/ +link.tar.gz \ No newline at end of file diff --git a/tests/integration/cli...
2
2
1
[{"id": "G0", "claim": "The test util should invoke the Makefile (e.g. `make package`) to package the tarball instead of duplicating that logic in Rust with two new dev dependencies.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Rust packag...
null
wasmerio__wasmer__3837
wasmerio/wasmer
3,837
defect
796f134d9ea242cacd8b4e8da8db780ead07deba
e272413600ec95f6eb9a9efdfdf090e643c34887
Cleaned up the GraphQL endpoint logic and added tests
Fixes #3779.
diff --git a/lib/registry/src/config.rs b/lib/registry/src/config.rs index 5f24011d4ae8..80cfecbeec70 100644 --- a/lib/registry/src/config.rs +++ b/lib/registry/src/config.rs @@ -1,5 +1,6 @@ use serde::{Deserialize, Serialize}; use std::path::{Path, PathBuf}; +use url::Url; pub static GLOBAL_CONFIG_DATABASE_FILE_N...
2
1
0
[{"id": "G0", "claim": "Questions whether the new format_graphql logic handles the input `http://localhost:8000`.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The GraphQL endpoint handling is fine for now, but should be solved properly by adding a w...
null
wasmerio__wasmer__3980
wasmerio/wasmer
3,980
defect
f93f083a634c1b72dbe8dbb9f2e65bfab9a46944
e7e7419ac694a6f41459584c4887ab69c6b731e3
Re-work logging and command-line argument parsing
When discussing #3948, we decided that the `wasmer` command shouldn't show any log messages unless the user explicitly sets the `$RUST_LOG` environment variable. That way there's no chance that logging will mess up the output you might get from a program. I've also re-worked the CLI parsing code to be vanilla clap r...
diff --git a/Cargo.lock b/Cargo.lock index 03d32af84e78..b8aeb1b7c6f6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5633,7 +5633,6 @@ dependencies = [ "cfg-if 1.0.0", "chrono", "clap 4.3.2", - "clap-verbosity-flag", "colored 2.0.0", "dialoguer", "dirs", diff --git a/lib/cli/Cargo.toml b/lib/cli/Cargo.toml in...
2
2
2
[{"id": "G0", "claim": "The verbosity flag should be kept in the CLI, since lots of users won't know about RUST_LOG.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Setting up logging globally so that no logs are shown unless enabled makes sense primarily...
null
wasmerio__wasmer__3985
wasmerio/wasmer
3,985
defect
eb3dbdac182b0456496462ef2e33b5b86b5aaca1
1385d6cc00f0e763bee61f5a58a1f7c14a8cc8f8
Display human-friendly progress when starting `wasmer run`
This fixes #3981 by adding some spinners during certain parts of the startup process. I've mostly done this by creating a wrapper `wasmer_wasix::Runtime` implementation that will display progress bars during certain operations. Unfortunately, our current abstractions don't really expose the hooks we'd want for fine...
diff --git a/Cargo.lock b/Cargo.lock index 13063f9911c4..8d489f26ed4c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5651,6 +5651,7 @@ dependencies = [ "flate2", "hex", "indexmap", + "indicatif", "isatty", "libc", "log", diff --git a/lib/cli/Cargo.toml b/lib/cli/Cargo.toml index 9c5e00c85567..f7d7f38728af 100...
1
1
0
[{"id": "G0", "claim": "The \"Getting Ready...\" spinner message isn't meaningful and the PR should show something more informative.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
wasmerio__wasmer__4689
wasmerio/wasmer
4,689
defect
28c01865af8702b50a229748aeadee79f2bdf784
bc326010aaac64a53b43962f58fd429766128bfa
redirect to child node in a different fs
This PR adds the missing logic in `mem_fs` for redirecting when resolving a child node that resides in a different fs. Resolves #3575.
diff --git a/lib/virtual-fs/src/mem_fs/filesystem.rs b/lib/virtual-fs/src/mem_fs/filesystem.rs index c1d72bc493b7..17ce1bf31df1 100644 --- a/lib/virtual-fs/src/mem_fs/filesystem.rs +++ b/lib/virtual-fs/src/mem_fs/filesystem.rs @@ -739,7 +739,11 @@ impl FileSystemInner { Some(Err(FsError::Di...
2
2
1
[{"id": "G0", "claim": "The new test should also assert that the directory contents correspond to what is expected (e.g. read_dir lists the created children), as in the reviewer's demo code, instead of only asserting that the operations succeed.", "category": "testing", "verdict": "supported", "priority": "P2", "scope"...
null
wasmerio__wasmer__4762
wasmerio/wasmer
4,762
defect
e9b35812559b36fbf8a3ca50b5964d853295cc23
736008034759aaa36e6ad900dcc166594163ce36
fix(wasix): Remove redundant module hash generation in BinaryPackage
The hash is already available, no need to re-compute. Closes #4785
diff --git a/lib/wasix/src/bin_factory/binary_package.rs b/lib/wasix/src/bin_factory/binary_package.rs index 5a83725462bb..8f260b591bb3 100644 --- a/lib/wasix/src/bin_factory/binary_package.rs +++ b/lib/wasix/src/bin_factory/binary_package.rs @@ -173,18 +173,25 @@ impl BinaryPackage { self.commands.iter().find...
1
1
0
[{"id": "G0", "claim": "The entrypoint_bytes function is redundant (only used in exec.rs) and should be removed with that call site refactored to use get_entrypoint_cmd directly — or, if the author prefers keeping the public API, deprecated and no longer used in wasmer's own code.", "category": "design", "verdict": "su...
null
wasmerio__wasmer__4824
wasmerio/wasmer
4,824
defect
377ee91b58a3f662ef5a86af7a664ed80a0db02a
0051e82b4feaa0486fbdf7ef5531c7c8b8ddcb33
Merge `ScopedDirectoryFileSystem` into `host_fs::Filesystem`
This PR merges the protection logic of `ScopedDirectoryFileSystem` into `host_fs::Filesystem`. Resolves #4723.
diff --git a/Cargo.lock b/Cargo.lock index 3ff5cb7185ab..dc84f2a6ff31 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1439,6 +1439,12 @@ dependencies = [ "litrs", ] +[[package]] +name = "dunce" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56ce8c6da7551ec6c462cbaf3b...
1
1
1
[{"id": "G0", "claim": "The `Default` impl for `host_fs::FileSystem` is highly insecure because it grants access to `/` by default, so it should be removed (after checking whether `FileSystem::default` is used anywhere).", "category": "security", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
wasmerio__wasmer__4929
wasmerio/wasmer
4,929
defect
53b5c3b90222de00ef495b084824d23bfc258b53
ede4b147299de458437b66b16bc5e9c9cc3aad81
Fix indirect call to dynamic imported function
Fixes #4565. The solution is to update the func_ptr of the anyfunc with the generated trampoline address during the resolve step. I'm not sure this is the best place for this code though; careful review is required.
diff --git a/lib/compiler/src/engine/resolver.rs b/lib/compiler/src/engine/resolver.rs index e4699370bd07..8c78858ded40 100644 --- a/lib/compiler/src/engine/resolver.rs +++ b/lib/compiler/src/engine/resolver.rs @@ -64,7 +64,7 @@ fn get_runtime_size(context: &StoreObjects, extern_: &VMExtern) -> Option<u32> { pub fn re...
3
2
0
[{"id": "G0", "claim": "The shared test module only exercises the indirect call to a dynamic imported function incidentally, and a dedicated, scoped test for this exact issue should be added, ideally using a host function that returns an integer so the test verifies the call actually executes.", "category": "testing", ...
null
wasmerio__wasmer__5160
wasmerio/wasmer
5,160
defect
8b97cfe3992ae3c2f0002f9955fcb23057f666a9
00a1a539a6962ebe3d8e99ce1ffc0cc3e804b4fd
Fix fd with append flag can't seek correctly
This commit fixes an incompatible behavior (with other runtimes, and POSIX) when an fd that was opened with `fdflags::append` cannot seek to the right offset with `fd_seek`. The append flag should not "lock" the offset at the end, as it's possible to seek to another offset and read from it. This passes all the `was...
diff --git a/lib/wasix/src/syscalls/wasi/fd_seek.rs b/lib/wasix/src/syscalls/wasi/fd_seek.rs index 527ed185dcdc..65d605149335 100644 --- a/lib/wasix/src/syscalls/wasi/fd_seek.rs +++ b/lib/wasix/src/syscalls/wasi/fd_seek.rs @@ -62,9 +62,6 @@ pub(crate) fn fd_seek_internal( if !fd_entry.rights.contains(Rights::FD_SE...
1
1
0
[{"id": "G0", "claim": "The new test should trigger the bug using only Rust std, without importing any module from wasi_snapshot_preview1, so the test stays future-proof.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
wasmerio__wasmer__5799
wasmerio/wasmer
5,799
defect
47ef166f6856a5dd8cefd5d8706da269bb756832
63d0b611059153819b3c15272cbb3c6fb24ab729
fix(wasix): Prevent recursive merge fallback when mounting packages
fix: Prevent filesystem merge for packages Previously adding additional dependencies to a WASI environment would lead to a recursive file system merge, which would clone all files in memory, which is very expensive. This was caused by a very unstructed creation and extension logic in the ...
diff --git a/lib/c-api/src/wasm_c_api/wasi/mod.rs b/lib/c-api/src/wasm_c_api/wasi/mod.rs index 3b312be01d20..81f35b5f5fc6 100644 --- a/lib/c-api/src/wasm_c_api/wasi/mod.rs +++ b/lib/c-api/src/wasm_c_api/wasi/mod.rs @@ -264,6 +264,7 @@ fn prepare_webc_env( package_name: &str, ) -> Option<(WasiFunctionEnv, Imports)...
3
2
1
[{"id": "G0", "claim": "The newly added TODO comment on BinaryPackage.webc_fs misspells \"Should\" as \"Shoudl\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "In prepare_webc_env, a Box<dyn FileSystem + Send + Sync> is passed to builder.set_fs()...
null
wasmerio__wasmer__5848
wasmerio/wasmer
5,848
defect
abb87221296c440060977b1e1b87a0ced44699b7
fa677352d475270c1a5b7126a028fa78f1dfd76d
feature(singlepass): add --debug-dir for assembly output
The PR adds the rudimentary infrastructure for the annotated assembly output for emitted functions by singlepass compiler. Example output: ```gas ;; set-x ;; function prologue 0: rex push %rbp 2: mov %rsp,%rbp ;; initialize locals 5: sub $0x10,%rsp c: mov %r12...
diff --git a/Cargo.lock b/Cargo.lock index 0d920ebffdde..ecc6bce78cfe 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6992,7 +6992,7 @@ dependencies = [ "wasmi_c_api_impl", "wasmparser 0.224.1", "wat", - "which", + "which 7.0.3", "windows-sys 0.59.0", "xz", "zip", @@ -7342,8 +7342,10 @@ dependencies = [ "ray...
8
8
2
[{"id": "G0", "claim": "The doc comment on types_to_signature is misleading: it says it converts a kind into a filename, but it converts WebAssembly types into a compact signature string usable as part of a filename, and should be reworded accordingly.", "category": "documentation", "verdict": "supported", "priority": ...
null
wasmerio__wasmer__5861
wasmerio/wasmer
5,861
defect
bf41fbb287377d337560f42d03e953db1f13c9e8
2a9b9be32ca3d906004abf14c291756545159308
feature: rework `--debug-dir` option
The PR is a mix of refactoring and new features: - LLVMCallbacks - trait is removed and the implementation is moved from `cli` to the LLVM compiler crate - `--debug-llvm-dir` is renamed to `--debug-dir` (while supporting the old option as well), where the option will be used by all of our compilers - for every compi...
diff --git a/Cargo.lock b/Cargo.lock index 1b8ad1e37cc3..c0d401a6d38d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7307,6 +7307,7 @@ dependencies = [ name = "wasmer-compiler-llvm" version = "6.1.0" dependencies = [ + "anyhow", "byteorder", "cc", "inkwell", diff --git a/lib/cli-compiler/src/store.rs b/lib/cli-c...
9
9
2
[{"id": "G0", "claim": "The imports that became unused after moving the callbacks implementation into the compiler-llvm library (std::{fmt, fs::File, io::Write}, InkwellMemoryBuffer, InkwellModule, EntityRef in lib/cli/src/backend.rs) should be removed.", "category": "maintainability", "verdict": "supported", "priority...
null
wasmerio__wasmer__5888
wasmerio/wasmer
5,888
defect
adfe78c34e5026ea618e567ba25f2dfb7aa9f87a
c8c8e5aff3b91e19ec5a556451c6af6a10f9b21f
fix(cranelift): fix get_function_name reference lookup
Use sparse index for ir::ExternalName::user as UserExternalNameRef are references to the user_named_funcs vector. We can then get to the original FunctionIndex by a proper lookup to the user_named_funcs.
diff --git a/lib/compiler-cranelift/src/compiler.rs b/lib/compiler-cranelift/src/compiler.rs index da923610fdc5..2faadd84716c 100644 --- a/lib/compiler-cranelift/src/compiler.rs +++ b/lib/compiler-cranelift/src/compiler.rs @@ -173,6 +173,7 @@ impl CraneliftCompiler { let mut code_buf: Vec<u8> = Vec::...
1
1
0
[{"id": "G0", "claim": "The `store` variable in `compiler_debug_dir_test` is declared as mutable but is never mutated, so the `mut` keyword should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
wasmerio__wasmer__5992
wasmerio/wasmer
5,992
defect
0c1ba61928dc9012d6dd0a5242ae9f82cb3b2df8
8e3ad7a2f46d1e0e68c3f6240341ad34db1effcb
fix: properly report size after memory.reset
I verified the `mmap` mapping is preserved if `memory.grow` is called and so we don't re-create a new one. Fixes: #5795
diff --git a/lib/vm/src/memory.rs b/lib/vm/src/memory.rs index 778094384363..a77917b174fe 100644 --- a/lib/vm/src/memory.rs +++ b/lib/vm/src/memory.rs @@ -143,6 +143,12 @@ impl WasmMmap { /// Resets the memory down to a zero size fn reset(&mut self) -> Result<(), MemoryError> { self.size.0 = 0; + ...
1
1
1
[{"id": "G0", "claim": "The new test creates its store with Store::default() instead of the provided config.store(), unlike every other test in the file, so the test framework's compiler configuration is bypassed and config.store() should be used.", "category": "testing", "verdict": "supported", "priority": "P1", "scop...
null
wasmerio__wasmer__6010
wasmerio/wasmer
6,010
defect
c910de256b144c651f6a1b84b462fbf03d89bbb7
8ccb6a59bbb74d62d38bdc7355bac3d2b8b49d21
fix(cranelift): EH: ensure CatchAll is always present at the end of an action linked list
~The PR simplifies the emission of Action table, where the key fix is that a landing pad catching both All and a Tag must have the `CatchAll` as the very last item in the Action table (in order to align with `find_eh_action`).~ We know the `CatchAll` is always the last "tag" for a particular landing pad - and thus b...
diff --git a/Cargo.lock b/Cargo.lock index 581c94bae3d4..c930102e181f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7020,6 +7020,7 @@ dependencies = [ "cranelift-frontend", "gimli", "hashbrown 0.16.1", + "indexmap", "itertools 0.14.0", "leb128", "more-asserts", diff --git a/lib/compiler-cranelift/Cargo.toml ...
5
5
3
[{"id": "G0", "claim": "The sorting key is inverted: assigning 0 to CatchAll and 1 to other types makes the ascending sorted_by_key put CatchAll first, contradicting the stated requirement that CatchAll always be last in the chain; the match arms should assign 1 to CatchAll and 0 to the rest.", "category": "correctness...
null
wasmerio__wasmer__6075
wasmerio/wasmer
6,075
defect
bd91673c1c3976d3b01d2dffd80c7ec33effc67f
517b1f6d6f975566750ff60f0aec65bde99a236c
Experimental support for interruptable wasm computation
This PR adds a `Store::interrupter()` method, which returns an `Interrupter` instance that can then be used to kill running WASM instances. This works by raising a `SIGUSR` signal against the thread that's running the store's instance, which is then caught and transformed into a `HostInterrupt` trap. If the insta...
diff --git a/Cargo.lock b/Cargo.lock index 89178ada2270..6eeeb5915964 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6705,6 +6705,8 @@ dependencies = [ "cfg-if", "cmake", "corosensei", + "crossbeam-channel", + "dashmap", "derive_more", "futures", "hashbrown 0.16.1", diff --git a/Makefile b/Makefile index 9dd3...
10
1
1
[{"id": "G0", "claim": "The `Err` case of the `compare_exchange` in `interrupt()` discards the error value (the current value) via an underscore binding even though it could be useful for debugging; consider logging it or using a more descriptive pattern if it is intentionally ignored.", "category": "maintainability", ...
null
wasmerio__wasmer__6087
wasmerio/wasmer
6,087
defect
012eab3d6249e2a6e404350f7f54ca2417c8b860
66bac3c4d20a7fb4ea6324c444e99f42b10f9e26
fix(LLVM,macOS): fix compact unwinding bookkeeping
There were 3 fundamental issues with the macOS compact unwind info: 1. we register a global callback (for all threads) that is responsible for frame lookup - `find_dynamic_unwind_sections`; we forgot to remove entries if a module is unregistered (basically use-after-free type of error) 2. there was quite some dead co...
diff --git a/Makefile b/Makefile index 9dd3ace187ab..997b95aa9728 100644 --- a/Makefile +++ b/Makefile @@ -625,9 +625,9 @@ build-capi-headless-ios: # ##### -# test compilers +# test compilers (intentionally not using nextest as it runs tests in separate processes) test-stage-0-wast: - $(CARGO_BINARY) nextest run $...
1
1
1
[{"id": "G0", "claim": "The macOS ARM64 compact unwind deregistration path should check EXIT_CALLED before proceeding, like the eh_frame deregistration does, to avoid crashes during program shutdown.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
wasmerio__wasmer__6093
wasmerio/wasmer
6,093
defect
4ae6a221099cb82fdd57fd348e3281abce7ce98e
099bd46147d7f9cbf0b5a373b18bb0c7f3f21fc9
CI: skip tests on RISC-V and LoongArch64
With the change of `ignores.txt`, tests are now green on the aforementioned secondary platforms.
diff --git a/tests/compilers/deterministic.rs b/tests/compilers/deterministic.rs index 3845c95520cc..133f568a6526 100644 --- a/tests/compilers/deterministic.rs +++ b/tests/compilers/deterministic.rs @@ -1,11 +1,20 @@ use anyhow::Result; -use wasmer::{Module, wat2wasm}; +use wasmer::{CompileError, Module, wat2wasm}; ...
3
2
1
[{"id": "G0", "claim": "The catch-all `_ => unreachable!()` arm panics if `Module::new` returns any other `CompileError` variant (e.g. Wasm, Codegen, UnsupportedTarget) instead of propagating the error, and should be replaced with `Err(e) => return Err(e.into())`.", "category": "correctness", "verdict": "supported", "p...
null
wasmerio__wasmer__6107
wasmerio/wasmer
6,107
defect
bac0f41a42a9e128b9f741dd09745d74e4b88bae
2f3bc86cbeeed5bafe09dbe2b299c7a3bc396204
Remove hardcoded MSRV in github actions
<!-- Prior to submitting a PR, review the CONTRIBUTING.md document for recommendations on how to test: https://github.com/wasmerio/wasmer/blob/main/docs/CONTRIBUTING.md#pull-requests --> # Description <!-- Provide details regarding the change including motivation, links to related issues, and the context o...
diff --git a/.github/actions/load_toolchain/action.yml b/.github/actions/load_toolchain/action.yml new file mode 100644 index 000000000000..9bbb5f17f3cb --- /dev/null +++ b/.github/actions/load_toolchain/action.yml @@ -0,0 +1,15 @@ +name: 'Load Rust Toolchain' +description: 'Load Rust toolchain from rust-toolchain file...
2
2
1
[{"id": "G0", "claim": "Remove the trailing double quote from the rust_toolchain output description in load_toolchain/action.yml.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The composite action's run step lacks a shell, which would make any ...
null
wasmerio__wasmer__6137
wasmerio/wasmer
6,137
defect
196846d3f7b6adcbbef1b6a6a484c71d3fcb6b1a
b60a35c4051f05fc5d065b7810e7d5665be4193d
chore: use WASMER_REPRODUCIBLE_BUILD for reproducible builds
As seen in the Arch package, distributions are generally interested in repro builds: https://gitlab.archlinux.org/archlinux/packaging/packages/wasmer/-/commit/63791dfae453ade23b521fa957086c04aca798b8#3c081841caebaf99a1317a78b801ed19febe5624 Apart from that, I cleaned up a bit the output of `--version --verbose` ...
diff --git a/lib/cli/build.rs b/lib/cli/build.rs index 28df3c148f17..d4b6d37cf6d9 100644 --- a/lib/cli/build.rs +++ b/lib/cli/build.rs @@ -4,4 +4,8 @@ pub fn main() { let utc: DateTime<Utc> = Utc::now(); let date = utc.format("%Y-%m-%d").to_string(); println!("cargo:rustc-env=WASMER_BUILD_DATE={date}"); ...
5
4
2
[{"id": "G0", "claim": "In reproducible builds WASMER_BUILD_DATE is still computed and set from the current date/time, and the build date computation should be skipped (or at least documented) when WASMER_REPRODUCIBLE_BUILD is enabled.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "int...
null
wasmerio__wasmer__6153
wasmerio/wasmer
6,153
defect
8fb0d6818358f5177ea140d24055594cf6958d80
818496c2ad0a8dcb0b5d0f8dabfabadd04c233e6
feat(LLVM+Cranelift): parallel compilation revamp
Currently, when building a module with LLVM, we utilize Rayon's `par_iter` on the function bodies. That works fine, except we have no control about the distribution of the function sizes. And so, we can easily end up with a range of functions that are really huge: `static-web-server`: <img width="3771" height="850"...
diff --git a/Cargo.lock b/Cargo.lock index bd58f01b9da9..d3bb4fd4197e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7048,6 +7048,7 @@ version = "7.0.0" dependencies = [ "byteorder", "cc", + "crossbeam-channel", "inkwell", "itertools 0.14.0", "libc", diff --git a/lib/compiler-llvm/Cargo.toml b/lib/compiler-llv...
3
3
3
[{"id": "G0", "claim": "The `dbg!(bitcode.len());` call left in the dynamic trampoline bitcode generation will print every trampoline's bitcode size to stderr in release builds and can spam logs and impact performance for modules with many imports, so it should be removed or gated behind debug/trace logging.", "categor...
null
wasmerio__wasmer__6272
wasmerio/wasmer
6,272
defect
fa66a8eb11dce6394edcd872f93023857505927b
a2381917fcb64dc4e4d885e2cb84b7d99d84d171
feat(LLVM): support tail-call WA feature
The PR implements the https://github.com/WebAssembly/tail-call proposal for the LLVM compiler. A sample usage (`wasix++ musttail.cc -mtail-call -g`): ```C++ // Tail-recursive helper. int countdown_impl(int n, int acc) { if (n == 0) { return acc; } // musttail requires the return statemen...
diff --git a/fuzz/fuzz_targets/universal_llvm.rs b/fuzz/fuzz_targets/universal_llvm.rs index 31601e13cec4..d5ece4a253a9 100644 --- a/fuzz/fuzz_targets/universal_llvm.rs +++ b/fuzz/fuzz_targets/universal_llvm.rs @@ -28,6 +28,7 @@ impl Arbitrary<'_> for LLVMPassFuzzModule { config.relaxed_simd_enabled = true; ...
3
2
0
[{"id": "G0", "claim": "The sentence the PR adds to the imported-function comment (\"We intentionally leverage tail-calls for such function calls.\") is misleading because the branch does not currently handle is_return_call, and the sentence should be removed or corrected.", "category": "documentation", "verdict": "sup...
null
wasmerio__wasmer__6320
wasmerio/wasmer
6,320
defect
a24064242af303aa5d19d39e92ae7acc5862c0f3
66a22fc3bd3cff7bee11aee6f4155e1d71e9043e
CI: ignore some heavy integration tests on Windows and macOS
Since #6315, the compile time for Python has increased again and thus we face long build times, especially on Windows.
diff --git a/tests/integration/cli/tests/run.rs b/tests/integration/cli/tests/run.rs index 05e7387c6e3e..10c5eb29fcda 100644 --- a/tests/integration/cli/tests/run.rs +++ b/tests/integration/cli/tests/run.rs @@ -189,6 +189,8 @@ fn run_wasi_works() { assert.stdout("27\n"); } +// The test would be very slow on Win...
1
1
1
[{"id": "G0", "claim": "The pull request should not ignore the heavy integration tests on macOS (the maintainer sees no justification for skipping them there, while accepting that ignoring them on Windows might be defensible), and asks what runtime the ignoring saves.", "category": "design", "verdict": "supported", "pr...
null
wasmerio__wasmer__6376
wasmerio/wasmer
6,376
defect
8c1c61ef7835958c33faeadad46b4934a5012ff4
c55a69317a767c0c106f6fca805c10a87da19b48
Fix Global borrow conflicts, middleware lifetimes, and error routing
# Description - Fix borrow conflict in `Global::set` and `Global::get` (`lib/api/src/backend/sys/entities/global.rs`): The previous code held a `&mut` borrow of the store (via `get_mut`) while simultaneously trying to borrow it again for `val.as_raw(store)`. Restructured to perform type/mutability checks and raw val...
diff --git a/lib/api/src/backend/sys/entities/global.rs b/lib/api/src/backend/sys/entities/global.rs index 3548bc3a6a58..21a05aee723f 100644 --- a/lib/api/src/backend/sys/entities/global.rs +++ b/lib/api/src/backend/sys/entities/global.rs @@ -48,17 +48,9 @@ impl Global { pub(crate) fn get(&self, store: &mut impl...
6
3
1
[{"id": "G0", "claim": "Adding a lifetime parameter to `generate_function_middleware` makes `ModuleMiddleware` non-object-safe, so `dyn ModuleMiddleware`/`Arc<dyn ModuleMiddleware>` middleware chains will break throughout the codebase and the method needs a redesign to keep the trait object-safe.", "category": "design"...
null
wasmerio__wasmer__6460
wasmerio/wasmer
6,460
defect
df125df0214c47bec241a2c580f2b66a66dddcbb
6b235d3ba1e08a04f0f5692c0c01aa7ee82362bb
Fix: Module loading panics on non-UTF-8 file paths
SUMMARY Loading a module from an existing file whose canonical path is not valid UTF-8 panics instead of returning an `IoCompileError`. PROVENANCE This exploration and report were automatically generated by the Swival Security Scanner (https://swival.dev). PRECONDITIONS - `BackendModule::from_file()` is called...
diff --git a/lib/api/src/entities/module/inner.rs b/lib/api/src/entities/module/inner.rs index 44a0eead5e13..3a32156021be 100644 --- a/lib/api/src/entities/module/inner.rs +++ b/lib/api/src/entities/module/inner.rs @@ -80,8 +80,7 @@ impl BackendModule { let mut module = Self::new(engine, wasm_bytes)?; ...
3
3
1
[{"id": "G0", "claim": "The comment above the module-name assignment still says the name is the absolute path, but the new lossy UTF-8 conversion makes invalid bytes become U+FFFD, so the comment should be updated (with optional rationale) to avoid misleading readers.", "category": "documentation", "verdict": "supporte...
null
wasmerio__wasmer__6468
wasmerio/wasmer
6,468
defect
9f9c1352f585298b13d76aadd9a1bc41afbd1a32
5c2ae8e4637cce3071383dbe4f3da6c5e91ce3df
fix(wasix): Make connect nonblocking when requested and implement real socket::status
Around a month ago we had an issue where Python was getting a timeout when trying to connect to external hosts in nonblocking mode. In [#6298](https://github.com/wasmerio/wasmer/pull/6298) I tried to fix it, but did it in the wrong way: I made WASIX only return the socket after the connection was fully established. It ...
diff --git a/lib/virtual-net/src/host.rs b/lib/virtual-net/src/host.rs index 1018ae74add7..e257416a4b48 100644 --- a/lib/virtual-net/src/host.rs +++ b/lib/virtual-net/src/host.rs @@ -19,7 +19,7 @@ use std::os::fd::RawFd; #[cfg(windows)] use std::os::windows::io::AsRawSocket; -use std::sync::Arc; +use std::sync::{Ar...
1
1
0
[{"id": "G0", "claim": "SocketStatus::Failed should retain the latched error so it can be returned later; add a TODO since it can be done as a follow-up.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
wasmerio__wasmer__6562
wasmerio/wasmer
6,562
defect
c84ce4563e1723fc8043871876f696713d7c0440
ad66d9829c690bce902407f08e0d2b36740711d5
fix(wasix): path_rename panics when renaming a directory into its child
- Fix a `path_rename` host panic when a directory is renamed into one of its own descendants. - Return `EINVAL` before mutating the in-memory inode tree, avoiding the later `Expected target inode to exist` crash.
diff --git a/lib/wasix/src/syscalls/wasi/path_rename.rs b/lib/wasix/src/syscalls/wasi/path_rename.rs index c08342ddd86a..d6e2f5e87fca 100644 --- a/lib/wasix/src/syscalls/wasi/path_rename.rs +++ b/lib/wasix/src/syscalls/wasi/path_rename.rs @@ -77,7 +77,7 @@ pub fn path_rename_internal( } // this is to be sur...
1
1
0
[{"id": "G0", "claim": "The test should use `tempfile::tempdir` instead of creating and removing directories in-tree.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
wasp-lang__open-saas__375
wasp-lang/open-saas
375
defect
fe737571380fda0888d855eea485cdd8fde6b111
0cbb0debd01531cdeffab77f3d99943a60d0239c
improve one-time payment webhook logic
## Description Fixes #371 Adds a new webhook event handler for `payment_intent.succeeded`. One-time payment products (i.e. "credits"), characterized by Stripe as having the `payment` mode (not the `subscription` mode), do not send an `invoice.paid` event (although subscriptions do), so we have to confirm payment...
diff --git a/opensaas-sh/app_diff/src/payment/stripe/paymentProcessor.ts.diff b/opensaas-sh/app_diff/src/payment/stripe/paymentProcessor.ts.diff index 305154865..c5443612a 100644 --- a/opensaas-sh/app_diff/src/payment/stripe/paymentProcessor.ts.diff +++ b/opensaas-sh/app_diff/src/payment/stripe/paymentProcessor.ts.diff...
6
6
0
[{"id": "G0", "claim": "Rename returnMetadataByMode to a name like getPaymentIntentData, since it returns the payment intent data and not just metadata, drop the 'return' prefix, and inline the input object type.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "...
null
wasp-lang__open-saas__506
wasp-lang/open-saas
506
defect
7074eaeeca6a5731acdd38a5c955cc96cfed483a
838573e2ab6522cd092c5c188e5195b61edfaf4a
Account page improvements
Always display both subscription plan and credits information. Currently, when subscriptions ends we don't display credits even though users use them. This is because we rely on `subscriptionStatus && subscriptionPlan && datePaid` being null/undefined to show credits. This fixes https://github.com/wasp-lang/open-...
diff --git a/template/app/src/user/AccountPage.tsx b/template/app/src/user/AccountPage.tsx index dc5b34452..c3e0d125c 100644 --- a/template/app/src/user/AccountPage.tsx +++ b/template/app/src/user/AccountPage.tsx @@ -4,7 +4,12 @@ import type { User } from 'wasp/entities'; import { Button } from '../components/ui/butto...
3
1
0
[{"id": "G0", "claim": "The Buy More Credits link should render as a button using an asChild/as attribute on the Link instead of nesting a Button inside it.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The dt elements should be used within a dl element...
null
wasp-lang__open-saas__507
wasp-lang/open-saas
507
defect
7074eaeeca6a5731acdd38a5c955cc96cfed483a
95fbe059e334e641d3c718c739485d1295c108e9
Simplify checkout result page
We rename `CheckoutPage` to `CheckoutResultPage` since it displays the result of the checkout. Also simplifies it a bit.
diff --git a/template/app/main.wasp b/template/app/main.wasp index aec1d45c3..f91afb58c 100644 --- a/template/app/main.wasp +++ b/template/app/main.wasp @@ -190,10 +190,10 @@ page PricingPage { component: import PricingPage from "@src/payment/PricingPage" } -route CheckoutRoute { path: "/checkout", to: CheckoutPa...
1
1
0
[{"id": "G0", "claim": "The success message should read 'You will be redirected to your account page in ...' instead of 'You are being redirected to your account page in ...'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
wasp-lang__wasp__1189
wasp-lang/wasp
1,189
defect
216828247362ad5c4792f6a6d0a7569217ee547b
582c61a20122b81e95dde37c1d7381d0fa0f7d3f
fix typo in auth provider missing env variable message
### Description > Describe your PR! If it fixes specific issue, mention it with "Fixes # (issue)". ### Select what type of change this PR introduces: 1. [x] **Just code/docs improvement** (no functional change). 2. [ ] **Bug fix** (non-breaking change which fixes an issue). 3. [ ] **New feature** (non-break...
diff --git a/waspc/data/Generator/templates/server/src/auth/providers/oauth/init.ts b/waspc/data/Generator/templates/server/src/auth/providers/oauth/init.ts index 3c91059921..130836ebb8 100644 --- a/waspc/data/Generator/templates/server/src/auth/providers/oauth/init.ts +++ b/waspc/data/Generator/templates/server/src/au...
1
1
1
[{"id": "G0", "claim": "The build is currently failing, and the e2e tests must be updated before the PR is merged.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
wasp-lang__wasp__1834
wasp-lang/wasp
1,834
defect
365db38bba5742cf1e509f2ea1785e905b335c35
4e9a3d52c5bae0e32e6d6a3af99e677533adf9cb
Conditionally apply Web Crypto API polyfill
Closes #1833 I've tested this locally with Node.js `v18.19.0` and `v20.9.0`
diff --git a/waspc/data/Generator/templates/server/src/polyfill.ts b/waspc/data/Generator/templates/server/src/polyfill.ts index a59302451a..02edd2a4a5 100644 --- a/waspc/data/Generator/templates/server/src/polyfill.ts +++ b/waspc/data/Generator/templates/server/src/polyfill.ts @@ -3,5 +3,8 @@ import { webcrypto } f...
1
1
0
[{"id": "G0", "claim": "Add an explanatory comment above the polyfill guard saying why it is needed (it only targets Node < 19 / Node 20+, where crypto already exists), ideally with a link to a description of the issue.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
wasp-lang__wasp__2057
wasp-lang/wasp
2,057
defect
4bb0f9e50d6028681e3d3c6e9ffd599edc455d72
f0dce1eefc7cf11691147cbfc5c1ac035c6782eb
Fix the auth helpers to only require fields they need from `AuthIdentity`
The auth helpers like `getEmail` and `getUsername` didn't work unless you provided the full user object with full `AuthIdentity` objects in the `identities` array. Given that we[ suggest to users to include only the `providerName` and `providerUserId`](https://github.com/wasp-lang/wasp/blob/4bb0f9e50d6028681e3d3c6e9...
diff --git a/waspc/data/Generator/templates/sdk/wasp/auth/user.ts b/waspc/data/Generator/templates/sdk/wasp/auth/user.ts index a5a0614a15..75bb9b3da7 100644 --- a/waspc/data/Generator/templates/sdk/wasp/auth/user.ts +++ b/waspc/data/Generator/templates/sdk/wasp/auth/user.ts @@ -1,25 +1,27 @@ -{{={= =}=}} -import { type...
1
1
0
[{"id": "G0", "claim": "If `MinimalUserEntityWithAuth` is the type users will be seeing the most of, the naming should be flipped: rename `MinimalUserEntityWithAuth` to `UserEntityWithAuth` and rename the existing `UserEntityWithAuth` to something more verbose.", "category": "design", "verdict": "supported", "priority"...
null
wasp-lang__wasp__2535
wasp-lang/wasp
2,535
defect
92de120ce01aeceb0eb44c29906a11c798aee6d0
898fb243c29b7e2ef052f97803d5f4bd05bd1b40
Update outdated docs, improve naming, prefer user props over auth hook in docs
- Adds `await` for `sanitizeAndSerializeProviderData` calls - Renames `data-model/backends` to `data-model/databases` - Docs guide users to use `user` props rather than `useAuth()`, also reflected on examples Related issues: https://github.com/wasp-lang/wasp/issues/2514, https://github.com/wasp-lang/wasp/issues/1...
diff --git a/web/docs/advanced/jobs.md b/web/docs/advanced/jobs.md index 03e5d5ed10..b1993bd779 100644 --- a/web/docs/advanced/jobs.md +++ b/web/docs/advanced/jobs.md @@ -233,7 +233,7 @@ The Job declaration has the following fields: :::note Job executors Our jobs need job executors to handle the _scheduling, moni...
6
4
1
[{"id": "G0", "claim": "The new /docs/data-model/backends -> /docs/data-model/databases redirect should maybe not be a 1:1 mapping, since the old backends page may have been wider than just databases.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The...
null