The source code for my personal site. https://blakerain.com/
Go to file
Blake Rain 5494e204b4
Some checks failed
check / check (push) Has been cancelled
deploy / deploy-site (push) Successful in 2m35s
chore: bump version to v2.2.3
2024-05-20 21:44:00 +01:00
.gitea/workflows feat(build): add Trunk minification to release build 2024-05-20 21:35:42 +01:00
cf Remove the analytics code 2023-10-11 13:15:31 +01:00
content feat: add my public key to the about page 2024-05-20 18:07:56 +01:00
cypress Initial Cypress setup 2023-10-27 10:59:47 +01:00
macros chore: bump dependencies and version to 2.2.0 2024-05-20 19:37:54 +01:00
media Added logo images 2018-11-04 16:19:05 +00:00
model feat: add collapsible sections 2024-05-20 18:07:08 +01:00
public Initial rebuild of position size calculator (#37) 2023-09-25 17:48:37 +01:00
src fix(build): issue with missing attribute after build 2024-05-20 21:42:10 +01:00
style feat: add collapsible sections 2024-05-20 18:07:08 +01:00
tools fix(build): remove minification that conflicts with SRI 2024-05-20 21:29:06 +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
build.rs Add build date to logs 2023-09-03 12:21:33 +01:00
Cargo.toml chore: bump version to v2.2.3 2024-05-20 21:44:00 +01:00
cypress.config.js Initial Cypress setup 2023-10-27 10:59:47 +01:00
index.html fix(build): added <body> to index.html 2024-05-20 21:05:04 +01:00
LICENSE Create LICENSE 2021-07-31 23:14:26 +01:00
package.json chore: bump version to v2.2.3 2024-05-20 21:44:00 +01:00
postcss.config.js Switch over to WebAssembly, Rust and Yew (#35) 2023-08-30 19:01:40 +01:00
README.md Update README 2023-10-26 13:55:20 +01:00
tailwind.config.js Initial rebuild of position size calculator (#37) 2023-09-25 17:48:37 +01:00
Trunk.toml fix(build): remove minification that conflicts with SRI 2024-05-20 21:29:06 +01:00

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