A single-target rush compiler backend which generates Wasm files without the need for external dependencies.
Since the compiler itself requires no external dependencies, only a WebAssembly runtime is to be installed. Hence, program execution requires a Wasm runtime.
On Arch-Linux based systems, the following package can be installed to set up a working Wasm runtime.
wasmer
for executing.wasm
files
- Prerequisite: A file ending in
.rush
which contains the program. - Execute following command as it will generate the
output.wasm
file from the source program.
cargo run your-program.rush
- Since you have installed a Wasm runtime prior to reading this section,
following command can be used to execute the
.wasm
file using this runtime.
wasmer output.wasm