refactor: more lean main
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user