-
Notifications
You must be signed in to change notification settings - Fork 53
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
regression in wasm32
support for latest releases of spl-token-2022
#293
Comments
- Introduced conditional compilation for WASM target architecture in burn.rs, mint.rs, transfer.rs, and transfer_with_fee.rs. Fixes solana-program#293
Who do I tag to get this merged? Currently wasm support has regressed from |
I've tagged the proper reviewer on your PR, and it will be reviewed when he gets a chance. To be totally clear, we have never made an effort to support wasm builds in the The |
@joncinque I'm not sure if I understand how using |
Thanks for tagging @samkim-crypto btw |
There is on-going work on exposing rust types in We can resolve this by updating the @ifiokjr Can you give some detail on what you are trying to achieve? It is currently wip, but there is going to be JS support for zk-sdk (https://www.npmjs.com/package/@solana/zk-sdk). Another option is to work directly with the zk-sdk crate. |
@samkim-crypto my library https://github.com/ifiokjr/wasm_solana/tree/main/crates/wasm_client_solana is a When I say I want This means that the community can use your code as building blocks and create For example, some might need to build their rust backend code which consumes
This has already been fixed in #298 |
- Introduced conditional compilation for WASM target architecture in burn.rs, mint.rs, transfer.rs, and transfer_with_fee.rs. Fixes solana-program#293
- Introduced conditional compilation for WASM target architecture in burn.rs, mint.rs, transfer.rs, and transfer_with_fee.rs. Fixes solana-program#293
* fix: support builds targetting `wasm32` - Introduced conditional compilation for WASM target architecture in burn.rs, mint.rs, transfer.rs, and transfer_with_fee.rs. Fixes #293 * ci: add `wasm` build check for `spl-token-2022` - Introduced a new job in the GitHub Actions workflow to build the Token-2022 for the WASM target architecture. This should ensure no future regressions. * style: update formatting * chore: add WASM build script for programs - Removed the old `wasm:build` script and introduced `programs:build-wasm` to streamline the build process for WASM targets. - Added a new `build-wasm.mjs` script to handle the WASM build using Cargo. * ci: update build script
Description
The most recent versions of this library don't support wasm32. Running the following leads to an error.
This is the error.
The text was updated successfully, but these errors were encountered: