cargo-wasi
A lightweight Cargo subcommand to build Rust code for the `wasm32-wasi` target (by bytecodealliance)
lol_alloc
Like wee_alloc, but smaller since I used skinnier letters in the name. (by Craig-Macomber)
cargo-wasi | lol_alloc | |
---|---|---|
2 | 1 | |
440 | 95 | |
0.5% | - | |
3.3 | 4.3 | |
6 months ago | 2 months ago | |
Rust | Rust | |
Apache License 2.0 | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cargo-wasi
Posts with mentions or reviews of cargo-wasi.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-07-18.
-
Rust + WASM + Typescript [+ React]
There are many options, but what worked best for me is compiling with cargo-wasi and loading the resulting Wasm file with browser_wasi_shim. Using wasm32-wasi instead of wasm32-unknown-unknown requires a bit more work (the communication with JS has to be set up manually), but gives the flexibility of having just a Wasm file that can be dropped in and loaded dynamically. (There's wit-bindgen for generating wrapping code according to an interface definition but I didn't have much success with it.)
-
#![no_std] with WASI is more complicated than I thought it would be
I use cargo-wasi to build it:
lol_alloc
Posts with mentions or reviews of lol_alloc.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-07-18.
-
Rust + WASM + Typescript [+ React]
As a note, you might find some references to use wee_alloc, but it has been unmaintained for some time and shouldn't be used. I'm using the default allocator with the wasm32-wasi target and it works fine, but I don't know if that works with wasm32-unknown-unknown too; if not there's lol_alloc.
What are some alternatives?
When comparing cargo-wasi and lol_alloc you can also consider the following projects:
wee_alloc - The Wasm-Enabled, Elfin Allocator
browser_wasi_shim - A WASI shim for in the browser
WASI - WebAssembly System Interface
wasm-bindgen - Facilitating high-level interactions between Wasm modules and JavaScript
wasi - Experimental WASI API bindings for Rust
compiler-builtins - Porting `compiler-rt` intrinsics to Rust
wasm-pack - 📦✨ your favorite rust -> wasm workflow tool!
wasmtime - A fast and secure runtime for WebAssembly
wasi-libc - WASI libc implementation for WebAssembly
cargo-wasi vs wee_alloc
lol_alloc vs browser_wasi_shim
cargo-wasi vs WASI
lol_alloc vs wasm-bindgen
cargo-wasi vs wasi
lol_alloc vs wee_alloc
cargo-wasi vs compiler-builtins
lol_alloc vs wasm-pack
cargo-wasi vs browser_wasi_shim
cargo-wasi vs wasmtime
cargo-wasi vs wasi-libc
cargo-wasi vs wasm-bindgen