refactor: more lean main

This commit is contained in:
2024-02-28 16:10:41 +01:00
parent 55ad8a15f6
commit eebf8b01a0
7 changed files with 34 additions and 25 deletions

View File

@@ -18,7 +18,7 @@ minijinja = { version = "1.0.11", features = [
"deserialization",
] }
minijinja-autoreload = "1.0.8"
pulldown-cmark = "0.9.3"
pulldown-cmark = "0.10"
serde = { version = "1.0.188", features = ["derive"] }
tokio = { version = "1.32.0", features = ["full"] }
log = "0.4.20"

View File

@@ -7,10 +7,10 @@ use std::sync::Arc;
pub trait AdminState {
fn get_templates(&self) -> &Templates;
fn get_registry(&self) -> SharedRegistry;
fn get_registry(&self) -> SharedAdminRegistry;
}
pub type SharedRegistry = Arc<AdminRegistry>;
pub type SharedAdminRegistry = Arc<AdminRegistry>;
// main registry.
pub struct AdminRegistry {