From 16f8cf5ced3ddcbfb142665e3f372e0fc8be73c5 Mon Sep 17 00:00:00 2001 From: ozpv <39195175+ozpv@users.noreply.github.com> Date: Tue, 26 May 2026 01:06:55 -0500 Subject: add site --- src/state.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/state.rs (limited to 'src/state.rs') diff --git a/src/state.rs b/src/state.rs new file mode 100644 index 0000000..dfffbe0 --- /dev/null +++ b/src/state.rs @@ -0,0 +1,18 @@ +use std::path::PathBuf; +use std::sync::Arc; + +#[derive(Clone)] +pub struct AppState { + dist_dir: Arc, +} + +impl AppState { + pub fn new(dist_dir: PathBuf) -> Self { + let dist_dir = Arc::new(dist_dir); + + Self { dist_dir } + } + pub fn get_dist_dir(&self) -> Arc { + Arc::clone(&self.dist_dir) + } +} -- cgit v1.2.3