host: AlertsConfig and ThemeConfig live in ungated modules, so the host compiles and tests without the tauri feature

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
CRTkafa 2026-10-01 16:05:27 +07:00
parent 94cadc1bdb
commit 52ab1fc00b
4 changed files with 25 additions and 19 deletions

View file

@ -7,6 +7,16 @@ use serde::{Deserialize, Serialize};
use std::collections::{HashMap, HashSet, VecDeque};
use std::time::{Duration, Instant};
/// What an app declares about its alerts for the host's settings commands
/// ([`crate::alerts_commands`]): where they are saved and how the page runtime takes the keywords
/// (`window.<global>.<member>.set(keywords)`, else parked in `window.<queue>`).
#[derive(Clone, Copy, Debug)]
pub struct AlertsConfig {
pub file: &'static str,
pub member: &'static str,
pub queue: &'static str,
}
pub const MAX_KEYWORDS: usize = 32;
pub const MIN_KEYWORD_CHARS: usize = 2;
pub const MAX_KEYWORD_CHARS: usize = 64;