08586f0a7a7d00957f3b6c57ae4c9d45f9c3fd94
Some checks failed
CI / Check typos (push) Failing after 9s
CI / Check links (push) Failing after 13s
CI / Clippy (push) Successful in 58s
CI / Build container (push) Has been cancelled
CI / Deploy on waypoint (push) Has been cancelled
CI / Build and test (push) Has been cancelled
Mark's webpage
This is the source code behind betalupi.com, featuring a very efficient mini web framework written from scratch in Rust. It uses...
- Axum as an http server
- Maud for html templates
- Grass to parse and compile sass
- markdown-it to convert md to html
Overview & Arch:
-
bin/webpage: Simple cli that startsservice-webpage -
lib/libservice: Provides theServicetrait. A service is a group of http routes with an optionalutoipaschema.
This library decouples compiled binaries from the services they provide, and makes sure all services are self-contained. -
lib/page: Provides [PageServer], which builds anaxumrouter that provides a caching and headers for resources served through http.- Also provides [Servable], which is a trait for any resource that may be served.
- the [Page] servable serves html generated by a closure.
- the [StaticAsset] servable serves static assets (css, images, misc files), and provides transformation utilties for image assets (via
pixel-transform).
-
service/service-webpage: AServicethat runs aPageServerthat provides the content on betalupi.com
Description
Languages
Rust
95%
SCSS
4.4%
Dockerfile
0.4%
JavaScript
0.2%