mirror of
https://github.com/mii443/wasmer.git
synced 2025-09-03 07:59:25 +00:00
This library was an experiment to provide a simple framebuffer API. It does not currently compile, and has not done so for over a year. Removing it reflects the fact that this will not be maintained or updated in the future.
32 lines
1.2 KiB
Markdown
32 lines
1.2 KiB
Markdown
# `wasmer-cli-compiler` [](https://github.com/wasmerio/wasmer/actions?query=workflow%3Abuild) [](https://slack.wasmer.io) [](https://github.com/wasmerio/wasmer/blob/master/LICENSE)
|
|
|
|
This crate is the Wasmer Compiler only CLI.
|
|
|
|
|
|
## Features
|
|
|
|
The Compiler only Wasmer supports the following features:
|
|
* `wasi` (default): support for [WASI].
|
|
* `emscripten` (default): support for [Emscripten].
|
|
* `singlepass`: support for the [Singlepass compiler].
|
|
|
|
[WASI]: https://github.com/wasmerio/wasmer/tree/master/lib/wasi/
|
|
[Emscripten]: https://github.com/wasmerio/wasmer/tree/master/lib/emscripten/
|
|
[Singlepass compiler]: https://github.com/wasmerio/wasmer/tree/master/lib/compiler-singlepass/
|
|
|
|
## CLI commands
|
|
|
|
Once you have Wasmer installed, you can start executing WebAssembly files easily:
|
|
|
|
Get the current Wasmer version:
|
|
|
|
```bash
|
|
wasmer-compiler -V
|
|
```
|
|
|
|
Compile a WebAssembly file:
|
|
|
|
```bash
|
|
wasmer-compiler compile myfile.wasm -o myfile.wasmu --singlepass
|
|
```
|