1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! Daemon configuration: data directory, socket path, WAL path resolution.
//!
//! Provides default path resolution for the daemon's runtime data directory,
//! Unix socket, and write-ahead log. All paths can be overridden via
//! environment variables (`XDG_DATA_HOME`, `RUNTIMO_WAL_PATH`).
//!
//! # Ownership
//! Owns path resolution and data directory lifecycle.
//!
//! # Dependencies
//! - `runtimo_core::utils` for `data_dir()` and `wal_path()` base resolution.
use PathBuf;
/// Returns the root data directory for Runtimo runtime data.
///
/// Delegates to `runtimo_core::utils::data_dir()` which uses `XDG_DATA_HOME`
/// with fallback to the default XDG path.
/// Returns the default Unix socket path (`{data_dir}/runtimo.sock`).
/// Returns the default WAL path (env-overridable via `RUNTIMO_WAL_PATH`).
/// Ensures the data directory exists, creating it recursively if needed.