wasmloading
duct.rs
wasmloading | duct.rs | |
---|---|---|
2 | 4 | |
2 | 779 | |
- | - | |
0.0 | 4.6 | |
almost 4 years ago | 3 months ago | |
Rust | Rust | |
- | MIT License |
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.
wasmloading
-
How feasible is to create a WASM plugin system in Rust?
I wrote a toy example of this a few years ago. It's probably a little outdated, but it's also probably a little easier to get your head around than reading a full-fledged plugin system in something like lapce: https://github.com/pmsanford/wasmloading
-
Dynamically generating and using items using WASM
Using wasmer you can load WASM binaries and execute them at runtime. I was playing around with this about a year ago and wrote a prototype example: https://github.com/pmsanford/wasmloading
duct.rs
-
Is there an equivalent Rust crate?
There is also duct which is not so much geared towards writing an interpreter, but does provide simplified macros for running subprocesses.
- Hey Rustaceans! Got a question? Ask here (17/2023)!
-
Dynamically generating and using items using WASM
This doesn't address the generate-and-build step, but you can probably accomplish that by shelling out (perhaps with duct) to cargo build assuming your runtime environment has the necessary tools installed.
-
Hey Rustaceans! Got an easy question? Ask here (14/2021)!
As mentioned by /u/llogiq, std::process::Command will work if you mean shelling out to another binary, but I wanted to point out the crate duct which makes this kind of thing simpler to handle.
What are some alternatives?
trinity - Matrix bots in Rust and WebAssembly
rustyline - Readline Implementation in Rust
wasmer - 🚀 The leading Wasm Runtime supporting WASIX, WASI and Emscripten
rust-copperline - Pure-Rust Command Line Editing Library
fp-bindgen - Bindings generator for full-stack WASM plugins
tonic - A native gRPC client & server implementation with async/await support.
wasmi - WebAssembly (Wasm) interpreter.
tokio - A runtime for writing reliable asynchronous applications with Rust. Provides I/O, networking, scheduling, timers, ...
tokio-uring - An io_uring backed runtime for Rust
extism - The framework for building with WebAssembly (wasm). Easily load wasm modules, move data, call functions, and build extensible apps.
hashira-templates - Starter templates for hashira