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

View File

@@ -12,5 +12,3 @@ pub trait Asset {
/// The embedded file contents as a byte slice
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};
// TODO: turn these into one self-contained struct
pub struct MangledBetaEmail {}
impl Render for MangledBetaEmail {

View File

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

View File

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

View File

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