rust-wasm-on-lambda-edge
bitque
rust-wasm-on-lambda-edge | bitque | |
---|---|---|
2 | 1 | |
31 | 18 | |
- | - | |
8.8 | 0.0 | |
5 days ago | almost 2 years ago | |
Rust | Rust | |
Apache License 2.0 | Mozilla Public License 2.0 |
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.
rust-wasm-on-lambda-edge
-
WASM/JS- which toolchain/libraries to use?
AWS Lambda@Edge is much, much more convoluted because IIRC you can only run node and python there. In other words, you have to use some glue to make it work.
-
Rust/Wasm on AWS Lambda@Edge
I adopted a rollup based approach, since it's quite easy to get configured and also something we use at work. I always found webpack a little bit too cumbersome, and parcel is just yet another new kid on the block. I'm pretty sure you can adjust the project to your needs. All we need here is: compile TS to JS and bundle up everything into a single JS file. In the past I found the WebAssembly dependency management very tricky, in the end I used a plain "move the .wasm file into the final bundle" approach, which just works fine, because I did not want to inline the WebAssembly code (as most plugins try). Maybe you have a smarter solution for that, please open a pull-request in the repo. Just keep in mind: wasm-bindgen creates already a pretty decent module loader, so there is no need to work around that, but I fail to get any of these bundlers to move the wasm files along with it into the bundle output directory.
bitque
What are some alternatives?
serde-wasm-bindgen - Native integration of Serde with wasm-bindgen
nbody-wasm-sim - An N-body WebAssembly simulation using Web GPU
coldsnap - A command line interface for Amazon EBS snapshots
wasm-pdf - Generate PDF files with JavaScript and WASM (WebAssembly)
aws-lambda-events - Rust event types for AWS Lambda
quadtrees - An in-browser demo of quadtrees in Rust compiled to WebAssembly
resvg-js - A high-performance SVG renderer and toolkit, powered by Rust based resvg and napi-rs.
astro-nannou-starter - A minimal boilerplate for Astro / Vite with the Nannou creative framework (Rust → WASM). Supports multiple sketches + hot-reload.
rust-typescript-template - 📝 A template for creating WASM + Typescript + Rust workflow libraries.
localghost - Ergonomic Rust bindings to the Web platform
rs2ts - Rust structs and enums to TypeScript interfaces and enums
neural-network-from-scratch - A neural network library written from scratch in Rust along with a web-based application for building + training neural networks + visualizing their outputs