mirror of
https://github.com/Xevion/rust-sdl2-emscripten.git
synced 2025-12-06 21:16:21 -06:00
0d5ebaa7d9d40ed4553c4b2883d4250a5cc97e82
rust-sdl2-emscripten
This is an experimental repository while testing a Rust + SDL2 project built with Emscripten.
-
hello-rust-sdl2-wasm - A bit of a weird repository, I'm not sure that the creator knows Rust that well, but it compiles. Note that the
asmjs-unknown-emscriptentarget is deprecated, and you should usewasm32-unknown-emscripteninstead. You'll need to change all the files, flags etc. to make it match. -
build.sh - One of the core files in this repository, it builds the project with Emscripten. Note all the flags available for modifying the behavior of the build.
Goals
- Reproducible SDL2 Emscripten Builds
- This ensures that the project can iterate safely and be inspected in a safe environment, free from errors. Helps ensure errors are isolated to the machine or build script.
- SDL2 Image, TFF, Mixer Usage
- All of these libraries are common and necessary for a lot of projects. Ensuring they work is important.
- Example of External Javascript Interop
- The basic ability to provide some kind of Javascript binding would be important for a decent web-based project or game.
- The ability to use localStorage, fetch, or some browser-only API would be important.
- Windows, MacOS, Linux Builds
- Simple ability to provide multi-platform builds in addition to the WASM build.
Description
Languages
Rust
64.2%
HTML
22.8%
Shell
9.1%
SCSS
2.3%
JavaScript
1.6%