cargo run example/a
./build/main.out
cargo run
curl https://wasmtime.dev/install.sh -sSf | bash
wasmtime run build/main.wasm
cargo install wasm-tools
wasm-tools print build/main.wasm -o a.wat
wasm-tools parse a.wat -o a.wasm
A cargo extension for authoring WebAssembly components
cargo install cargo-component
https://github.com/WebAssembly/wasi-sdk/releases
mkdir misc
cd misc
wget https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-24/wasi-sdk-24.0-x86_64-linux.tar.gz
tar xvf wasi-sdk-24.0-x86_64-linux.tar.gz
cd ..
export WASI_SDK_PATH=./misc/wasi-sdk-24.0-x86_64-linux
cargo test -- --test-threads=1
cargo test backend::llvm::inkwell_example::hello_world -- --nocapture
docker build . -t lang2-dev --target dev
docker run --rm -it -v .:/mnt lang2-dev
docker build . -t lang2 --target test
docker build . -t lang2 --target run
docker run --rm -it lang2