spacetimedb_paths/
standalone.rs

1use crate::server::ServerDataDir;
2use crate::utils::path_type;
3
4pub trait StandaloneDataDirExt: AsRef<std::path::Path> {
5    fn program_bytes(&self) -> ProgramBytesDir {
6        ProgramBytesDir(self.as_ref().join("program-bytes"))
7    }
8    fn control_db(&self) -> ControlDbDir {
9        ControlDbDir(self.as_ref().join("control-db"))
10    }
11}
12
13impl StandaloneDataDirExt for ServerDataDir {}
14
15path_type!(ProgramBytesDir: dir);
16path_type!(ControlDbDir: dir);