You can use Wasmer in your Rust projects to execute WebAssembly modules securely and conveniently.

Did you know ...?

Some of our language extensions are using the Wasmer Rust crate under the hood.

In this section we will go through the instructions on how to setup your Rust environment, to then visit different examples of how to use Wasmer in Rust.

Published Crates

Apart from this, Wasmer publishes various other Crates:

  • wasmer-runtime: The Wasmer Runtime: high level API for interacting with Wasmer

  • Backends:

    • wasmer-singlepass-backend: The Singlepass backend (fast compilation, normal runtime)

    • wasmer-clif-backend: The Cranelift backend (normal compilation, a bit faster runtime)

    • wasmer-llvm-backend: The LLVM backend (slow compilation, super fast runtime)

  • Integrations:

    • wasmer-wasi: The integration of WASI into Wasmer with APIs to interact with WASI-specific features of WASI Wasm modules, like the WASI filesystem and permission system.

Now let's setup your Rust environment!