I've followed the example at https://github.com/bytecodealliance/wasmtime#example and read the wasmtime book. To confirm, is running rustc directly (rustc hello.rs --target wasm32-wasi
) the currently preferred method of building a .wasm module to run with wasmtime? vs say, some usage of Cargo.toml and cargo build
There is also https://github.com/bytecodealliance/cargo-wasi which appears potentially related. I didn't find it mentioned in the wasmtime book
After perusing the options, I'll use cargo build --target=wasm32-wasi
to remain closer to the fundamentals for now, and consider using cargo-wasi
in the future
kellytk has marked this topic as resolved.
Last updated: Nov 22 2024 at 17:03 UTC