https://github.com/rickycodes/www
my website built using Rust (stdweb) → .wasm
https://github.com/rickycodes/www
cargo rust stdweb wasm webassembly website www
Last synced: about 1 month ago
JSON representation
my website built using Rust (stdweb) → .wasm
- Host: GitHub
- URL: https://github.com/rickycodes/www
- Owner: rickycodes
- License: mit
- Created: 2018-03-12T13:02:22.000Z (about 8 years ago)
- Default Branch: main
- Last Pushed: 2026-04-05T06:22:50.000Z (about 1 month ago)
- Last Synced: 2026-04-05T07:46:16.980Z (about 1 month ago)
- Topics: cargo, rust, stdweb, wasm, webassembly, website, www
- Language: Rust
- Homepage: https://ricky.codes
- Size: 1.13 MB
- Stars: 13
- Watchers: 0
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/rickycodes/www/actions) [](https://github.com/rickycodes/www/actions/workflows/shellcheck.yml) [](https://app.fossa.com/projects/git%2Bgithub.com%2Frickycodes%2Fwww?ref=badge_shield)
```
+---------------+
|.-------------.|
|| ricky ||
|| dot ||
|| codes ||
||$ ./build.sh ||
|+-------------+|
+-..---------..-+
.---------------.
/ /=============\ \
/ /===============\ \
/_____________________\
\_____________________/
```
My personal website built with Rust using cargo-web and stdweb

## Disclaimer
stdweb seems to be now defunct (hasn't been updated since 2019). You might be better off exploring alternatives like wasm bingen. That's what everyone else is doing.
If you still want to play with this I am building it on `nightly-2019-08-01-x86_64-unknown-linux-gnu` re: #8
## Build
you will need `cargo web`
```
cargo web build --target=wasm32-unknown-unknown
```
or you can use the handy build script:
```
bash build.sh
```
I haven't tested other targets, but emscripten should work
You should see something like:
```
warning: debug builds on the wasm32-unknown-unknown are currently totally broken
forcing a release build
Finished release [optimized] target(s) in 0.0 secs
```
## Running local web server
```
cargo web start --target=wasm32-unknown-unknown
```
or you can use the handy build script:
```
bash build.sh --serve
```
You should see something like:
```
warning: debug builds on the wasm32-unknown-unknown are currently totally broken
forcing a release build
Finished release [optimized] target(s) in 0.0 secs
If you need to serve any extra files put them in the 'static' directory
in the root of your crate; they will be served alongside your application.
You can also put a 'static' directory in your 'src' directory.
Your application is being served at '/rickycodes.js'. It will be automatically
rebuilt if you make any changes in your code.
You can access the web server at `http://[::1]:8000`.
```
## License
Licensed under
* MIT license ([LICENSE](LICENSE) or http://opensource.org/licenses/MIT)
[](https://app.fossa.com/projects/git%2Bgithub.com%2Frickycodes%2Fwww?ref=badge_large)