Luca
01/04/2024, 9:19 PMwasm32-unknown-unknown
target does not let you interface with the browser unless you use something like wasm-bindgen. Just wondering because it’s be cool to play around trying to build cosmwasm smartcontracts for the wasm32-unknown-unknown
target in kotlin one day… or is this already possible assuming I do not interact with any web/js api in the kotlin code?Svyatoslav Kuzmich [JB]
01/04/2024, 9:54 PMwasmWasi
target comes without JS interop and is intended to be used in JS-agnostic environments. Stdlib depends on a few imports from WASI, and if your platform of choice does not support these API, stdlib would need to be adapted or replaced.Svyatoslav Kuzmich [JB]
01/04/2024, 9:59 PMLuca
01/04/2024, 10:26 PMwasm32-unknown-unknown
target in rust.Luca
01/04/2024, 10:29 PMSvyatoslav Kuzmich [JB]
01/04/2024, 10:56 PMfd_write
(for printing to stdout), clock_time_get
and random_get
. If you don’t need these, you can link produced modules with a “fake system” wasm module, which would ignore fd_write
and provide dummy values for time and RNG, making it completely environment agnostic.Svyatoslav Kuzmich [JB]
01/04/2024, 11:10 PMLuca
01/04/2024, 11:21 PM