-
As the question asks. please, tell me the right argument? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Libsodium requires either the To compile to WASI, the See the existing build script: https://github.com/jedisct1/libsodium/blob/master/dist-build/wasm32-wasi.sh or the Rust code: https://github.com/jedisct1/libsodium-sys-stable/blob/f78deeb3254913bd05bf1f8c9a834168e9e2b89b/build.rs#L152-L160 |
Beta Was this translation helpful? Give feedback.
Libsodium requires either the
emscripten
orwasi
environments, as it's not even possible to generate random numbers in standalone WebAssembly.To compile to WASI, the
host
argument should bewasm32-wasi
, same as the compiler's target.See the existing build script: https://github.com/jedisct1/libsodium/blob/master/dist-build/wasm32-wasi.sh
or the Rust code: https://github.com/jedisct1/libsodium-sys-stable/blob/f78deeb3254913bd05bf1f8c9a834168e9e2b89b/build.rs#L152-L160