-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Take alignment into consideration during malloc
#3463
Conversation
b2afed6
to
da0cf24
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good for the most part!
Co-Authored-By: Liam Murphy <43807659+Liamolucko@users.noreply.github.com>
Co-Authored-By: Liam Murphy <43807659+Liamolucko@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is pretty much good to merge, I just noticed that the bit of the guide you updated is still using an alignment of 4 for strings.
Co-Authored-By: Liam Murphy <43807659+Liamolucko@users.noreply.github.com>
28b3c12
to
750eccc
Compare
It contains this important fix for Rust 1.70: rustwasm/wasm-bindgen#3463 I tested the web viewer, and it works. ### Checklist * [x] I have read and agree to [Contributor Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md) <!-- This line will get updated when the PR build summary job finishes. --> PR Build Summary: https://build.rerun.io/pr/2406 <!-- pr-link-docs:start --> Docs preview: https://rerun.io/preview/eebb149/docs Examples preview: https://rerun.io/preview/eebb149/examples <!-- pr-link-docs:end -->
It contains this important fix for Rust 1.70: rustwasm/wasm-bindgen#3463 I tested the web viewer, and it works. ### Checklist * [x] I have read and agree to [Contributor Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md) <!-- This line will get updated when the PR build summary job finishes. --> PR Build Summary: https://build.rerun.io/pr/2406 <!-- pr-link-docs:start --> Docs preview: https://rerun.io/preview/eebb149/docs Examples preview: https://rerun.io/preview/eebb149/examples <!-- pr-link-docs:end -->
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [js-sys](https://rustwasm.github.io/wasm-bindgen/) ([source](https://github.com/rustwasm/wasm-bindgen)) | dependencies | patch | `=0.3.63` -> `=0.3.64` | | [wasm-bindgen](https://rustwasm.github.io/) ([source](https://github.com/rustwasm/wasm-bindgen)) | dependencies | patch | `=0.2.86` -> `=0.2.87` | | [wasm-bindgen-futures](https://rustwasm.github.io/wasm-bindgen/) ([source](https://github.com/rustwasm/wasm-bindgen)) | dependencies | patch | `=0.4.36` -> `=0.4.37` | --- ### Release Notes <details> <summary>rustwasm/wasm-bindgen (wasm-bindgen)</summary> ### [`v0.2.87`](https://github.com/rustwasm/wasm-bindgen/blob/HEAD/CHANGELOG.md#​0287-httpsgithubcomrustwasmwasm-bindgencompare02860287) [Compare Source](rustwasm/wasm-bindgen@0.2.86...0.2.87) Released 2023-06-12. ##### Added - Implemented `IntoIterator` for `Array`. [#​3477](rustwasm/wasm-bindgen#3477) ##### Changed - Deprecate `HtmlMenuItemElement` and parts of `HtmlMenuElement`. [#​3448](rustwasm/wasm-bindgen#3448) - Stabilize `ResizeObserver`. [#​3459](rustwasm/wasm-bindgen#3459) ##### Fixed - Take alignment into consideration during (de/re)allocation. [#​3463](rustwasm/wasm-bindgen#3463) *** </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xNDQuMyIsInVwZGF0ZWRJblZlciI6IjM1LjE0NC4zIiwidGFyZ2V0QnJhbmNoIjoiZGV2ZWxvcCJ9--> Co-authored-by: cabr2-bot <cabr2.help@gmail.com> Co-authored-by: crapStone <crapstone01@gmail.com> Reviewed-on: https://codeberg.org/Calciumdibromid/CaBr2/pulls/1947 Reviewed-by: crapStone <crapstone01@gmail.com> Co-authored-by: Calciumdibromid Bot <cabr2_bot@noreply.codeberg.org> Co-committed-by: Calciumdibromid Bot <cabr2_bot@noreply.codeberg.org>
Unfortunately I had to hardcode an alignment of 4 because we didn't implement something to detect the target architecture when using
wasm-bindgen-cli
.This is still missing adjustments on__wbindgen_realloc
and__wbindgen_free
.This is fairly hacky, unfortunately I simply don't know enough about the
wasm-bindgen
codebase. Feel free to suggest how it could be done right.Fixes #3461.