All Projects → davidMcneil → The Rusty Web

davidMcneil / The Rusty Web

Targeting the web with Rust.

Programming Languages

javascript
184084 projects - #8 most used programming language
rust
11053 projects

Projects that are alternatives of or similar to The Rusty Web

Asm Dom
A minimal WebAssembly virtual DOM to build C++ SPA (Single page applications)
Stars: ✭ 2,604 (+1934.38%)
Mutual labels:  webassembly, asmjs
TypeScriptXX
🧷 Stay safe! Type-safe scripting for C++ using TypeScriptToLua and CMake with auto-generated declarations.
Stars: ✭ 33 (-74.22%)
Mutual labels:  webassembly, asmjs
Modern Wasm Starter
🛸 Run C++ code on web and create blazingly fast websites! A starter template to easily create WebAssembly packages using type-safe C++ bindings with automatic TypeScript declarations.
Stars: ✭ 140 (+9.38%)
Mutual labels:  webassembly, asmjs
Stdweb
A standard library for the client-side Web
Stars: ✭ 3,201 (+2400.78%)
Mutual labels:  webassembly, asmjs
Asm Dom Boilerplate
A simple boilerplate to start using asm-dom without configuration.
Stars: ✭ 49 (-61.72%)
Mutual labels:  webassembly, asmjs
Emscripten Docker
Docker image with Emscripten to compile ASM.js and WebAssembly
Stars: ✭ 92 (-28.12%)
Mutual labels:  webassembly, asmjs
Awesome Wasm Langs
😎 A curated list of languages that compile directly to or have their VMs in WebAssembly
Stars: ✭ 2,966 (+2217.19%)
Mutual labels:  webassembly, asmjs
Securityworker
The best javascript code protection solution ever.
Stars: ✭ 626 (+389.06%)
Mutual labels:  webassembly, asmjs
Cargo Web
A Cargo subcommand for the client-side Web
Stars: ✭ 1,026 (+701.56%)
Mutual labels:  webassembly, asmjs
Rust Webapp Template
Template project for Rust web app
Stars: ✭ 64 (-50%)
Mutual labels:  webassembly, asmjs
Dcmjs
dcmjs is a javascript cross-compile of dcmtk (dcmtk.org).
Stars: ✭ 92 (-28.12%)
Mutual labels:  webassembly, asmjs
Gbemu
WebAssembly based Gameboy Emulator
Stars: ✭ 120 (-6.25%)
Mutual labels:  webassembly
Wasm Jseval
A safe eval library based on WebAssembly and Duktape/QuickJS.
Stars: ✭ 111 (-13.28%)
Mutual labels:  webassembly
Shimmer
Image transformation in wasm using Go
Stars: ✭ 110 (-14.06%)
Mutual labels:  webassembly
Runbox7
Runbox 7 web app
Stars: ✭ 107 (-16.41%)
Mutual labels:  webassembly
Jsnet
Javascript/WebAssembly deep learning library for MLPs and convolutional neural networks
Stars: ✭ 126 (-1.56%)
Mutual labels:  webassembly
Opengl cmake skeleton
❤️ A ready to use cmake skeleton using GLFW, Glew and glm. 👍
Stars: ✭ 118 (-7.81%)
Mutual labels:  webassembly
Sod
An Embedded Computer Vision & Machine Learning Library (CPU Optimized & IoT Capable)
Stars: ✭ 1,460 (+1040.63%)
Mutual labels:  webassembly
Blockchain
Learning on block chain, step by step
Stars: ✭ 105 (-17.97%)
Mutual labels:  webassembly
Wasmplay
WASM Web "Framework" Playground
Stars: ✭ 105 (-17.97%)
Mutual labels:  webassembly

The Rusty Web

Website Guide

Note: The contents of this repo are now significantly outdated. Check out rustwasm for the latest and greatest on how to integrate Rust ans WebAssembly.

Discussion on Hacker News.

About

This project demonstrates a complete, albeit simple, example of integrating Rust code into a web application. This is accomplished by compiling Rust to asm.js or WebAssembly. The basic design pattern this project explores uses Rust to implement CPU bound portions of an app while using existing web technologies to handle user facing, I/O bound pieces. The guide explores this design pattern in detail.

The project compares implementations of the k-means clustering algorithm (this example's CPU bound task) applied to an image. The algorithm gives the resulting image a softened, painted look.

Setup

Dependencies

See the guide for steps on installing the dependencies.

Running the Project Natively

From the top level of the project run

cargo run

or

cargo run --release

The resulting painted image can be found at img/out.jpg.

Running on the Web

From the top level of the project...

Build the asm.js version

cargo build --release --target asmjs-unknown-emscripten

Build the WebAssembly version

cargo build --release --target wasm32-unknown-emscripten

From the website/ directory...

Install node dependencies

npm install

Build the website (build results can be found in website/dist)

npm run build

or build the website in release mode

npm run build-release

or start a web server, website is served at http://localhost:9000/

npm run start

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].