Personal Site
- 1 Devlogs
- 8 Total hours
My own Personal Website written in pure Rust.
My own Personal Website written in pure Rust.
Most sites use HTML, CSS, and/or JavaScript. However most people don’t even realize our browsers can run also run WebAssemby (wasm).
I decided to create my personal website in pure Rust. This is a difficult endeavour as Rust is typically used for backend, not frontend.
I am using egui for the GUI library. I use trunk to bundle my application into a .wasm file along with bare html and js (to load wasm into the browser).
I have spent countless hours reading documentation and experimenting with layouts (egui is wonky with this), and have successfully done the layout to my liking.
Currently, my site is looking half-finished. I am going to add a few more sections and some fun simulations that will render in the browser.
Everything you see is textured triangles. There is no HTML, CSS, JS, or DOM. Everytime the cursor is moved the page is redrawn. Rendering is done with WebGL or WGPU. JavaScript is required for the site to work (in order to load WebAssembly).