2022-08-26 22:00:43 +01:00
|
|
|
pub const PORT: u16 = 44443;
|
|
|
|
|
|
|
|
pub const PACKAGE_NAME: &'static str = env!("CARGO_PKG_NAME");
|
|
|
|
pub const PACKAGE_VERSION: &'static str = env!("CARGO_PKG_VERSION");
|
|
|
|
|
2023-11-18 20:55:17 +00:00
|
|
|
pub const DEFAULT_SETTINGS_FILE: &str = "default_settings.ron";
|
2022-11-10 03:09:05 +00:00
|
|
|
pub const DEFAULT_SETTINGS_NAME: &str = "Main";
|
2023-11-18 20:17:56 +00:00
|
|
|
pub const DEFAULT_SETTINGS_VARIANT_NAME: &str = "Primary";
|
2022-12-03 02:12:13 +00:00
|
|
|
|
2023-11-18 20:55:17 +00:00
|
|
|
pub const LIMITS_FILE: &str = "limits_cache.ron";
|
2024-02-10 18:03:04 +00:00
|
|
|
pub const LIMITS_REFRESH_PERIOD: std::time::Duration = std::time::Duration::from_secs(60 * 60 * 24); // 1 day
|
|
|
|
pub const LIMITS_STARTUP_WAIT: std::time::Duration = std::time::Duration::from_secs(60); // 1 minute
|
2023-11-18 20:55:17 +00:00
|
|
|
pub const LIMITS_OVERRIDE_FILE: &str = "limits_override.ron";
|
2023-10-24 23:33:56 +01:00
|
|
|
|
2024-02-03 02:04:10 +00:00
|
|
|
pub const WEB_SETTINGS_CACHE: &str = "store_cache.ron";
|
|
|
|
|
2023-07-04 03:00:18 +01:00
|
|
|
pub const MESSAGE_SEEN_ID_FILE: &str = "seen_message.bin";
|