Reorganize

This commit is contained in:
2025-11-02 11:08:51 -08:00
parent 14d8a9b00c
commit fd48f75245
75 changed files with 8 additions and 17 deletions

View File

@@ -1,5 +1,5 @@
[workspace] [workspace]
members = ["crates/*"] members = ["crates/bin/*", "crates/lib/*", "crates/macro/*", "crates/service/*"]
resolver = "2" resolver = "2"
[workspace.package] [workspace.package]
@@ -64,12 +64,13 @@ type_complexity = "allow"
# #
[workspace.dependencies] [workspace.dependencies]
assetserver = { path = "crates/assetserver" } macro-assets = { path = "crates/macro/macro-assets" }
toolbox = { path = "crates/toolbox" } macro-sass = { path = "crates/macro/macro-sass" }
libservice = { path = "crates/libservice" } assetserver = { path = "crates/lib/assetserver" }
service-webpage = { path = "crates/service-webpage" } libservice = { path = "crates/lib/libservice" }
macro-assets = { path = "crates/macro-assets" } toolbox = { path = "crates/lib/toolbox" }
macro-sass = { path = "crates/macro-sass" }
service-webpage = { path = "crates/service/service-webpage" }
# #

View File

@@ -12,5 +12,3 @@ pub trait Asset {
/// The embedded file contents as a byte slice /// The embedded file contents as a byte slice
const BYTES: &'static [u8]; const BYTES: &'static [u8];
} }
// TODO: image manipulation

View File

Before

Width:  |  Height:  |  Size: 284 KiB

After

Width:  |  Height:  |  Size: 284 KiB

View File

Before

Width:  |  Height:  |  Size: 112 KiB

After

Width:  |  Height:  |  Size: 112 KiB

View File

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View File

@@ -1,6 +1,5 @@
use maud::{Markup, Render, html}; use maud::{Markup, Render, html};
// TODO: turn these into one self-contained struct
pub struct MangledBetaEmail {} pub struct MangledBetaEmail {}
impl Render for MangledBetaEmail { impl Render for MangledBetaEmail {

View File

@@ -71,8 +71,6 @@ const OPTS: Options = Options {
impl Render for Markdown<'_> { impl Render for Markdown<'_> {
fn render(&self) -> Markup { fn render(&self) -> Markup {
// TODO: cache
/* /*
let mut ast = markdown::to_mdast(MD_A, &opts.parse).unwrap(); let mut ast = markdown::to_mdast(MD_A, &opts.parse).unwrap();
let walk = AstWalkMut::new(&mut ast); let walk = AstWalkMut::new(&mut ast);

View File

@@ -1,7 +1,6 @@
use assetserver::Asset; use assetserver::Asset;
use macro_assets::assets; use macro_assets::assets;
// TODO: auto-generate from dir
assets! { assets! {
prefix: "/assets" prefix: "/assets"
router: asset_router() router: asset_router()

View File

@@ -9,10 +9,6 @@ use crate::{
routes::assets::Image_Icon, routes::assets::Image_Icon,
}; };
// TODO: emoji
// TODO: spellcheck
// TODO: check links
pub async fn links() -> Markup { pub async fn links() -> Markup {
let meta = PageMetadata { let meta = PageMetadata {
title: "Links".into(), title: "Links".into(),