-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable Automatic Activation of
externref
Starting with Rust 1.82 `reference-types` is always present in the `target_features` section. The problem is that JS bundlers like Webpack can't currently handle the `reference-types` proposal. So for now there should not be any automatic detection of the feature and instead it should explicitly be enabled by the user.
- Loading branch information
Showing
21 changed files
with
56 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,22 @@ | ||
(module $reference_test.wasm | ||
(type (;0;) (func)) | ||
(type (;1;) (func (result i32))) | ||
(type (;2;) (func (param i32))) | ||
(type (;3;) (func (param i32) (result i32))) | ||
(type (;2;) (func (result i32 i32))) | ||
(type (;3;) (func (param i32))) | ||
(import "./reference_test_bg.js" "__wbindgen_init_externref_table" (func (;0;) (type 0))) | ||
(func $exported (;1;) (type 2) (param i32)) | ||
(func $__externref_table_dealloc (;2;) (type 2) (param i32)) | ||
(func $__externref_table_alloc (;3;) (type 1) (result i32)) | ||
(func $__wbindgen_exn_store (;4;) (type 2) (param i32)) | ||
(func $__wbindgen_add_to_stack_pointer (;5;) (type 3) (param i32) (result i32)) | ||
(func $__externref_table_dealloc (;1;) (type 3) (param i32)) | ||
(func $__externref_table_alloc (;2;) (type 1) (result i32)) | ||
(func $__wbindgen_exn_store (;3;) (type 3) (param i32)) | ||
(func $"exported multivalue shim" (;4;) (type 2) (result i32 i32)) | ||
(table (;0;) 128 externref) | ||
(memory (;0;) 17) | ||
(export "memory" (memory 0)) | ||
(export "exported" (func $exported)) | ||
(export "exported" (func $"exported multivalue shim")) | ||
(export "__wbindgen_exn_store" (func $__wbindgen_exn_store)) | ||
(export "__externref_table_alloc" (func $__externref_table_alloc)) | ||
(export "__wbindgen_export_2" (table 0)) | ||
(export "__wbindgen_add_to_stack_pointer" (func $__wbindgen_add_to_stack_pointer)) | ||
(export "__externref_table_dealloc" (func $__externref_table_dealloc)) | ||
(export "__wbindgen_start" (func 0)) | ||
(@custom "target_features" (after code) "\03+\0fmutable-globals+\08sign-ext+\0freference-types") | ||
(@custom "target_features" (after code) "\04+\0amultivalue+\0fmutable-globals+\0freference-types+\08sign-ext") | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
(module $reference_test.wasm | ||
(memory (;0;) 16) | ||
(export "memory" (memory 0)) | ||
(@custom "target_features" (after export) "\02+\0fmutable-globals+\08sign-ext") | ||
(@custom "target_features" (after export) "\04+\0amultivalue+\0fmutable-globals+\0freference-types+\08sign-ext") | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
(module $reference_test.wasm | ||
(type (;0;) (func (param i32))) | ||
(type (;1;) (func (param i32) (result i32))) | ||
(func $exported (;0;) (type 0) (param i32)) | ||
(func $__wbindgen_exn_store (;1;) (type 0) (param i32)) | ||
(func $__wbindgen_add_to_stack_pointer (;2;) (type 1) (param i32) (result i32)) | ||
(type (;0;) (func (result i32 i32))) | ||
(type (;1;) (func (param i32))) | ||
(func $__wbindgen_exn_store (;0;) (type 1) (param i32)) | ||
(func $"exported multivalue shim" (;1;) (type 0) (result i32 i32)) | ||
(memory (;0;) 17) | ||
(export "memory" (memory 0)) | ||
(export "exported" (func $exported)) | ||
(export "exported" (func $"exported multivalue shim")) | ||
(export "__wbindgen_exn_store" (func $__wbindgen_exn_store)) | ||
(export "__wbindgen_add_to_stack_pointer" (func $__wbindgen_add_to_stack_pointer)) | ||
(@custom "target_features" (after code) "\02+\0fmutable-globals+\08sign-ext") | ||
(@custom "target_features" (after code) "\04+\0amultivalue+\0fmutable-globals+\0freference-types+\08sign-ext") | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
(module $reference_test.wasm | ||
(type (;0;) (func (param i32))) | ||
(type (;1;) (func (param i32) (result i32))) | ||
(type (;2;) (func (param i32 i32 i32))) | ||
(func $exported (;0;) (type 0) (param i32)) | ||
(func $__wbindgen_free (;1;) (type 2) (param i32 i32 i32)) | ||
(func $__wbindgen_add_to_stack_pointer (;2;) (type 1) (param i32) (result i32)) | ||
(type (;0;) (func (result i32 i32 i32 i32))) | ||
(type (;1;) (func (param i32 i32 i32))) | ||
(func $__wbindgen_free (;0;) (type 1) (param i32 i32 i32)) | ||
(func $"exported multivalue shim" (;1;) (type 0) (result i32 i32 i32 i32)) | ||
(memory (;0;) 17) | ||
(export "memory" (memory 0)) | ||
(export "exported" (func $exported)) | ||
(export "__wbindgen_add_to_stack_pointer" (func $__wbindgen_add_to_stack_pointer)) | ||
(export "exported" (func $"exported multivalue shim")) | ||
(export "__wbindgen_free" (func $__wbindgen_free)) | ||
(@custom "target_features" (after code) "\02+\0fmutable-globals+\08sign-ext") | ||
(@custom "target_features" (after code) "\04+\0amultivalue+\0fmutable-globals+\0freference-types+\08sign-ext") | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters