diff options
author | Ashelyn Rose <git@ashen.earth> | 2025-04-26 21:06:00 -0600 |
---|---|---|
committer | Ashelyn Rose <git@ashen.earth> | 2025-04-26 21:06:00 -0600 |
commit | 2dacece4eedc8af2ccde3be6918371293350cc4e (patch) | |
tree | 81364da50cad615cd387f38d1abcc62102939033 /src/data/namespace.rs | |
parent | 619373a261ad18c51cd09bc61d116f585c8295ec (diff) |
Convert to rocket and morgana no-leptos
Diffstat (limited to 'src/data/namespace.rs')
-rw-r--r-- | src/data/namespace.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/data/namespace.rs b/src/data/namespace.rs index 4aa0419..4347abb 100644 --- a/src/data/namespace.rs +++ b/src/data/namespace.rs @@ -1,15 +1,13 @@ -use serde::{Deserialize, Serialize}; use std::collections::HashMap; use uuid::Uuid; use crate::data::PageUuid; -#[cfg(feature = "ssr")] use std::{ fs, path::{Path, PathBuf}, }; -#[derive(Clone, Debug, Serialize, Deserialize)] +#[derive(Clone, Debug)] pub struct Namespace { pub page: Option<PageUuid>, pub children: HashMap<String, Namespace>, @@ -28,7 +26,6 @@ impl Namespace { } } -#[cfg(feature = "ssr")] impl Namespaces { pub fn init(namespaces_dir: &Path) -> Result<Self, String> { // Read dir recursive |