Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rickycodes/www
my website built using Rust (stdweb) → .wasm (also: dat://ricky.codes)
https://github.com/rickycodes/www
cargo rust stdweb wasm webassembly website www
Last synced: 24 days ago
JSON representation
my website built using Rust (stdweb) → .wasm (also: dat://ricky.codes)
- Host: GitHub
- URL: https://github.com/rickycodes/www
- Owner: rickycodes
- License: mit
- Created: 2018-03-12T13:02:22.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2023-09-08T19:58:47.000Z (10 months ago)
- Last Synced: 2024-04-14T16:12:05.603Z (3 months ago)
- Topics: cargo, rust, stdweb, wasm, webassembly, website, www
- Language: HTML
- Homepage: https://ricky.codes
- Size: 901 KB
- Stars: 12
- Watchers: 1
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-stars - www
README
[![Build Status](https://travis-ci.org/rickycodes/www.svg?branch=master)](https://travis-ci.org/rickycodes/www) ![Shellcheck Status](https://img.shields.io/badge/shellcheck-passing-brightgreen) [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Frickycodes%2Fwww.svg?type=shield)](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 workYou 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 secsIf 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`.
```
## LicenseLicensed under
* MIT license ([LICENSE](LICENSE) or http://opensource.org/licenses/MIT)
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Frickycodes%2Fwww.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Frickycodes%2Fwww?ref=badge_large)