diff --git a/CHANGELOG.md b/CHANGELOG.md index 37d5682..bb339cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,17 @@ +## wasm_split_helpers v0.2.3 + +- Propagate `debug_assertions` to the CLI with a new marker in the hidden `#[link_section]`. +- Propagate `reference-types` into the wasm binary. This removes a long-standing hack, and + should lead to cleaner binding code emitted from `wasm-bindgen`. + ## wasm_split_cli v0.2.2 - Add a canary import to diagnose modules getting loaded from different compilation units. This is enabled when the crate is compiled with `debug_assertions` enabled. Detection - of this is automatic when compiling against `wasm_split_helpers >= 0.2.3`. -- Fixed an error on nightly Rust related to zero-sized symbols past the defined data segments. + of this is automatic when compiling against `wasm_split_helpers >= 0.2.3`. (#40). +- Fixed an error on nightly Rust related to zero-sized symbols past the defined data + segments (#41). +- Fix: globally exposed data symbols are now exported with their relocated address (#42). ## wasm_split_helpers v0.2.2 diff --git a/Cargo.lock b/Cargo.lock index 767d45d..93b0501 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -689,7 +689,7 @@ dependencies = [ [[package]] name = "wasm_split_cli_support" -version = "0.2.1" +version = "0.2.2" dependencies = [ "clap", "eyre", @@ -704,7 +704,7 @@ dependencies = [ [[package]] name = "wasm_split_helpers" -version = "0.2.2" +version = "0.2.3" dependencies = [ "async-once-cell", "wasm_split_macros", diff --git a/crates/wasm_split/Cargo.toml b/crates/wasm_split/Cargo.toml index 8b9bde1..e3b2ac0 100644 --- a/crates/wasm_split/Cargo.toml +++ b/crates/wasm_split/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wasm_split_helpers" -version = "0.2.2" +version = "0.2.3" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/wasm_split_cli/Cargo.toml b/crates/wasm_split_cli/Cargo.toml index 91b902b..7fe0990 100644 --- a/crates/wasm_split_cli/Cargo.toml +++ b/crates/wasm_split_cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wasm_split_cli_support" -version = "0.2.1" +version = "0.2.2" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/examples/example/Cargo.toml b/examples/example/Cargo.toml index 4601a2a..ba48fd1 100644 --- a/examples/example/Cargo.toml +++ b/examples/example/Cargo.toml @@ -14,7 +14,7 @@ futures = "0.3.30" gloo-console = "0.3.0" gloo-net = { version = "0.3.1", default-features = false, features = ["http"] } js-sys = "0.3.69" -wasm-bindgen = "=0.2.125" +wasm-bindgen = "=0.2.126" wasm-bindgen-futures = "0.4.55" wasm-streams = "0.4.0" wasm_split_helpers = { workspace = true, optional = true } diff --git a/integration/Cargo.lock b/integration/Cargo.lock index 2f3049d..f1753f9 100644 --- a/integration/Cargo.lock +++ b/integration/Cargo.lock @@ -154,9 +154,9 @@ checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" [[package]] name = "js-sys" -version = "0.3.102" +version = "0.3.103" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03d04c30968dffe80775bd4d7fb676131cd04a1fb46d2686dbffbaec2d9dfd31" +checksum = "53b44bfcdb3f8d5837a46dae1ca9660a837176eee74a28b229bc626816589102" dependencies = [ "cfg-if", "futures-util", @@ -428,9 +428,9 @@ dependencies = [ [[package]] name = "wasm-bindgen" -version = "0.2.125" +version = "0.2.126" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ddb3f79143bced6de84270411622a2699cee572fc0875aeaf1e7867cf9fca1a" +checksum = "4b067c0c11094aef6b7a801c1e34a26affafdf3d051dba08456b868789aaf9a4" dependencies = [ "cfg-if", "once_cell", @@ -441,9 +441,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-futures" -version = "0.4.75" +version = "0.4.76" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "503b14d284f2c8dac03b819967e155ea753f573586193b2b2c95990cb5d69280" +checksum = "c62df1340f32221cb9c54d6a27b030e3dba64361d4a95bed55f9aacb44da291d" dependencies = [ "js-sys", "wasm-bindgen", @@ -451,9 +451,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.125" +version = "0.2.126" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e21a184b13fb19e157296e2c46056aec9092264fab83e4ba59e68c61b323c3d" +checksum = "167ce5e579f6bcf889c4f7175a8a5a585de84e8ff93976ce393efa5f2837aab1" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -461,9 +461,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.125" +version = "0.2.126" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fecefd9c35bd935a20fc3fc344b5f29138961e4f47fb03297d88f2587afb5ebd" +checksum = "f3997c7839262f4ef12cf90b818d6340c18e80f263f1a94bf157d0ec4420380e" dependencies = [ "bumpalo", "proc-macro2", @@ -474,18 +474,18 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.125" +version = "0.2.126" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23939e44bb9a5d7576fa2b563dc2e136628f1224e88a8deed09e04858b77871f" +checksum = "dc1b4cb0cc549fcf58d7dfc081778139b3d283a081644e833e84682ad71cea24" dependencies = [ "unicode-ident", ] [[package]] name = "wasm-bindgen-test" -version = "0.3.75" +version = "0.3.76" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d16931d57bcdd6a0dcc11254bdd1388827690c1b6807f0d2836f59a4f9eb30ac" +checksum = "2a0d555ca874445df8d314f94f5c948a4e74e5418f332c89f660a3d8310a96f4" dependencies = [ "async-trait", "cast", @@ -505,9 +505,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-test-macro" -version = "0.3.75" +version = "0.3.76" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fccaddcb2cd722baa7453b4c3d2cb2a3071597bb91f7a4373e8775bdb151778c" +checksum = "94eb68555b95bcea5e8cf4abe280b529049479fa995bfc23734af96a6aedc120" dependencies = [ "proc-macro2", "quote", @@ -516,13 +516,13 @@ dependencies = [ [[package]] name = "wasm-bindgen-test-shared" -version = "0.2.125" +version = "0.2.126" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3746ad029217960123cf2ebf939dda51eb931ba9f8f09c117e39c820b96aa794" +checksum = "c31d56021e873866c968588ed85ccdf56db5c426e44afdb4618c39895104b920" [[package]] name = "wasm_split_helpers" -version = "0.2.2" +version = "0.2.3" dependencies = [ "async-once-cell", "wasm_split_macros", diff --git a/integration/Cargo.toml b/integration/Cargo.toml index 8f86916..20fe2a8 100644 --- a/integration/Cargo.toml +++ b/integration/Cargo.toml @@ -18,7 +18,7 @@ publish = false [workspace.dependencies] wasm_split_helpers = { path = "../crates/wasm_split", version = "0.2.0" } -wasm-bindgen = "=0.2.125" +wasm-bindgen = "=0.2.126" wasm-bindgen-futures = "0.4.55" wasm-bindgen-test = "0.3.55" tokio = { version = "1.48", features = ["rt", "macros"] } diff --git a/test-runner/Cargo.lock b/test-runner/Cargo.lock index db35f26..3730fc1 100644 --- a/test-runner/Cargo.lock +++ b/test-runner/Cargo.lock @@ -821,9 +821,9 @@ dependencies = [ [[package]] name = "js-sys" -version = "0.3.102" +version = "0.3.103" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03d04c30968dffe80775bd4d7fb676131cd04a1fb46d2686dbffbaec2d9dfd31" +checksum = "53b44bfcdb3f8d5837a46dae1ca9660a837176eee74a28b229bc626816589102" dependencies = [ "cfg-if", "futures-util", @@ -1756,9 +1756,9 @@ dependencies = [ [[package]] name = "wasm-bindgen" -version = "0.2.125" +version = "0.2.126" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ddb3f79143bced6de84270411622a2699cee572fc0875aeaf1e7867cf9fca1a" +checksum = "4b067c0c11094aef6b7a801c1e34a26affafdf3d051dba08456b868789aaf9a4" dependencies = [ "cfg-if", "once_cell", @@ -1769,9 +1769,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-cli" -version = "0.2.125" +version = "0.2.126" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4547942fefeb31f11d32ef66af18d6890e2213ed1832cdc15e3396c7f35ebc98" +checksum = "8e2ebf6eef87c34e662347f1dddfbea541304bb7294711ed2c2acd8746cc5b50" dependencies = [ "anyhow", "clap", @@ -1792,9 +1792,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-cli-support" -version = "0.2.125" +version = "0.2.126" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8106e743adc30550ed6b44d50442a0929efbaed693032b6c71f03ac0b0e860fe" +checksum = "80c3e3bac5bcdc2a15ba22862e2cb7c0d1beddf9d46dd320bec1f6ae82f2da53" dependencies = [ "anyhow", "base64 0.22.1", @@ -1810,9 +1810,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.125" +version = "0.2.126" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e21a184b13fb19e157296e2c46056aec9092264fab83e4ba59e68c61b323c3d" +checksum = "167ce5e579f6bcf889c4f7175a8a5a585de84e8ff93976ce393efa5f2837aab1" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -1820,9 +1820,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.125" +version = "0.2.126" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fecefd9c35bd935a20fc3fc344b5f29138961e4f47fb03297d88f2587afb5ebd" +checksum = "f3997c7839262f4ef12cf90b818d6340c18e80f263f1a94bf157d0ec4420380e" dependencies = [ "bumpalo", "proc-macro2", @@ -1833,18 +1833,18 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.125" +version = "0.2.126" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23939e44bb9a5d7576fa2b563dc2e136628f1224e88a8deed09e04858b77871f" +checksum = "dc1b4cb0cc549fcf58d7dfc081778139b3d283a081644e833e84682ad71cea24" dependencies = [ "unicode-ident", ] [[package]] name = "wasm-bindgen-test-shared" -version = "0.2.125" +version = "0.2.126" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3746ad029217960123cf2ebf939dda51eb931ba9f8f09c117e39c820b96aa794" +checksum = "c31d56021e873866c968588ed85ccdf56db5c426e44afdb4618c39895104b920" [[package]] name = "wasm-encoder" @@ -1882,7 +1882,7 @@ dependencies = [ [[package]] name = "wasm_split_cli_support" -version = "0.2.1" +version = "0.2.2" dependencies = [ "eyre", "lazy_static", diff --git a/test-runner/Cargo.toml b/test-runner/Cargo.toml index bc09364..ca3f275 100644 --- a/test-runner/Cargo.toml +++ b/test-runner/Cargo.toml @@ -10,7 +10,7 @@ publish = false [dependencies] # this MUST be the same bindgen version as used on the tested artifact -wasm-bindgen-cli = { version = "=0.2.125", artifact = ["bin:wasm-bindgen-test-runner"] } +wasm-bindgen-cli = { version = "=0.2.126", artifact = ["bin:wasm-bindgen-test-runner"] } wasm_split_cli_support = { path = "../crates/wasm_split_cli" } eyre = "0.6.12" tempfile = "3.27.0"