Skip to main content

hyprstream_core/
constants.rs

1//! Shared constants for the hyprstream application
2
3/// File permissions for security
4pub mod permissions {
5    /// Standard file permissions for downloaded models (rw-r--r--)
6    /// Owner can read/write, others can only read
7    #[cfg(unix)]
8    pub const MODEL_FILE_PERMISSIONS: u32 = 0o644;
9
10    /// Restrictive permissions for auth tokens (rw-------)
11    /// Only owner can read/write
12    #[cfg(unix)]
13    pub const AUTH_TOKEN_PERMISSIONS: u32 = 0o600;
14}