Skip to content
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

Request to support wasm32 target #20

Open
komal-sai-yral opened this issue Jul 22, 2024 · 2 comments
Open

Request to support wasm32 target #20

komal-sai-yral opened this issue Jul 22, 2024 · 2 comments

Comments

@komal-sai-yral
Copy link

komal-sai-yral commented Jul 22, 2024

Few dependencies are blocking the build to wasm32-unknown-unknown target

mmap-rs and cpu-time

I also tried removing them with depending code (as I don't need the IO feature currently), but getting some other issues like below :

Caused by: Failed while trying to install all canisters.
Caused by: Failed to install wasm module to canister 'elna_db_backend'.
Caused by: Failed during wasm installation call
Caused by: The replica returned a rejection error: reject code CanisterError, reject message Error from Canister bkyz2-fmaaa-aaaaa-qaaaq-cai: Canister's Wasm module is not valid: Wasm module has an invalid import section. Module imports function '__wbg_crypto_566d7465cdbb6b7a' from '__wbindgen_placeholder__' that is not exported by the runtime..
This is likely an error with the compiler/CDK toolchain being used to build the canister. Please report the error to IC devs on the forum: https://forum.dfinity.org and include which language/CDK was used to create the canister., error code None

Relevant error from above - Module imports function '__wbg_crypto_566d7465cdbb6b7a' from '__wbindgen_placeholder__' that is not exported by the runtime..

Please consider adding wasm32-unknown-unknown support

@jean-pierreBoth
Copy link
Owner

I am afraid this will require some work:
need to make mmap dependant on arch via the crate https://crates.io/crates/wasmtime-runtime and or add a feature for mmap.
I will give it a try ... not just now

@komal-sai-yral
Copy link
Author

Sure, thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants