Reorganize repo into cargo workspace

This commit is contained in:
2024-12-14 15:37:35 -05:00
parent cc5af850ce
commit 33094f897d
54 changed files with 3164 additions and 91 deletions
+16
View File
@@ -0,0 +1,16 @@
mod html;
mod server;
use std::env;
use server::*;
#[tokio::main]
async fn main() -> anyhow::Result<()> {
let port: Option<u16> = match env::args().nth(1) {
Some(value) => Some(value.parse()?),
None => None,
};
Blog::new().await?.serve(port).await;
Ok(())
}