-
Notifications
You must be signed in to change notification settings - Fork 183
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
Add wasm64-unknown-unknown support #303
Conversation
My understanding is there should be a wasm64-wasi target, but I don't know if the Rust toolchain supports it. wasmtime, at least, supports the memory64 proposal; see bytecodealliance/wasmtime#3153. This raises this question in my mind: should In
Both We also have this:
I don't think the memory64 proposal changes the size of integer values such as the return value of In js.rs we have this:
The Web Crypto API limits the maximum chunk length to a value much smaller than |
https://github.com/john-sharratt/cargo-wasix supports Rust programs targeting wasm64-wasi, though I haven't tried it. |
Regarding WASI, I think we should first get official support from the |
I tried getting it to run, and it doesn't even compile a simple Hello World crate. I think it's just someone's personal project for experimenting with this stuff. |
Thanks for pointing out the stuff around the WASI target. I opened #306 to make sure we don't compile our current implementation against a 64-bit target. It also fixes some of the sketchy pointer manipulation and
I don't think something like that would be useful, and it would definitely confuse things from the current ecosystem where:
The path forward for 64-bit WASI is:
Then, all we need to do is update |
Note that this is technically EDIT: While However, I did have to update the Node.js implementation to use chunking, as Node.js's @newpavlov adding you to re-review (because of the chunking change). |
We can build and link just fine, but we cannot actually run the tests as `wasm-bindgen-test-runner` hasn't yet added support. Signed-off-by: Joe Richey <joerichey@google.com>
Signed-off-by: Joe Richey <joerichey@google.com>
We can build and link just fine, but we cannot actually run the tests as
wasm-bindgen-test-runner
hasn't yet added support.Fixes #296
Signed-off-by: Joe Richey joerichey@google.com