3 releases (stable)

2.0.0 Oct 29, 2021
1.0.2 Feb 6, 2021
0.0.0 Feb 6, 2021

#1408 in Procedural macros

Download history 36/week @ 2023-10-18 40/week @ 2023-10-25 39/week @ 2023-11-01 41/week @ 2023-11-08 41/week @ 2023-11-15 51/week @ 2023-11-22 28/week @ 2023-11-29 33/week @ 2023-12-06 38/week @ 2023-12-13 39/week @ 2023-12-20 33/week @ 2023-12-27 27/week @ 2024-01-03 39/week @ 2024-01-10 33/week @ 2024-01-17 27/week @ 2024-01-24 24/week @ 2024-01-31

130 downloads per month
Used in 12 crates (via wasmer-asml-fork)

MIT license

17KB
356 lines


Wasmer is a blazing fast and secure WebAssembly runtime that enables incredibly lightweight containers to run anywhere: from Desktop to the Cloud, Edge and even the browser.

  • Secure by default. No file, network, or environment access, unless explicitly enabled.
  • Pluggable. supports WASIX, WASI and Emscripten out of the box.
  • Incredibly Fast. Run WebAssembly at near-native speeds.
  • Embeddable anywhere via Wasmer SDKs

Install Wasmer

curl https://get.wasmer.io -sSfL | sh
Other installation options (Powershell, Brew, Cargo, ...)

Wasmer can be installed from various package managers. Choose the one that fits best for your environment:

  • Powershell (Windows)
    iwr https://win.wasmer.io -useb | iex
    

Looking for more installation options? See the wasmer-install repository to learn more!

Note: You can also try Wasmer online in wasmer.sh

Quickstart

You can start by running Cowsay:

$ wasmer run cowsay "hello world"
 _____________
< hello world >
 -------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
               ||----w |
                ||     ||

There are many more available packages, such as wasmer/python or quickjs. Create your own package, or explore packages from the community: https://wasmer.io/explore

Here is what you can do next:

Wasmer SDK

You can use the Wasmer runtime embedded in different languages with the Wasmer SDK:

Language Package Documentation
Rust logo Rust wasmer Rust crate Learn
C logo C wasm.h header Learn
C++ logo C++ wasm.hh header Learn
C# logo C# WasmerSharp NuGet package Learn
D logo D wasmer Dub package Learn
Python logo Python wasmer PyPI package Learn
JS logo Javascript @wasmerio NPM packages Learn
Go logo Go wasmer Go package Learn
PHP logo PHP wasm PECL package Learn
Ruby logo Ruby wasmer Ruby Gem Learn
Java logo Java wasmer/wasmer-jni Bintray package Learn
R logo R no published package Learn
Postgres logo Postgres no published package Learn
Swift logo Swift no published package
Zig logo Zig no published package
Dart logo Dart wasm pub package
Crystal logo Crystal no published package Learn
Lisp logo Lisp no published package
Julia logo Julia no published package
VLang logo V no published package
Ocaml logo OCaml wasmer OCaml package

👋  Missing a language?

Contribute

We appreciate your help! 💜

We recommend reading the following guide on how to contribute into a complex project successfully: https://mitchellh.com/writing/contributing-to-complex-projects

Check our docs on how to build Wasmer from source or test your changes.

Community

Wasmer has an amazing community of developers and contributors. Welcome, please join us! 👋


README also in: 🇨🇳 中 文 -Chinese🇩🇪 Deutsch-German🇪🇸 Español-Spanish🇫🇷 Français-French🇯🇵 日本 語 -Japanese🇰🇷 한국어 -Korean.

Dependencies

~1.5MB
~33K SLoC