The source code for my personal site. https://blakerain.com/
Go to file
Blake Rain ea82e851c4
check / check (push) Successful in 10m5s Details
deploy / deploy-site (push) Successful in 5m20s Details
Bump version
2023-10-30 11:57:35 +00:00
.gitea/workflows Install dependencies 2023-10-27 13:54:14 +01:00
cf Remove the analytics code 2023-10-11 13:15:31 +01:00
content Fix spelling mistakes (and add typos check to CI) 2023-10-27 11:51:59 +01:00
cypress Initial Cypress setup 2023-10-27 10:59:47 +01:00
macros Fix formatting issue 2023-10-27 11:52:39 +01:00
media Added logo images 2018-11-04 16:19:05 +00:00
model Switch over to WebAssembly, Rust and Yew (#35) 2023-08-30 19:01:40 +01:00
public Initial rebuild of position size calculator (#37) 2023-09-25 17:48:37 +01:00
src Add Gitea icon to navigation 2023-10-30 11:57:10 +00:00
style Initial rebuild of position size calculator (#37) 2023-09-25 17:48:37 +01:00
tools Fix spelling mistakes (and add typos check to CI) 2023-10-27 11:51:59 +01:00
.gitignore Initial Cypress setup 2023-10-27 10:59:47 +01:00
.swcrc Switch over to WebAssembly, Rust and Yew (#35) 2023-08-30 19:01:40 +01:00
Cargo.toml Bump version 2023-10-30 11:57:35 +00:00
LICENSE Create LICENSE 2021-07-31 23:14:26 +01:00
README.md Update README 2023-10-26 13:55:20 +01:00
Trunk.toml Remove directory from trunk config 2023-10-27 14:59:13 +01:00
build.rs Add build date to logs 2023-09-03 12:21:33 +01:00
cypress.config.js Initial Cypress setup 2023-10-27 10:59:47 +01:00
index.html Add plausible analytics to <head> 2023-10-11 12:51:15 +01:00
package.json Bump version 2023-10-30 11:57:35 +00:00
postcss.config.js Switch over to WebAssembly, Rust and Yew (#35) 2023-08-30 19:01:40 +01:00
tailwind.config.js Initial rebuild of position size calculator (#37) 2023-09-25 17:48:37 +01:00

README.md

blakerain.com

AWS Rust

This repository contains the sources for my website: blakerain.com. The website is built using Yew. The website is deployed to an S3 bucket and served using the AWS CloudFront CDN. Deployment from this repository is performed by a Gitea workflow.

Cargo Features

There are a number of Cargo feature flags that are used during development and during release builds. These features are as follows:

  • static feature is set when we want to build the static rendering application, called site-build, which will generate the static HTML pages for the site.
  • hydration feature is set when we're building the WebAssembly for hydration into a statically rendered page.

During development, neither static nor hydration are set. This allows commands like trunk serve to serve the WebAssembly and nicely rebuild upon file changes and so on.

During a release build, we first build the site using trunk build with the hydration feature enabled. This will build a WebAssembly module with the hydration support. Afterwards, we use cargo run to run the site-build app with the static feature set, which allows us to generate all the static pages.

trunk build --release --features hydration
cargo run --release --features static --bin site-build