diff --git a/Cargo.lock b/Cargo.lock index 61ad12e..8f6f8c9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1266,6 +1266,12 @@ dependencies = [ "zlib-rs", ] +[[package]] +name = "float_next_after" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8bf7cc16383c4b8d58b9905a8509f02926ce3058053c056376248d958c9df1e8" + [[package]] name = "foldhash" version = "0.1.5" @@ -1791,6 +1797,17 @@ dependencies = [ "thiserror 2.0.21", ] +[[package]] +name = "iced_aw" +version = "0.14.1" +dependencies = [ + "cfg-if", + "iced_core", + "iced_fonts", + "iced_widget", + "web-time", +] + [[package]] name = "iced_core" version = "0.14.0" @@ -1820,6 +1837,29 @@ dependencies = [ "log", ] +[[package]] +name = "iced_fonts" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "214cff7c8499e328774216690e58e315a1a5f8f6fdd1035aed6298e62ffc4c1d" +dependencies = [ + "iced_core", + "iced_fonts_macros", + "iced_widget", +] + +[[package]] +name = "iced_fonts_macros" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ef5125e110cb19cd1910a28298661c98c5d9ab02eef43594968352940e8752e" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", + "ttf-parser", +] + [[package]] name = "iced_futures" version = "0.14.0" @@ -1830,6 +1870,7 @@ dependencies = [ "iced_core", "log", "rustc-hash 2.1.3", + "tokio", "wasm-bindgen-futures", "wasmtimer", ] @@ -1847,6 +1888,7 @@ dependencies = [ "iced_core", "iced_futures", "log", + "lyon_path", "raw-window-handle", "rustc-hash 2.1.3", "thiserror 2.0.21", @@ -1921,6 +1963,7 @@ dependencies = [ "iced_debug", "iced_graphics", "log", + "lyon", "rustc-hash 2.1.3", "thiserror 2.0.21", "wgpu", @@ -2193,6 +2236,58 @@ version = "0.16.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f66e8d5d03f609abc3a39e6f08e4164ebf1447a732906d39eb9b99b7919ef39" +[[package]] +name = "lyon" +version = "1.0.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd0578bdecb7d6d88987b8b2b1e3a4e2f81df9d0ece1078623324a567904e7b7" +dependencies = [ + "lyon_algorithms", + "lyon_tessellation", +] + +[[package]] +name = "lyon_algorithms" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f3a6b9d4e8b48acd531fbf1241ad9b270df6e60b6b92bdea1469f4f40899d805" +dependencies = [ + "lyon_path", + "num-traits", +] + +[[package]] +name = "lyon_geom" +version = "1.0.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d82dd26aa4dc0b5b70b9115de59824842bcb43cf4a28e1b1e6d0ad148c93f93e" +dependencies = [ + "arrayvec", + "euclid", + "num-traits", +] + +[[package]] +name = "lyon_path" +version = "1.0.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c463f9c428b7fc5ec885dcd39ce4aa61e29111d0e33483f6f98c74e89d8621e" +dependencies = [ + "lyon_geom", + "num-traits", +] + +[[package]] +name = "lyon_tessellation" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd4872650e70dc907dd4f7ebc449d7d657a0d2658e423b2e724970870bbbf75b" +dependencies = [ + "float_next_after", + "lyon_path", + "num-traits", +] + [[package]] name = "malloc_buf" version = "0.0.6" @@ -2299,9 +2394,13 @@ name = "moorly" version = "0.1.0" dependencies = [ "iced", + "iced_aw", "russh", "russh-sftp", + "serde", "tokio", + "toml", + "uuid", ] [[package]] @@ -3178,7 +3277,7 @@ version = "3.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f" dependencies = [ - "toml_edit", + "toml_edit 0.25.17+spec-1.1.0", ] [[package]] @@ -3652,6 +3751,15 @@ dependencies = [ "syn 3.0.9", ] +[[package]] +name = "serde_spanned" +version = "0.6.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf41e0cfaf7226dca15e8197172c295a782857fcb97fad1808a166870dee75a3" +dependencies = [ + "serde", +] + [[package]] name = "serdect" version = "0.4.3" @@ -4206,6 +4314,27 @@ dependencies = [ "tokio", ] +[[package]] +name = "toml" +version = "0.8.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc1beb996b9d83529a9e75c17a1686767d148d70663143c7854d8b4a09ced362" +dependencies = [ + "serde", + "serde_spanned", + "toml_datetime 0.6.11", + "toml_edit 0.22.27", +] + +[[package]] +name = "toml_datetime" +version = "0.6.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22cddaf88f4fbc13c51aebbf5f8eceb5c7c5a9da2ac40a13519eb5b0a0e8f11c" +dependencies = [ + "serde", +] + [[package]] name = "toml_datetime" version = "1.1.2+spec-1.1.0" @@ -4215,6 +4344,20 @@ dependencies = [ "serde_core", ] +[[package]] +name = "toml_edit" +version = "0.22.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41fe8c660ae4257887cf66394862d21dbca4a6ddd26f04a3560410406a2f819a" +dependencies = [ + "indexmap", + "serde", + "serde_spanned", + "toml_datetime 0.6.11", + "toml_write", + "winnow 0.7.15", +] + [[package]] name = "toml_edit" version = "0.25.17+spec-1.1.0" @@ -4222,9 +4365,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e3641d5bbb5349a79e1020a242d251efbc546ad8048d133958323ce9c40a9c9c" dependencies = [ "indexmap", - "toml_datetime", + "toml_datetime 1.1.2+spec-1.1.0", "toml_parser", - "winnow", + "winnow 1.0.4", ] [[package]] @@ -4233,9 +4376,15 @@ version = "1.1.5+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baa693a8032d7e1cada7d0041e96126df243179ff061456783ac7f12bda4744c" dependencies = [ - "winnow", + "winnow 1.0.4", ] +[[package]] +name = "toml_write" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d99f8c9a7727884afe522e9bd5edbfc91a3312b36a77b5fb8926e4c31a41801" + [[package]] name = "tracing" version = "0.1.44" @@ -4352,6 +4501,7 @@ version = "1.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4a0e2d11620c50695fe12bbbfde96b3477fe606e7284c22d505c12ce51214514" dependencies = [ + "getrandom 0.4.3", "js-sys", "serde_core", "wasm-bindgen", @@ -5104,6 +5254,15 @@ dependencies = [ "xkbcommon-dl", ] +[[package]] +name = "winnow" +version = "0.7.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df79d97927682d2fd8adb29682d1140b343be4ac0f08fd68b7765d9c059d3945" +dependencies = [ + "memchr", +] + [[package]] name = "winnow" version = "1.0.4" @@ -5229,7 +5388,7 @@ dependencies = [ "uds_windows", "uuid", "windows-sys 0.61.2", - "winnow", + "winnow 1.0.4", "zbus_macros", "zbus_names", "zvariant", @@ -5257,7 +5416,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "812a12be4ead7a59e18ea8f047d08add0066b73bc62fc1467066a2472ae088dd" dependencies = [ "serde", - "winnow", + "winnow 1.0.4", "zvariant", ] @@ -5317,7 +5476,7 @@ dependencies = [ "endi", "enumflags2", "serde", - "winnow", + "winnow 1.0.4", "zcheapstr", "zvariant_derive", "zvariant_utils", @@ -5346,5 +5505,5 @@ dependencies = [ "quote", "serde", "syn 3.0.9", - "winnow", + "winnow 1.0.4", ] diff --git a/Cargo.toml b/Cargo.toml index cb9a34c..7a689ba 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,11 @@ version = "0.1.0" edition = "2024" [dependencies] -iced = "0.14.0" +iced = { version = "0.14.0", features = ["tokio"] } +iced_aw = { path = "vendor/iced_aw", default-features = false, features = ["color_picker"] } russh = "0.65.0" russh-sftp = "3.0.1" +serde = { version = "1.0.229", features = ["derive"] } tokio = { version = "1.54.1", features = ["full"] } +toml = "0.8" +uuid = { version = "1.29.0", features = ["v4"] } diff --git a/src/main.rs b/src/main.rs index 559e503..36dbb37 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,9 +1,11 @@ use std::collections::HashMap; use std::path::PathBuf; +use serde::{Deserialize, Serialize}; + use iced::widget::{ - button, column, container, mouse_area, responsive, row, rule, scrollable, space, stack, text, - text_input, toggler, tooltip, + button, column, container, mouse_area, pick_list, responsive, row, rule, scrollable, space, + stack, text, text_input, toggler, tooltip, }; use iced::widget::{Id, operation}; use iced::time::{Duration, Instant}; @@ -35,6 +37,8 @@ const MENU_PADDING: f32 = 4.0; const TAB_SCROLL_STEP: f32 = 120.0; /// Identifies the tab-strip scrollable for programmatic scrolling. const TAB_SCROLL_ID: Id = Id::new("tab-strip"); +/// Identifies the theme-name field so it can be focused when opened. +const THEME_NAME_INPUT: Id = Id::new("theme-name"); fn main() -> iced::Result { iced::application(Moorly::default, update, view) @@ -107,14 +111,19 @@ fn subscription(state: &Moorly) -> Subscription { .values() .any(|animation| animation.is_animating(now)); + let mut subscriptions = vec![ + keyboard, + iced::time::every(Duration::from_secs(1)).map(|_| Message::ReloadThemes), + ]; + if state.fade_animation.is_animating(now) || state.pending_settings_section.is_some() || tab_close_animating { - Subscription::batch([keyboard, window::frames().map(Message::Frame)]) - } else { - keyboard + subscriptions.push(window::frames().map(Message::Frame)); } + + Subscription::batch(subscriptions) } #[derive(Debug, Clone, PartialEq, Eq, Hash)] @@ -374,6 +383,10 @@ struct Moorly { menu_open: bool, tabs_submenu_open: bool, theme: theme::Preference, + theme_choice: ThemeChoice, + custom_themes: Vec, + theme_name_dialog: Option, + theme_signature: Vec<(String, u64)>, shortcuts: Shortcuts, shortcut_capture: Option, tabs: Vec, @@ -386,6 +399,9 @@ struct Moorly { fade_settings_draft: bool, hide_tab_close: bool, hide_tab_close_draft: bool, + advanced_open: bool, + colors: [Color; 5], + open_color_picker: Option, fade_animation: Animation, hovered_tab: Option, tab_close_fades: HashMap>, @@ -416,6 +432,319 @@ impl Tab { } } +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +enum ColorOption { + Accent, + ActiveTabOutline, + MainBackground, + SidebarBackground, + Text, +} + +impl ColorOption { + const ALL: [Self; 5] = [ + Self::Accent, + Self::ActiveTabOutline, + Self::MainBackground, + Self::SidebarBackground, + Self::Text, + ]; + + fn label(self) -> &'static str { + match self { + Self::Accent => "Accent color", + Self::ActiveTabOutline => "Active tab outline", + Self::MainBackground => "Main background", + Self::SidebarBackground => "Sidebar background", + Self::Text => "Text color", + } + } + + fn index(self) -> usize { + match self { + Self::Accent => 0, + Self::ActiveTabOutline => 1, + Self::MainBackground => 2, + Self::SidebarBackground => 3, + Self::Text => 4, + } + } +} + +const DEFAULT_COLORS: [Color; 5] = [ + theme::SETTINGS_ACTIVE, + theme::ACTIVE_TAB, + theme::TAB_ACTIVE_BG, + theme::TAB_INACTIVE_BG, + theme::TAB_TEXT, +]; + +#[derive(Debug, Clone, PartialEq, Eq)] +enum ThemeChoice { + BuiltIn(theme::Preference), + Custom { id: String, name: String }, +} + +impl ThemeChoice { + fn label(&self) -> String { + match self { + Self::BuiltIn(preference) => preference.label().to_owned(), + Self::Custom { name, .. } => name.clone(), + } + } +} + +#[derive(Debug, Clone, PartialEq, Eq)] +enum ThemeOption { + Theme { + choice: ThemeChoice, + selected: bool, + }, + Separator, +} + +impl std::fmt::Display for ThemeOption { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match self { + Self::Separator => f.write_str("────────────────"), + Self::Theme { choice, selected } => { + if *selected { + write!(f, "✓ {}", choice.label()) + } else { + f.write_str(&choice.label()) + } + } + } + } +} + +#[derive(Debug, Clone)] +struct CustomTheme { + id: String, + name: String, + based_on: theme::Preference, + colors: [Color; 5], +} + +#[derive(Debug, Serialize, Deserialize)] +struct ThemeFile { + name: String, + based_on: String, + #[serde(skip_serializing_if = "Option::is_none")] + accent: Option, + #[serde(skip_serializing_if = "Option::is_none")] + active_tab_outline: Option, + #[serde(skip_serializing_if = "Option::is_none")] + main_background: Option, + #[serde(skip_serializing_if = "Option::is_none")] + sidebar_background: Option, + #[serde(skip_serializing_if = "Option::is_none")] + text: Option, +} + +impl ThemeFile { + fn from_colors( + name: String, + based_on: theme::Preference, + colors: &[Color; 5], + base: &[Color; 5], + ) -> Self { + let changed = |option: ColorOption| { + let index = option.index(); + + (colors[index] != base[index]).then(|| color_to_hex(colors[index])) + }; + + Self { + name, + based_on: based_on.as_str().to_owned(), + accent: changed(ColorOption::Accent), + active_tab_outline: changed(ColorOption::ActiveTabOutline), + main_background: changed(ColorOption::MainBackground), + sidebar_background: changed(ColorOption::SidebarBackground), + text: changed(ColorOption::Text), + } + } + + fn colors(&self, based_on: theme::Preference) -> [Color; 5] { + let mut colors = builtin_colors(based_on); + + let mut apply = |option: ColorOption, value: &Option| { + if let Some(color) = value.as_deref().and_then(color_from_hex) { + colors[option.index()] = color; + } + }; + + apply(ColorOption::Accent, &self.accent); + apply(ColorOption::ActiveTabOutline, &self.active_tab_outline); + apply(ColorOption::MainBackground, &self.main_background); + apply(ColorOption::SidebarBackground, &self.sidebar_background); + apply(ColorOption::Text, &self.text); + + colors + } +} + +fn builtin_colors(_preference: theme::Preference) -> [Color; 5] { + DEFAULT_COLORS +} + +fn color_to_hex(color: Color) -> String { + let r = (color.r * 255.0).round() as u8; + let g = (color.g * 255.0).round() as u8; + let b = (color.b * 255.0).round() as u8; + + if color.a >= 0.999 { + format!("#{r:02X}{g:02X}{b:02X}") + } else { + let a = (color.a * 255.0).round() as u8; + format!("#{r:02X}{g:02X}{b:02X}{a:02X}") + } +} + +fn color_from_hex(text: &str) -> Option { + let hex = text.trim().trim_start_matches('#'); + + let byte = |range: std::ops::Range| u8::from_str_radix(&hex[range], 16).ok(); + + match hex.len() { + 6 => Some(Color::from_rgb8(byte(0..2)?, byte(2..4)?, byte(4..6)?)), + 8 => Some(Color::from_rgba8( + byte(0..2)?, + byte(2..4)?, + byte(4..6)?, + f32::from(byte(6..8)?) / 255.0, + )), + _ => None, + } +} + +fn themes_dir() -> Option { + config_path().and_then(|path| path.parent().map(|parent| parent.join("Themes"))) +} + +fn load_custom_themes() -> Vec { + let Some(dir) = themes_dir() else { + return Vec::new(); + }; + let Ok(entries) = std::fs::read_dir(dir) else { + return Vec::new(); + }; + + let mut themes = Vec::new(); + + for entry in entries.flatten() { + let path = entry.path(); + + if path.extension().and_then(|extension| extension.to_str()) != Some("toml") { + continue; + } + + let Some(id) = path + .file_stem() + .map(|stem| stem.to_string_lossy().into_owned()) + else { + continue; + }; + let Ok(text) = std::fs::read_to_string(&path) else { + continue; + }; + let Ok(file) = toml::from_str::(&text) else { + continue; + }; + let Some(based_on) = theme::Preference::parse(&file.based_on) else { + continue; + }; + + let colors = file.colors(based_on); + themes.push(CustomTheme { + id, + name: file.name, + based_on, + colors, + }); + } + + themes +} + +fn themes_signature() -> Vec<(String, u64)> { + let Some(dir) = themes_dir() else { + return Vec::new(); + }; + let Ok(entries) = std::fs::read_dir(dir) else { + return Vec::new(); + }; + + let mut signature = Vec::new(); + + for entry in entries.flatten() { + let path = entry.path(); + + if path.extension().and_then(|extension| extension.to_str()) != Some("toml") { + continue; + } + + let name = path + .file_name() + .map(|name| name.to_string_lossy().into_owned()) + .unwrap_or_default(); + let modified = entry + .metadata() + .ok() + .and_then(|metadata| metadata.modified().ok()) + .and_then(|time| time.duration_since(std::time::UNIX_EPOCH).ok()) + .map(|duration| duration.as_nanos() as u64) + .unwrap_or_default(); + + signature.push((name, modified)); + } + + signature.sort(); + signature +} + +fn write_custom_theme( + id: &str, + name: &str, + based_on: theme::Preference, + colors: &[Color; 5], +) -> Option<()> { + let dir = themes_dir()?; + std::fs::create_dir_all(&dir).ok()?; + + let base = builtin_colors(based_on); + let file = ThemeFile::from_colors(name.to_owned(), based_on, colors, &base); + let text = toml::to_string_pretty(&file).ok()?; + + std::fs::write(dir.join(format!("{id}.toml")), text).ok()?; + Some(()) +} + +fn apply_theme_choice(state: &mut Moorly, choice: ThemeChoice) { + match &choice { + ThemeChoice::BuiltIn(preference) => { + state.theme = *preference; + state.colors = builtin_colors(*preference); + theme::save(*preference); + } + ThemeChoice::Custom { id, .. } => { + if let Some(theme) = state.custom_themes.iter().find(|theme| theme.id == *id) { + state.theme = theme.based_on; + state.colors = theme.colors; + state.theme_choice = ThemeChoice::Custom { + id: theme.id.clone(), + name: theme.name.clone(), + }; + theme::save(theme.based_on); + return; + } + } + } + + state.theme_choice = choice; +} + #[derive(Debug, Clone, Copy, PartialEq, Eq, Default)] enum SettingsSection { #[default] @@ -511,11 +840,16 @@ impl Default for Moorly { let show_start_tab = load_setting("show_start_tab"); let fade_settings = load_setting("fade_settings"); let hide_tab_close = load_setting("hide_tab_close"); + let theme = theme::load(); Self { menu_open: false, tabs_submenu_open: false, - theme: theme::load(), + theme, + theme_choice: ThemeChoice::BuiltIn(theme), + custom_themes: load_custom_themes(), + theme_name_dialog: None, + theme_signature: themes_signature(), shortcuts: Shortcuts::default(), shortcut_capture: None, tabs: if show_start_tab { @@ -532,6 +866,9 @@ impl Default for Moorly { fade_settings_draft: fade_settings, hide_tab_close, hide_tab_close_draft: hide_tab_close, + advanced_open: false, + colors: DEFAULT_COLORS, + open_color_picker: None, fade_animation: new_fade_animation(), hovered_tab: None, tab_close_fades: HashMap::new(), @@ -555,13 +892,24 @@ enum Message { AddTab, CloseActiveTab, CloseOtherTabs, - SetTheme(theme::Preference), + SelectTheme(ThemeOption), + OpenThemeNameDialog, + ThemeNameChanged(String), + ConfirmThemeName, + CancelThemeName, + SaveTheme, + UndoTheme, + ReloadThemes, SelectTab(Tab), CloseTab(Tab), SelectSettingsSection(SettingsSection), SetShowStartTab(bool), SetFadeSettings(bool), SetHideTabClose(bool), + ToggleAdvanced, + OpenColorPicker(ColorOption), + SubmitColor(ColorOption, Color), + CancelColorPicker, SaveSettings, UndoChanges, Frame(Instant), @@ -629,9 +977,125 @@ fn update(state: &mut Moorly, message: Message) -> Task { state.menu_open = false; state.tabs_submenu_open = false; } - Message::SetTheme(preference) => { - state.theme = preference; - theme::save(preference); + Message::SelectTheme(option) => { + if let ThemeOption::Theme { choice, .. } = option { + apply_theme_choice(state, choice); + } + } + Message::OpenThemeNameDialog => { + state.theme_name_dialog = Some(String::new()); + return operation::focus(THEME_NAME_INPUT); + } + Message::ThemeNameChanged(value) => { + if let Some(draft) = state.theme_name_dialog.as_mut() { + *draft = value.chars().take(100).collect(); + } + } + Message::ConfirmThemeName => { + let Some(name) = state + .theme_name_dialog + .as_deref() + .map(str::trim) + .filter(|name| !name.is_empty()) + .map(str::to_owned) + else { + return Task::none(); + }; + + let based_on = match &state.theme_choice { + ThemeChoice::BuiltIn(preference) => *preference, + ThemeChoice::Custom { id, .. } => state + .custom_themes + .iter() + .find(|theme| theme.id == *id) + .map(|theme| theme.based_on) + .unwrap_or(state.theme), + }; + + let id = uuid::Uuid::new_v4().to_string(); + + if write_custom_theme(&id, &name, based_on, &state.colors).is_none() { + return Task::none(); + } + + state.custom_themes = load_custom_themes(); + state.theme_signature = themes_signature(); + state.theme_name_dialog = None; + state.theme_choice = ThemeChoice::Custom { + id, + name, + }; + state.theme = based_on; + theme::save(based_on); + } + Message::CancelThemeName => state.theme_name_dialog = None, + Message::SaveTheme => { + if let ThemeChoice::Custom { id, name } = &state.theme_choice + && let Some(theme) = state.custom_themes.iter().find(|theme| theme.id == *id) + { + let based_on = theme.based_on; + + if write_custom_theme(id, name, based_on, &state.colors).is_some() { + if let Some(theme) = state + .custom_themes + .iter_mut() + .find(|theme| theme.id == *id) + { + theme.colors = state.colors; + } + + state.theme_signature = themes_signature(); + } + } + } + Message::UndoTheme => { + if let ThemeChoice::Custom { id, .. } = &state.theme_choice + && let Some(theme) = state.custom_themes.iter().find(|theme| theme.id == *id) + { + state.theme = theme.based_on; + state.colors = theme.colors; + theme::save(theme.based_on); + } + } + Message::ReloadThemes => { + let signature = themes_signature(); + + if signature != state.theme_signature { + let selected_id = match &state.theme_choice { + ThemeChoice::Custom { id, .. } => Some(id.clone()), + ThemeChoice::BuiltIn(_) => None, + }; + let old_theme_colors = selected_id.as_ref().and_then(|id| { + state + .custom_themes + .iter() + .find(|theme| theme.id == *id) + .map(|theme| theme.colors) + }); + let had_no_edits = old_theme_colors + .map(|colors| colors == state.colors) + .unwrap_or(true); + + state.custom_themes = load_custom_themes(); + state.theme_signature = signature; + + if let Some(id) = selected_id { + if let Some(theme) = state.custom_themes.iter().find(|theme| theme.id == id) { + state.theme_choice = ThemeChoice::Custom { + id: id.clone(), + name: theme.name.clone(), + }; + + if had_no_edits { + state.theme = theme.based_on; + state.colors = theme.colors; + } + } else { + state.theme_choice = ThemeChoice::BuiltIn(state.theme); + state.colors = builtin_colors(state.theme); + } + } + } } Message::SelectTab(tab) => { let is_new = !state.tabs.contains(&tab); @@ -671,6 +1135,13 @@ fn update(state: &mut Moorly, message: Message) -> Task { Message::SetShowStartTab(value) => state.show_start_tab_draft = value, Message::SetFadeSettings(value) => state.fade_settings_draft = value, Message::SetHideTabClose(value) => state.hide_tab_close_draft = value, + Message::ToggleAdvanced => state.advanced_open = !state.advanced_open, + Message::OpenColorPicker(option) => state.open_color_picker = Some(option), + Message::SubmitColor(option, color) => { + state.colors[option.index()] = color; + state.open_color_picker = None; + } + Message::CancelColorPicker => state.open_color_picker = None, Message::SaveSettings => { apply_settings(state); save_settings( @@ -878,7 +1349,7 @@ fn reveal_active_tab(state: &Moorly) -> Task { .unwrap_or(Task::none()) } -fn hamburger(open: bool) -> iced::widget::Button<'static, Message> { +fn hamburger(open: bool, text_color: Color) -> iced::widget::Button<'static, Message> { let icon: Element<'static, Message> = if open { stack![ text("☰").size(14), @@ -897,7 +1368,7 @@ fn hamburger(open: bool) -> iced::widget::Button<'static, Message> { .on_press(Message::ToggleMenu) .width(HAMBURGER_WIDTH) .padding([2, 8]) - .style(theme::menubar_button) + .style(move |theme, status| theme::menubar_button(theme, status, text_color)) } /// Shortens a title to `MAX_TAB_TITLE` characters, ellipsizing the rest. @@ -928,12 +1399,15 @@ fn tab_shell( content: Element<'static, Message>, active: bool, width: f32, + active_bg: Color, + inactive_bg: Color, + outline: Color, ) -> Element<'static, Message> { let tab = container(content) .width(width) .height(Length::Fill) .align_y(Alignment::Center) - .style(move |theme| theme::tab(theme, active)); + .style(move |theme| theme::tab(theme, active, active_bg, inactive_bg)); // Draw the active outline as three separate edges so there is no bottom // border to blend away. @@ -941,18 +1415,18 @@ fn tab_shell( let top = container(space::horizontal()) .width(Length::Fill) .height(1.0) - .style(theme::tab_outline); + .style(move |theme| theme::tab_outline(theme, outline)); let left = container(space::vertical()) .width(1.0) .height(Length::Fill) - .style(theme::tab_outline); + .style(move |theme| theme::tab_outline(theme, outline)); let right = container( container(space::vertical()) .width(1.0) .height(Length::Fill) - .style(theme::tab_outline), + .style(move |theme| theme::tab_outline(theme, outline)), ) .width(Length::Fill) .height(Length::Fill) @@ -970,9 +1444,14 @@ fn tab_view( hide_close: bool, close_opacity: f32, width: f32, + colors: [Color; 5], ) -> Element<'static, Message> { let title = tab.title(); let padding = Padding::new(10.0); + let text_color = colors[ColorOption::Text.index()]; + let active_bg = colors[ColorOption::MainBackground.index()]; + let inactive_bg = colors[ColorOption::SidebarBackground.index()]; + let outline = colors[ColorOption::ActiveTabOutline.index()]; let title_button = button( container(text(fit_title(&title)).size(15)) @@ -986,9 +1465,9 @@ fn tab_view( .style(move |theme, status| { let mut style = button::text(theme, status); style.text_color = if active { - theme::TAB_TEXT + text_color } else { - theme::TAB_TEXT.scale_alpha(0.6) + text_color.scale_alpha(0.6) }; style }); @@ -999,25 +1478,28 @@ fn tab_view( .padding(padding) .style(move |theme, status| { let mut style = button::text(theme, status); - style.text_color = theme::TAB_TEXT; + style.text_color = text_color; style.text_color.a = close_opacity; style }) }; let tab_element = if hide_close { - let tab = tab_shell(title_button.into(), active, width); + let tab = tab_shell( + title_button.into(), + active, + width, + active_bg, + inactive_bg, + outline, + ); if close_opacity <= 0.01 { tab } else { let close = container(close_icon(Padding::new(4.0))).style(move |_theme: &iced::Theme| { - let mut background = if active { - theme::TAB_ACTIVE_BG - } else { - theme::TAB_INACTIVE_BG - }; + let mut background = if active { active_bg } else { inactive_bg }; background.a = close_opacity; container::Style { @@ -1045,15 +1527,15 @@ fn tab_view( } } else { tab_shell( - row![ - title_button, - close_icon(Padding::new(10.0)) - ] - .spacing(0) - .align_y(Alignment::Center) - .into(), + row![title_button, close_icon(Padding::new(10.0))] + .spacing(0) + .align_y(Alignment::Center) + .into(), active, width, + active_bg, + inactive_bg, + outline, ) }; @@ -1075,31 +1557,151 @@ fn tab_view( .into() } -/// Theme selection: a label followed by one button per preference. -fn theme_picker(preference: theme::Preference) -> Element<'static, Message> { - let option = |pref: theme::Preference| { - let item = button(text(pref.label())) - .on_press(Message::SetTheme(pref)) - .padding([6, 12]); +/// Theme selection as a right-aligned drop list. +fn theme_picker(state: &Moorly) -> Element<'_, Message> { + let mut options = Vec::new(); + let mut custom: Vec<&CustomTheme> = state.custom_themes.iter().collect(); + custom.sort_by(|left, right| left.name.to_lowercase().cmp(&right.name.to_lowercase())); - if pref == preference { - item.style(theme::selected_option) - } else { - item.style(theme::outlined_option) - } - }; + for theme in custom { + let choice = ThemeChoice::Custom { + id: theme.id.clone(), + name: theme.name.clone(), + }; + + options.push(ThemeOption::Theme { + selected: choice == state.theme_choice, + choice, + }); + } + + if !state.custom_themes.is_empty() { + options.push(ThemeOption::Separator); + } + + for preference in theme::Preference::ALL { + let choice = ThemeChoice::BuiltIn(preference); + + options.push(ThemeOption::Theme { + selected: choice == state.theme_choice, + choice, + }); + } + + let selected = options + .iter() + .find(|option| matches!(option, ThemeOption::Theme { selected: true, .. })) + .cloned(); row![ text("Themes").size(16), - option(theme::Preference::System), - option(theme::Preference::Light), - option(theme::Preference::Dark), + space::horizontal(), + pick_list(options, selected, Message::SelectTheme).width(200), ] .spacing(8) .align_y(Alignment::Center) .into() } +/// Collapsible area for future advanced appearance settings. +fn advanced_panel(state: &Moorly) -> Element<'_, Message> { + let glyph = if state.advanced_open { "▴" } else { "▾" }; + let header = button( + row![ + text("Advanced customization"), + space::horizontal(), + text(glyph), + ] + .width(Length::Fill) + .align_y(Alignment::Center), + ) + .on_press(Message::ToggleAdvanced) + .width(Length::Fill) + .padding([6, 0]) + .style(button::text); + + let mut panel = column![header].spacing(8).width(Length::Fill); + + if state.advanced_open { + let mut rows = column![].spacing(8).width(Length::Fill); + + for option in ColorOption::ALL { + rows = rows.push(color_row(state, option)); + } + + let actions = match &state.theme_choice { + ThemeChoice::BuiltIn(_) => row![ + space::horizontal(), + button("Save as new theme") + .on_press(Message::OpenThemeNameDialog) + .padding([6, 12]) + .style(theme::positive_option), + ], + ThemeChoice::Custom { .. } => row![ + space::horizontal(), + button("Save") + .on_press(Message::SaveTheme) + .padding([6, 12]) + .style(theme::positive_option), + button("Save as new") + .on_press(Message::OpenThemeNameDialog) + .padding([6, 12]) + .style(theme::outlined_option), + button("Undo") + .on_press(Message::UndoTheme) + .padding([6, 12]) + .style(theme::outlined_option), + ], + } + .spacing(8) + .align_y(Alignment::Center); + + rows = rows.push(actions); + panel = panel.push(rows); + } + + container(panel) + .width(Length::Fill) + .padding(8) + .style(theme::advanced_frame) + .into() +} + +/// One color option: label on the left, clickable swatch on the right. +fn color_row(state: &Moorly, option: ColorOption) -> Element<'_, Message> { + let color = state.colors[option.index()]; + + let swatch = container(space::horizontal()) + .width(24) + .height(24) + .style(move |_| container::Style { + background: Some(color.into()), + border: Border { + color: theme::ADVANCED_BORDER, + width: 1.0, + radius: 3.0.into(), + }, + ..container::Style::default() + }); + + let button = button(swatch) + .on_press(Message::OpenColorPicker(option)) + .padding(3) + .style(button::text); + + let picker = iced_aw::color_picker( + state.open_color_picker == Some(option), + color, + button, + Message::CancelColorPicker, + move |color| Message::SubmitColor(option, color), + ); + + row![text(option.label()), space::horizontal(), picker] + .align_y(Alignment::Center) + .into() +} + /// Shortcut bindings list. fn shortcuts_panel(state: &Moorly) -> Element<'_, Message> { let mut panel = column![ @@ -1390,7 +1992,8 @@ fn startup_panel(state: &Moorly) -> Element<'_, Message> { /// Appearance settings that are edited as a draft until saved. fn appearance_panel(state: &Moorly) -> Element<'_, Message> { column![ - theme_picker(state.theme), + theme_picker(state), + advanced_panel(state), row![ text("Hide tab close icon"), space::horizontal(), @@ -1403,6 +2006,10 @@ fn appearance_panel(state: &Moorly) -> Element<'_, Message> { } fn settings_page(state: &Moorly) -> Element<'_, Message> { + let accent = state.colors[ColorOption::Accent.index()]; + let text_color = state.colors[ColorOption::Text.index()]; + let main_background = state.colors[ColorOption::MainBackground.index()]; + let menu_item = |section: SettingsSection| { let label = container(text(section.label())) .width(Length::Fill) @@ -1413,9 +2020,13 @@ fn settings_page(state: &Moorly) -> Element<'_, Message> { .padding([6, 10]); if section == state.settings_section { - item.style(theme::settings_active) + item.style(move |theme, status| { + theme::settings_active(theme, status, accent) + }) } else { - item.style(button::text) + item.style(move |theme, status| { + theme::menubar_button(theme, status, text_color) + }) } }; @@ -1457,7 +2068,7 @@ fn settings_page(state: &Moorly) -> Element<'_, Message> { .width(Length::Fill) .height(Length::Fill) .style(move |_| { - let mut color = theme::TAB_ACTIVE_BG; + let mut color = main_background; color.a = 1.0 - fade; container::Style { @@ -1524,7 +2135,54 @@ fn settings_page(state: &Moorly) -> Element<'_, Message> { frame.into() }; - page + if let Some(draft) = &state.theme_name_dialog { + let dialog = container( + column![ + text("Save as new theme").size(14), + text_input("Theme name", draft) + .id(THEME_NAME_INPUT) + .on_input(Message::ThemeNameChanged) + .on_submit(Message::ConfirmThemeName) + .padding(6) + .style(theme::filter_field) + .width(Length::Fill), + row![ + space::horizontal(), + button("Cancel") + .on_press(Message::CancelThemeName) + .style(theme::outlined_option), + button("Save") + .on_press_maybe( + (!draft.trim().is_empty()).then_some(Message::ConfirmThemeName) + ) + .style(theme::positive_option), + ] + .spacing(8), + ] + .spacing(10) + .width(Length::Fill), + ) + .width(320) + .padding(12) + .style(theme::menu); + + let dialog = mouse_area(dialog).on_press(Message::Ignore); + let dialog_layer = container(dialog) + .width(Length::Fill) + .height(Length::Fill) + .align_x(Alignment::Center) + .align_y(Alignment::Center); + let backdrop = mouse_area( + container(space::horizontal()) + .width(Length::Fill) + .height(Length::Fill), + ) + .on_press(Message::CancelThemeName); + + stack![page, backdrop, dialog_layer].into() + } else { + page + } } /// A left-aligned menu row with an optional right-aligned shortcut. The @@ -1571,11 +2229,16 @@ fn tabs_submenu_top() -> f32 { MENU_PADDING + HAMBURGER_ROW_HEIGHT + 2.0 + tabs_row_top() } -fn scroll_button(symbol: &'static str, delta: f32, enabled: bool) -> iced::widget::Button<'static, Message> { +fn scroll_button( + symbol: &'static str, + delta: f32, + enabled: bool, + text_color: Color, +) -> iced::widget::Button<'static, Message> { button(text(symbol).size(17)) .on_press_maybe(enabled.then_some(Message::ScrollTabsBy(delta))) .padding([0, 6]) - .style(theme::menubar_button) + .style(move |theme, status| theme::menubar_button(theme, status, text_color)) } /// Whether the tab strip can still scroll left/right, based on the last @@ -1593,6 +2256,10 @@ fn view(state: &Moorly) -> Element<'_, Message> { let tabs = state.tabs.clone(); let active_tab = state.active_tab; let hide_close = state.hide_tab_close; + let colors = state.colors; + let text_color = colors[ColorOption::Text.index()]; + let main_background = colors[ColorOption::MainBackground.index()]; + let sidebar_background = colors[ColorOption::SidebarBackground.index()]; let now = Instant::now(); let close_opacities: HashMap = tabs .iter() @@ -1622,6 +2289,7 @@ fn view(state: &Moorly) -> Element<'_, Message> { hide_close, close_opacities.get(&tab).copied().unwrap_or(0.0), width, + colors, )); } @@ -1642,8 +2310,8 @@ fn view(state: &Moorly) -> Element<'_, Message> { let mut bar = row![ tab_strip, - scroll_button("◀", -TAB_SCROLL_STEP, can_scroll_left), - scroll_button("▶", TAB_SCROLL_STEP, can_scroll_right), + scroll_button("◀", -TAB_SCROLL_STEP, can_scroll_left, text_color), + scroll_button("▶", TAB_SCROLL_STEP, can_scroll_right, text_color), ] .spacing(2) .align_y(Alignment::Center); @@ -1652,7 +2320,7 @@ fn view(state: &Moorly) -> Element<'_, Message> { // The dropdown draws the close button over this spot. bar = bar.push(space::horizontal().width(HAMBURGER_WIDTH)); } else { - bar = bar.push(hamburger(false)); + bar = bar.push(hamburger(false, text_color)); } let menubar = container(bar) @@ -1665,7 +2333,7 @@ fn view(state: &Moorly) -> Element<'_, Message> { bottom: 0.0, left: 5.0, }) - .style(theme::menubar); + .style(move |theme| theme::menubar(theme, sidebar_background)); let main_area: Element<'_, Message> = match state.active_tab { Some(Tab::Start) => start_page(state), @@ -1679,8 +2347,9 @@ fn view(state: &Moorly) -> Element<'_, Message> { let main_area = container(main_area) .width(Length::Fill) .height(Length::Fill) - .style(|_| container::Style { - background: Some(theme::TAB_ACTIVE_BG.into()), + .style(move |_| container::Style { + background: Some(main_background.into()), + text_color: Some(text_color), ..container::Style::default() }); @@ -1743,7 +2412,7 @@ fn view(state: &Moorly) -> Element<'_, Message> { let menu = container( column![ - container(hamburger(true)) + container(hamburger(true, text_color)) .width(Length::Fill) .height(HAMBURGER_ROW_HEIGHT) .align_x(Alignment::End) @@ -1812,6 +2481,10 @@ mod tests { menu_open: false, tabs_submenu_open: false, theme: theme::Preference::default(), + theme_choice: super::ThemeChoice::BuiltIn(theme::Preference::default()), + custom_themes: Vec::new(), + theme_name_dialog: None, + theme_signature: Vec::new(), shortcuts: super::Shortcuts::default(), shortcut_capture: None, tabs: Vec::new(), @@ -1824,6 +2497,9 @@ mod tests { fade_settings_draft: true, hide_tab_close: true, hide_tab_close_draft: true, + advanced_open: false, + colors: super::DEFAULT_COLORS, + open_color_picker: None, fade_animation: super::new_fade_animation(), hovered_tab: None, tab_close_fades: Default::default(), @@ -1942,6 +2618,61 @@ mod tests { assert!((width - (500.0 - 2.0 * super::TAB_SPACING) / 3.0).abs() < 0.01); } + #[test] + fn theme_colors_round_trip_through_hex() { + let color = iced::Color::from_rgb8(0x12, 0x34, 0x56); + + assert_eq!(super::color_to_hex(color), "#123456"); + assert_eq!(super::color_from_hex("#123456"), Some(color)); + assert_eq!( + super::color_from_hex("#12345680"), + Some(iced::Color::from_rgba8(0x12, 0x34, 0x56, 128.0 / 255.0)) + ); + } + + #[test] + fn theme_file_only_stores_changed_colors() { + let mut colors = super::DEFAULT_COLORS; + colors[super::ColorOption::Accent.index()] = iced::Color::from_rgb8(1, 2, 3); + + let file = super::ThemeFile::from_colors( + "Test theme".to_owned(), + theme::Preference::Dark, + &colors, + &super::DEFAULT_COLORS, + ); + let text = toml::to_string(&file).unwrap(); + + assert!(text.contains("name = \"Test theme\"")); + assert!(text.contains("based_on = \"dark\"")); + assert!(text.contains("accent = \"#010203\"")); + assert!(!text.contains("active_tab_outline")); + + let loaded = file.colors(theme::Preference::Dark); + assert_eq!( + loaded[super::ColorOption::Accent.index()], + iced::Color::from_rgb8(1, 2, 3) + ); + assert_eq!( + loaded[super::ColorOption::Text.index()], + super::DEFAULT_COLORS[super::ColorOption::Text.index()] + ); + } + + #[test] + fn color_picker_updates_the_swatch_and_closes() { + let mut state = state(); + let option = super::ColorOption::Accent; + let color = iced::Color::from_rgb(0.1, 0.2, 0.3); + + let _ = update(&mut state, Message::OpenColorPicker(option)); + assert_eq!(state.open_color_picker, Some(option)); + + let _ = update(&mut state, Message::SubmitColor(option, color)); + assert_eq!(state.colors[option.index()], color); + assert_eq!(state.open_color_picker, None); + } + #[test] fn tab_close_fades_in_and_out() { let mut state = state(); diff --git a/src/theme.rs b/src/theme.rs index d339850..9fc2f7d 100644 --- a/src/theme.rs +++ b/src/theme.rs @@ -18,6 +18,8 @@ pub const DANGER: Color = Color::from_rgb8(0xff, 0x3b, 0x30); pub const ACTIVE_TAB: Color = Color::from_rgb8(0x60, 0x82, 0xB6); /// Highlight for the selected settings section. pub const SETTINGS_ACTIVE: Color = Color::from_rgb8(0x5D, 0x3F, 0xD3); +/// Border for the collapsible advanced-settings area. +pub const ADVANCED_BORDER: Color = Color::from_rgb8(0xD0, 0xD0, 0xD0); /// Tab bar surfaces: the active tab merges with the content area below. pub const TAB_ACTIVE_BG: Color = Color::from_rgb8(0x19, 0x19, 0x19); pub const TAB_INACTIVE_BG: Color = Color::from_rgb8(0x13, 0x13, 0x13); @@ -51,7 +53,7 @@ impl Preference { } } - fn as_str(self) -> &'static str { + pub fn as_str(self) -> &'static str { match self { Self::System => "system", Self::Light => "light", @@ -59,7 +61,7 @@ impl Preference { } } - fn parse(value: &str) -> Option { + pub fn parse(value: &str) -> Option { Self::ALL.into_iter().find(|pref| pref.as_str() == value) } } @@ -105,20 +107,20 @@ pub(crate) fn config_path() -> Option { } /// Style for the top menubar. -pub fn menubar(_theme: &Theme) -> container::Style { +pub fn menubar(_theme: &Theme, background: Color) -> container::Style { container::Style { - background: Some(TAB_INACTIVE_BG.into()), + background: Some(background.into()), ..container::Style::default() } } /// Style for buttons that sit directly on the dark menubar. -pub fn menubar_button(theme: &Theme, status: button::Status) -> button::Style { +pub fn menubar_button(theme: &Theme, status: button::Status, text_color: Color) -> button::Style { let mut style = button::text(theme, status); style.text_color = if matches!(status, button::Status::Disabled) { - TAB_TEXT.scale_alpha(0.4) + text_color.scale_alpha(0.4) } else { - TAB_TEXT + text_color }; style } @@ -132,12 +134,17 @@ pub fn menu(theme: &Theme) -> container::Style { /// Style for a tab in the menubar; active tabs sit on the content surface. /// The active outline is drawn separately so it has no bottom edge. -pub fn tab(_theme: &Theme, active: bool) -> container::Style { +pub fn tab( + _theme: &Theme, + active: bool, + active_bg: Color, + inactive_bg: Color, +) -> container::Style { container::Style { background: Some(if active { - TAB_ACTIVE_BG.into() + active_bg.into() } else { - TAB_INACTIVE_BG.into() + inactive_bg.into() }), border: Border { color: Color::TRANSPARENT, @@ -154,36 +161,32 @@ pub fn tab(_theme: &Theme, active: bool) -> container::Style { } /// Style for the active tab's thin top/left/right outline. -pub fn tab_outline(_theme: &Theme) -> container::Style { +pub fn tab_outline(_theme: &Theme, color: Color) -> container::Style { container::Style { - background: Some(ACTIVE_TAB.into()), + background: Some(color.into()), + ..container::Style::default() + } +} + +/// Rounded frame around the advanced-settings area. +pub fn advanced_frame(_theme: &Theme) -> container::Style { + container::Style { + border: Border { + color: ADVANCED_BORDER, + width: 1.0, + radius: 6.0.into(), + }, ..container::Style::default() } } /// Style for the selected settings section in the settings menu. -pub fn settings_active(_theme: &Theme, _status: button::Status) -> button::Style { +pub fn settings_active(_theme: &Theme, _status: button::Status, accent: Color) -> button::Style { button::Style { - background: Some(SETTINGS_ACTIVE.into()), + background: Some(accent.into()), text_color: Color::WHITE, border: Border { - color: SETTINGS_ACTIVE, - width: 1.0, - radius: 4.0.into(), - }, - ..button::Style::default() - } -} - -/// Style for the currently selected option in a group of choice buttons. -pub fn selected_option(theme: &Theme, _status: button::Status) -> button::Style { - let palette = theme.extended_palette(); - - button::Style { - background: Some(palette.primary.base.color.into()), - text_color: palette.primary.base.text, - border: Border { - color: palette.primary.base.color, + color: accent, width: 1.0, radius: 4.0.into(), }, @@ -325,14 +328,24 @@ mod tests { #[test] fn active_tabs_are_visually_distinct() { let theme = Theme::Light; - let active = super::tab(&theme, true); - let inactive = super::tab(&theme, false); + let active = super::tab( + &theme, + true, + super::TAB_ACTIVE_BG, + super::TAB_INACTIVE_BG, + ); + let inactive = super::tab( + &theme, + false, + super::TAB_ACTIVE_BG, + super::TAB_INACTIVE_BG, + ); assert_ne!(active.background, inactive.background); assert_eq!(active.border.width, 0.0); assert_eq!(inactive.border.width, 0.0); assert_eq!( - super::tab_outline(&theme).background, + super::tab_outline(&theme, super::ACTIVE_TAB).background, Some(super::ACTIVE_TAB.into()) ); } diff --git a/vendor/iced_aw/Cargo.lock b/vendor/iced_aw/Cargo.lock new file mode 100644 index 0000000..780e846 --- /dev/null +++ b/vendor/iced_aw/Cargo.lock @@ -0,0 +1,4529 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "ab_glyph" +version = "0.2.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "01c0457472c38ea5bd1c3b5ada5e368271cb550be7a4ca4a0b4634e9913f6cc2" +dependencies = [ + "ab_glyph_rasterizer", + "owned_ttf_parser", +] + +[[package]] +name = "ab_glyph_rasterizer" +version = "0.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "366ffbaa4442f4684d91e2cd7c5ea7c4ed8add41959a31447066e279e432b618" + +[[package]] +name = "adler2" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" + +[[package]] +name = "ahash" +version = "0.8.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75" +dependencies = [ + "cfg-if", + "getrandom 0.3.4", + "once_cell", + "version_check", + "zerocopy", +] + +[[package]] +name = "aho-corasick" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba" +dependencies = [ + "memchr", +] + +[[package]] +name = "android-activity" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f2a1bb052857d5dd49572219344a7332b31b76405648eabac5bc68978251bcd" +dependencies = [ + "android-properties", + "bitflags 2.13.2", + "cc", + "jni", + "libc", + "log", + "ndk", + "ndk-context", + "ndk-sys", + "num_enum", + "thiserror 2.0.21", +] + +[[package]] +name = "android-build" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9fc9904ad2ad097c3c1cfe2eacaaf0fc24710936fa9ed941cb310b7c6ed2ab7" +dependencies = [ + "windows-sys 0.52.0", +] + +[[package]] +name = "android-properties" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc7eb209b1518d6bb87b283c20095f5228ecda460da70b44f0802523dea6da04" + +[[package]] +name = "android_system_properties" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae221649c9976a6f6c56ae1facf410f3ddb33cc661c4b7b61020a912d4237fbc" +dependencies = [ + "libc", +] + +[[package]] +name = "anstream" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "824a212faf96e9acacdbd09febd34438f8f711fb84e09a8916013cd7815ca28d" +dependencies = [ + "anstyle", + "anstyle-parse", + "anstyle-query", + "anstyle-wincon", + "colorchoice", + "is_terminal_polyfill", + "utf8parse", +] + +[[package]] +name = "anstyle" +version = "1.0.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000" + +[[package]] +name = "anstyle-parse" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52ce7f38b242319f7cabaa6813055467063ecdc9d355bbb4ce0c68908cd8130e" +dependencies = [ + "utf8parse", +] + +[[package]] +name = "anstyle-query" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "anstyle-wincon" +version = "3.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d" +dependencies = [ + "anstyle", + "once_cell_polyfill", + "windows-sys 0.61.2", +] + +[[package]] +name = "arrayref" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76a2e8124351fda1ef8aaaa3bbd7ebbcb486bbcd4225aca0aa0d84bb2db8fecb" + +[[package]] +name = "arrayvec" +version = "0.7.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3fb67a6e08acf24fdeccbac2cb6ac4305825bd1f117462e0e6f2f193345ad56" + +[[package]] +name = "as-raw-xcb-connection" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "175571dd1d178ced59193a6fc02dde1b972eb0bc56c892cde9beeceac5bf0f6b" + +[[package]] +name = "ash" +version = "0.38.0+1.3.281" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bb44936d800fea8f016d7f2311c6a4f97aebd5dc86f09906139ec848cf3a46f" +dependencies = [ + "libloading", +] + +[[package]] +name = "async-broadcast" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "435a87a52755b8f27fcf321ac4f04b2802e337c8c4872923137471ec39c37532" +dependencies = [ + "event-listener", + "event-listener-strategy", + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "async-channel" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "924ed96dd52d1b75e9c1a3e6275715fd320f5f9439fb5a4a11fa51f4221158d2" +dependencies = [ + "concurrent-queue", + "event-listener-strategy", + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "async-executor" +version = "1.14.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f426a31126c735126297bc5ea7a521263c9faff4f63ca415267ee625651c4f37" +dependencies = [ + "async-task", + "concurrent-queue", + "fastrand", + "futures-lite", + "pin-project-lite", + "slab", +] + +[[package]] +name = "async-io" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "456b8a8feb6f42d237746d4b3e9a178494627745c3c56c6ea55d92ba50d026fc" +dependencies = [ + "autocfg", + "cfg-if", + "concurrent-queue", + "futures-io", + "futures-lite", + "parking", + "polling", + "rustix 1.1.6", + "slab", + "windows-sys 0.61.2", +] + +[[package]] +name = "async-lock" +version = "3.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0876700b0d007ad25d5508865a4259c3af9af6d296bf663a0d586d0bc3369f6f" +dependencies = [ + "event-listener", + "event-listener-strategy", + "pin-project-lite", +] + +[[package]] +name = "async-process" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc50921ec0055cdd8a16de48773bfeec5c972598674347252c0399676be7da75" +dependencies = [ + "async-channel", + "async-io", + "async-lock", + "async-signal", + "async-task", + "blocking", + "cfg-if", + "event-listener", + "futures-lite", + "rustix 1.1.6", +] + +[[package]] +name = "async-recursion" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4f8abc12baad266b1c8cec146854c195b5864b4221d4b2ca7296a7ae82d9e451" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "async-signal" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52b5aaafa020cf5053a01f2a60e8ff5dccf550f0f77ec54a4e47285ac2bab485" +dependencies = [ + "async-io", + "async-lock", + "atomic-waker", + "cfg-if", + "futures-core", + "futures-io", + "rustix 1.1.6", + "signal-hook-registry", + "slab", + "windows-sys 0.61.2", +] + +[[package]] +name = "async-task" +version = "4.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de" + +[[package]] +name = "async-trait" +version = "0.1.92" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82f6aeea286b8eb4dd3431a1be1b59d290ace00f5bfd8e2a159bc2a05e2c1667" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "atomic-waker" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" + +[[package]] +name = "autocfg" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53" + +[[package]] +name = "bit-set" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3" +dependencies = [ + "bit-vec", +] + +[[package]] +name = "bit-vec" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7" + +[[package]] +name = "bitflags" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" + +[[package]] +name = "bitflags" +version = "2.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06" + +[[package]] +name = "block" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d8c1fef690941d3e7788d328517591fecc684c084084702d6ff1641e993699a" + +[[package]] +name = "block-buffer" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" +dependencies = [ + "generic-array", +] + +[[package]] +name = "block2" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c132eebf10f5cad5289222520a4a058514204aed6d791f1cf4fe8088b82d15f" +dependencies = [ + "objc2 0.5.3", +] + +[[package]] +name = "block2" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdeb9d870516001442e364c5220d3574d2da8dc765554b4a617230d33fa58ef5" +dependencies = [ + "objc2 0.6.5", +] + +[[package]] +name = "blocking" +version = "1.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a70e4329df6cb94385eed412ec92375c3cdd8a6e502493d1229b6414e4036dfa" +dependencies = [ + "async-channel", + "async-task", + "futures-io", + "futures-lite", + "piper", +] + +[[package]] +name = "bumpalo" +version = "3.20.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649" + +[[package]] +name = "bytemuck" +version = "1.25.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95832e849adfb21180ccb6826a99da14e5d266ae5c2e668e1602cf234f153797" +dependencies = [ + "bytemuck_derive", +] + +[[package]] +name = "bytemuck_derive" +version = "1.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a1f896587b6f2c069c73d2f0913e2d590c3990285cd2f0b6aa02b786b4c679c" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "bytes" +version = "1.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04" + +[[package]] +name = "calloop" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b99da2f8558ca23c71f4fd15dc57c906239752dd27ff3c00a1d56b685b7cbfec" +dependencies = [ + "bitflags 2.13.2", + "log", + "polling", + "rustix 0.38.44", + "slab", + "thiserror 1.0.69", +] + +[[package]] +name = "calloop" +version = "0.14.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43b32313e937c8721c9d17ee9bf60699a6402b4b7c2cb6ac1bee0ffcaa4b4e5e" +dependencies = [ + "bitflags 2.13.2", + "polling", + "rustix 1.1.6", + "tracing", +] + +[[package]] +name = "calloop-wayland-source" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95a66a987056935f7efce4ab5668920b5d0dac4a7c99991a67395f13702ddd20" +dependencies = [ + "calloop 0.13.0", + "rustix 0.38.44", + "wayland-backend", + "wayland-client", +] + +[[package]] +name = "calloop-wayland-source" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "138efcf0940a02ebf0cc8d1eff41a1682a46b431630f4c52450d6265876021fa" +dependencies = [ + "calloop 0.14.5", + "rustix 1.1.6", + "wayland-backend", + "wayland-client", +] + +[[package]] +name = "cc" +version = "1.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ff2a8126fff0f8c839080d619675a585e61720bb12d2baceae45769fd66f155" +dependencies = [ + "find-msvc-tools", + "jobserver", + "libc", + "shlex", +] + +[[package]] +name = "cfg-if" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600" + +[[package]] +name = "cfg_aliases" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f079e83a288787bcd14a6aea84cee5c87a67c5a3e660c30f557a3d24761b3527" + +[[package]] +name = "chacha20" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65c35e4b699c7e15ccbe7ee35c005e4fc0a278d22238a2857e6ce2dadeda1b06" +dependencies = [ + "cfg-if", + "cpufeatures 0.3.1", + "rand_core", +] + +[[package]] +name = "chrono" +version = "0.4.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1aa79e62e7697b8e29b513a68abacf485adcd1fe8284a4316c5ae868e6633327" +dependencies = [ + "iana-time-zone", + "js-sys", + "num-traits", + "wasm-bindgen", + "windows-link", +] + +[[package]] +name = "clipboard-win" +version = "5.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "052af7878466feccda12ba7a6a67d019d712f296809559b47c12c8cc196d3a9a" +dependencies = [ + "error-code", +] + +[[package]] +name = "clipboard_macos" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b7f4aaa047ba3c3630b080bb9860894732ff23e2aee290a418909aa6d5df38f" +dependencies = [ + "objc2 0.5.3", + "objc2-app-kit 0.2.2", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "clipboard_wayland" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "003f886bc4e2987729d10c1db3424e7f80809f3fc22dbc16c685738887cb37b8" +dependencies = [ + "smithay-clipboard", +] + +[[package]] +name = "clipboard_x11" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd63e33452ffdafd39924c4f05a5dd1e94db646c779c6bd59148a3d95fff5ad4" +dependencies = [ + "thiserror 2.0.21", + "x11rb", +] + +[[package]] +name = "codespan-reporting" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe6d2e5af09e8c8ad56c969f2157a3d4238cebc7c55f0a517728c38f7b200f81" +dependencies = [ + "serde", + "termcolor", + "unicode-width", +] + +[[package]] +name = "colorchoice" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570" + +[[package]] +name = "combine" +version = "4.6.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4356eba6976435498d05a311ee9fc486da3bc81c200d3f0d7dd9703b41913f92" +dependencies = [ + "bytes", + "memchr", +] + +[[package]] +name = "concurrent-queue" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "core-foundation" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "core-foundation" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "core-foundation-sys" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" + +[[package]] +name = "core-graphics" +version = "0.23.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c07782be35f9e1140080c6b96f0d44b739e2278479f64e02fdab4e32dfd8b081" +dependencies = [ + "bitflags 1.3.2", + "core-foundation 0.9.4", + "core-graphics-types 0.1.3", + "foreign-types", + "libc", +] + +[[package]] +name = "core-graphics-types" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "45390e6114f68f718cc7a830514a96f903cccd70d02a8f6d9f643ac4ba45afaf" +dependencies = [ + "bitflags 1.3.2", + "core-foundation 0.9.4", + "libc", +] + +[[package]] +name = "core-graphics-types" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d44a101f213f6c4cdc1853d4b78aef6db6bdfa3468798cc1d9912f4735013eb" +dependencies = [ + "bitflags 2.13.2", + "core-foundation 0.10.1", + "libc", +] + +[[package]] +name = "core_maths" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77745e017f5edba1a9c1d854f6f3a52dac8a12dd5af5d2f54aecf61e43d80d30" +dependencies = [ + "libm", +] + +[[package]] +name = "cosmic-text" +version = "0.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "173852283a9a57a3cbe365d86e74dc428a09c50421477d5ad6fe9d9509e37737" +dependencies = [ + "bitflags 2.13.2", + "fontdb", + "harfrust", + "linebender_resource_handle", + "log", + "rangemap", + "rustc-hash 1.1.0", + "self_cell", + "skrifa 0.37.0", + "smol_str", + "swash", + "sys-locale", + "unicode-bidi", + "unicode-linebreak", + "unicode-script", + "unicode-segmentation", +] + +[[package]] +name = "cpufeatures" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280" +dependencies = [ + "libc", +] + +[[package]] +name = "cpufeatures" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5ca28b0ae3115b884660db4118d803791fd6756b6e88f39c0f3f7859060d7566" +dependencies = [ + "libc", +] + +[[package]] +name = "crc32fast" +version = "1.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f97d3416d5337d15c4b0d78c8c91df922ca143f57ec20e2d1c188333047ef04" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6" + +[[package]] +name = "crunchy" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5" + +[[package]] +name = "cryoglyph" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08bc795bdbccdbd461736fb163930a009da6597b226d6f6fce33e7a8eb6ec519" +dependencies = [ + "cosmic-text", + "etagere", + "lru", + "rustc-hash 2.1.3", + "wgpu", +] + +[[package]] +name = "crypto-common" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a" +dependencies = [ + "generic-array", + "typenum", +] + +[[package]] +name = "ctor" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83cf0d42651b16c6dfe68685716d18480d18a9c39c62d76e8cf3eb6ed5d8bcbf" +dependencies = [ + "dtor", +] + +[[package]] +name = "cursor-icon" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f27ae1dd37df86211c42e150270f82743308803d90a6f6e6651cd730d5e1732f" + +[[package]] +name = "defmt" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4a0795ac740cb54d7b3775c9c17345f6aaecf884c01733b39d6017738e0e3e1" +dependencies = [ + "bitflags 1.3.2", + "defmt-macros", +] + +[[package]] +name = "defmt-macros" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "840bb056bd99c495c9188198a258ab787c79f306d864db3e6e8451442d6d8366" +dependencies = [ + "defmt-parser", + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "defmt-parser" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "71958f69fb2de856c5dd51ac9377e986ca1aa5919f931bf5395a807277f889a0" +dependencies = [ + "thiserror 2.0.21", +] + +[[package]] +name = "digest" +version = "0.10.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" +dependencies = [ + "block-buffer", + "crypto-common", +] + +[[package]] +name = "dispatch" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd0c93bb4b0c6d9b77f4435b0ae98c24d17f1c45b2ff844c6151a07256ca923b" + +[[package]] +name = "dispatch2" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38" +dependencies = [ + "bitflags 2.13.2", + "objc2 0.6.5", +] + +[[package]] +name = "dlib" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab8ecd87370524b461f8557c119c405552c396ed91fc0a8eec68679eab26f94a" +dependencies = [ + "libloading", +] + +[[package]] +name = "document-features" +version = "0.2.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4b8a88685455ed29a21542a33abd9cb6510b6b129abadabdcef0f4c55bc8f61" +dependencies = [ + "litrs", +] + +[[package]] +name = "downcast-rs" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75b325c5dbd37f80359721ad39aca5a29fb04c89279657cffdda8736d0c0b9d2" + +[[package]] +name = "dpi" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d8b14ccef22fc6f5a8f4d7d768562a182c04ce9a3b3157b91390b52ddfdf1a76" + +[[package]] +name = "dtor" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "edf234dd1594d6dd434a8fb8cada51ddbbc593e40e4a01556a0b31c62da2775b" + +[[package]] +name = "endi" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "66b7e2430c6dff6a955451e2cfc438f09cea1965a9d6f87f7e3b90decc014099" + +[[package]] +name = "enumflags2" +version = "0.7.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1027f7680c853e056ebcec683615fb6fbbc07dbaa13b4d5d9442b146ded4ecef" +dependencies = [ + "enumflags2_derive", + "serde", +] + +[[package]] +name = "enumflags2_derive" +version = "0.7.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67c78a4d8fdf9953a5c9d458f9efe940fd97a0cab0941c075a813ac594733827" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "env_filter" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "900d271a03799a1ee8d1ca9b19893b48ca674a9284fefcfb85f05e74ed314217" +dependencies = [ + "log", + "regex", +] + +[[package]] +name = "env_logger" +version = "0.11.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "de671bd27a75a797dc9ae289ba1e77276e75e2026408aab65185384e2d5cd3f6" +dependencies = [ + "anstream", + "anstyle", + "env_filter", + "jiff", + "log", +] + +[[package]] +name = "equivalent" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00d174d5400e5e8fd687ad1049e2f578285fa914201b1af7e8b112a4546bd826" + +[[package]] +name = "errno" +version = "0.3.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "error-code" +version = "3.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b5343afd4a8365a643ac588dab4cf234a190c7f6c88c9f6dd6ffe00837661b7" + +[[package]] +name = "etagere" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc89bf99e5dc15954a60f707c1e09d7540e5cd9af85fa75caa0b510bc08c5342" +dependencies = [ + "euclid", + "svg_fmt", +] + +[[package]] +name = "euclid" +version = "0.22.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1a05365e3b1c6d1650318537c7460c6923f1abdd272ad6842baa2b509957a06" +dependencies = [ + "num-traits", +] + +[[package]] +name = "event-listener" +version = "5.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a23add41df1562121a9393cb065eab5146a1242410f23a644851e90cfd669d2" +dependencies = [ + "parking", + "pin-project-lite", +] + +[[package]] +name = "event-listener-strategy" +version = "0.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8be9f3dfaaffdae2972880079a491a1a8bb7cbed0b8dd7a347f668b4150a3b93" +dependencies = [ + "event-listener", + "pin-project-lite", +] + +[[package]] +name = "fastrand" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223" + +[[package]] +name = "fdeflate" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c" +dependencies = [ + "simd-adler32", +] + +[[package]] +name = "find-msvc-tools" +version = "0.1.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c66915cc5391097de7a2b0b972e8505aa33c0df401fd3a6811dbdb32881ba48" + +[[package]] +name = "flate2" +version = "1.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "626d4928326b646e70f65ed36fc7cf9f206bdb68a0019ee7c6b4709da4e084c4" +dependencies = [ + "crc32fast", + "miniz_oxide 0.9.1", + "zlib-rs", +] + +[[package]] +name = "float_next_after" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8bf7cc16383c4b8d58b9905a8509f02926ce3058053c056376248d958c9df1e8" + +[[package]] +name = "foldhash" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2" + +[[package]] +name = "foldhash" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" + +[[package]] +name = "font-types" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39a654f404bbcbd48ea58c617c2993ee91d1cb63727a37bf2323a4edeed1b8c5" +dependencies = [ + "bytemuck", +] + +[[package]] +name = "font-types" +version = "0.12.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "835ae9d781464a79026cde387f9cbc650c9a4909d7cf7e658b127e3c35d2f35d" +dependencies = [ + "bytemuck", +] + +[[package]] +name = "fontconfig-parser" +version = "0.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbc773e24e02d4ddd8395fd30dc147524273a83e54e0f312d986ea30de5f5646" +dependencies = [ + "roxmltree", +] + +[[package]] +name = "fontdb" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "457e789b3d1202543297a350643cf459f836cade38934e7a4cf6a39e7cde2905" +dependencies = [ + "fontconfig-parser", + "log", + "memmap2", + "slotmap", + "tinyvec", + "ttf-parser", +] + +[[package]] +name = "foreign-types" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d737d9aa519fb7b749cbc3b962edcf310a8dd1f4b67c91c4f83975dbdd17d965" +dependencies = [ + "foreign-types-macros", + "foreign-types-shared", +] + +[[package]] +name = "foreign-types-macros" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea5190182e6915eb873ddbc16e23b711b6eb1f9c00a0d0a3a91b5f6228475225" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "foreign-types-shared" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b" + +[[package]] +name = "futures" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a31d2a3fbaaeb2af2368bbdd904aa8e812d3c04a1ee10d3171f52d556e5d0a3" +dependencies = [ + "futures-channel", + "futures-core", + "futures-executor", + "futures-io", + "futures-sink", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-channel" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1f9e3d69d39e4862ffed03ed071a76f9a13ba1d9109d355b0f0aa6b15e393c4" +dependencies = [ + "futures-core", + "futures-sink", +] + +[[package]] +name = "futures-core" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e" + +[[package]] +name = "futures-executor" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "031b47cf1a3c6cc8bc2fc76cd437f521619387907d469316e7c0bc278f1f5432" +dependencies = [ + "futures-core", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-io" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53c0fa8157de1303bfffdaa1cc2a673bfffb60102f76b0ef4441659124373fed" + +[[package]] +name = "futures-lite" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f78e10609fe0e0b3f4157ffab1876319b5b0db102a2c60dc4626306dc46b44ad" +dependencies = [ + "fastrand", + "futures-core", + "futures-io", + "parking", + "pin-project-lite", +] + +[[package]] +name = "futures-macro" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9fb9654ba8355388abeb8dcb4fc62f511300867002afc858860463bdd9fe0c44" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "futures-sink" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1944426bf7d03f1d14f708785e4b33efd750b36d48a157b836b3efc15ede8e1d" + +[[package]] +name = "futures-task" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd417de3d1d015fc3bfd2b1ea46dfc7bab72ef86f1cc7cc9c78e728b34a6d1fd" + +[[package]] +name = "futures-util" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc" +dependencies = [ + "futures-channel", + "futures-core", + "futures-io", + "futures-macro", + "futures-sink", + "futures-task", + "memchr", + "pin-project-lite", + "slab", +] + +[[package]] +name = "generic-array" +version = "0.14.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" +dependencies = [ + "typenum", + "version_check", +] + +[[package]] +name = "gethostname" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bd49230192a3797a9a4d6abe9b3eed6f7fa4c8a8a4947977c6f80025f92cbd8" +dependencies = [ + "rustix 1.1.6", + "windows-link", +] + +[[package]] +name = "getrandom" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd" +dependencies = [ + "cfg-if", + "libc", + "r-efi 5.3.0", + "wasip2", +] + +[[package]] +name = "getrandom" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099" +dependencies = [ + "cfg-if", + "js-sys", + "libc", + "r-efi 6.0.0", + "rand_core", + "wasm-bindgen", +] + +[[package]] +name = "gl_generator" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a95dfc23a2b4a9a2f5ab41d194f8bfda3cabec42af4e39f08c339eb2a0c124d" +dependencies = [ + "khronos_api", + "log", + "xml-rs", +] + +[[package]] +name = "glam" +version = "0.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "151665d9be52f9bb40fc7966565d39666f2d1e69233571b71b87791c7e0528b3" + +[[package]] +name = "glow" +version = "0.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c5e5ea60d70410161c8bf5da3fdfeaa1c72ed2c15f8bbb9d19fe3a4fad085f08" +dependencies = [ + "js-sys", + "slotmap", + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "glutin_wgl_sys" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c4ee00b289aba7a9e5306d57c2d05499b2e5dc427f84ac708bd2c090212cf3e" +dependencies = [ + "gl_generator", +] + +[[package]] +name = "gpu-alloc" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "45cf04b2726f02df5508c6de726acdc90cdf97ac771a9a0ffd8ba10a6e696bf9" +dependencies = [ + "bitflags 2.13.2", + "gpu-alloc-types", +] + +[[package]] +name = "gpu-alloc-types" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2bbed164dd10ed526c2e4fe3e721ca4a71c61730e5aafac6844b417b3227058" +dependencies = [ + "bitflags 2.13.2", +] + +[[package]] +name = "gpu-allocator" +version = "0.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c151a2a5ef800297b4e79efa4f4bec035c5f51d5ae587287c9b952bdf734cacd" +dependencies = [ + "log", + "presser", + "thiserror 1.0.69", + "windows 0.58.0", +] + +[[package]] +name = "gpu-descriptor" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b89c83349105e3732062a895becfc71a8f921bb71ecbbdd8ff99263e3b53a0ca" +dependencies = [ + "bitflags 2.13.2", + "gpu-descriptor-types", + "hashbrown 0.15.5", +] + +[[package]] +name = "gpu-descriptor-types" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fdf242682df893b86f33a73828fb09ca4b2d3bb6cc95249707fc684d27484b91" +dependencies = [ + "bitflags 2.13.2", +] + +[[package]] +name = "guillotiere" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b62d5865c036cb1393e23c50693df631d3f5d7bcca4c04fe4cc0fd592e74a782" +dependencies = [ + "euclid", + "svg_fmt", +] + +[[package]] +name = "half" +version = "2.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ea2d84b969582b4b1864a92dc5d27cd2b77b622a8d79306834f1be5ba20d84b" +dependencies = [ + "cfg-if", + "crunchy", + "num-traits", + "zerocopy", +] + +[[package]] +name = "harfrust" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92c020db12c71d8a12a3fe7607873cade3a01a6287e29d540c8723276221b9d8" +dependencies = [ + "bitflags 2.13.2", + "bytemuck", + "core_maths", + "read-fonts 0.35.0", + "smallvec", +] + +[[package]] +name = "hashbrown" +version = "0.15.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1" +dependencies = [ + "foldhash 0.1.5", +] + +[[package]] +name = "hashbrown" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" +dependencies = [ + "foldhash 0.2.0", +] + +[[package]] +name = "hashbrown" +version = "0.17.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" + +[[package]] +name = "hermit-abi" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e17592d60ebacc7d5e169f4663c5f84f9161cc90328abcfe8456f41e4dfcb284" + +[[package]] +name = "hex" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" + +[[package]] +name = "hexf-parse" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dfa686283ad6dd069f105e5ab091b04c62850d3e4cf5d67debad1933f55023df" + +[[package]] +name = "iana-time-zone" +version = "0.1.65" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470" +dependencies = [ + "android_system_properties", + "core-foundation-sys", + "iana-time-zone-haiku", + "js-sys", + "log", + "wasm-bindgen", + "windows-core 0.62.2", +] + +[[package]] +name = "iana-time-zone-haiku" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" +dependencies = [ + "cc", +] + +[[package]] +name = "iced" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "000e01026c93ba643f8357a3db3ada0e6555265a377f6f9291c472f6dd701fb3" +dependencies = [ + "iced_core", + "iced_debug", + "iced_futures", + "iced_renderer", + "iced_runtime", + "iced_widget", + "iced_winit", + "thiserror 2.0.21", +] + +[[package]] +name = "iced_aw" +version = "0.14.1" +dependencies = [ + "cfg-if", + "chrono", + "env_logger", + "getrandom 0.4.3", + "iced", + "iced_core", + "iced_fonts", + "iced_test", + "iced_widget", + "log", + "num-format", + "num-traits", + "rand", + "web-time", +] + +[[package]] +name = "iced_core" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91ab1937d699403e7e69252ae743a902bcee9f4ab2052cc4c9a46fcf34729d85" +dependencies = [ + "bitflags 2.13.2", + "bytes", + "glam", + "lilt", + "log", + "num-traits", + "rustc-hash 2.1.3", + "smol_str", + "thiserror 2.0.21", + "web-time", +] + +[[package]] +name = "iced_debug" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25035ab0215a620e53f4103e36fc4e59a1fb2817e4bfc38a30ad27b4202ea0be" +dependencies = [ + "iced_core", + "iced_futures", + "log", +] + +[[package]] +name = "iced_fonts" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "214cff7c8499e328774216690e58e315a1a5f8f6fdd1035aed6298e62ffc4c1d" +dependencies = [ + "iced_core", + "iced_fonts_macros", + "iced_widget", +] + +[[package]] +name = "iced_fonts_macros" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ef5125e110cb19cd1910a28298661c98c5d9ab02eef43594968352940e8752e" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", + "ttf-parser", +] + +[[package]] +name = "iced_futures" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c0c85ccad42dfbec7293c36c018af0ea0dbcc52d137a4a9a0b0f6822a3fdf0a" +dependencies = [ + "futures", + "iced_core", + "log", + "rustc-hash 2.1.3", + "wasm-bindgen-futures", + "wasmtimer", +] + +[[package]] +name = "iced_graphics" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "234ca1c2cec4155055f68fa5fad1b5242c496ac8238d80a259bca382fb44a102" +dependencies = [ + "bitflags 2.13.2", + "bytemuck", + "cosmic-text", + "half", + "iced_core", + "iced_futures", + "log", + "lyon_path", + "raw-window-handle", + "rustc-hash 2.1.3", + "thiserror 2.0.21", + "unicode-segmentation", +] + +[[package]] +name = "iced_program" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6dfafec2947cda688d8eb00dac337ba11aa60f9ef6335aed343e189d26e4a673" +dependencies = [ + "iced_graphics", + "iced_runtime", +] + +[[package]] +name = "iced_renderer" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "250cc0802408e8c077986ec56c7d07c65f423ee658a4b9fd795a1f2aae5dac05" +dependencies = [ + "iced_graphics", + "iced_tiny_skia", + "iced_wgpu", + "log", + "thiserror 2.0.21", +] + +[[package]] +name = "iced_runtime" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1889b819ce4c06674183242e336c8d49465665441396914dc07cc86f44fa8d4" +dependencies = [ + "bytes", + "iced_core", + "iced_futures", + "raw-window-handle", + "thiserror 2.0.21", +] + +[[package]] +name = "iced_selector" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1442ccc30959cc48b3a624233521ef7f3bc3e06528b6fe306c3a775fbddc4fe" +dependencies = [ + "iced_core", +] + +[[package]] +name = "iced_test" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b56c26cc6e63958ce6be06a68fa3136fd5f646da6302ee12abf1a0f311dd0166" +dependencies = [ + "iced_futures", + "iced_program", + "iced_renderer", + "iced_runtime", + "iced_selector", + "nom", + "png", + "sha2", + "thiserror 2.0.21", +] + +[[package]] +name = "iced_tiny_skia" +version = "0.14.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c267596d742714b1853cc10c3983a367762816fc4836bd3b79f76ce76787d6f8" +dependencies = [ + "bytemuck", + "cosmic-text", + "iced_debug", + "iced_graphics", + "kurbo", + "log", + "rustc-hash 2.1.3", + "softbuffer", + "tiny-skia", +] + +[[package]] +name = "iced_wgpu" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff144a999b0ca0f8a10257934500060240825c42e950ec0ebee9c8ae30561c13" +dependencies = [ + "bitflags 2.13.2", + "bytemuck", + "cryoglyph", + "futures", + "glam", + "guillotiere", + "iced_debug", + "iced_graphics", + "log", + "lyon", + "rustc-hash 2.1.3", + "thiserror 2.0.21", + "wgpu", +] + +[[package]] +name = "iced_widget" +version = "0.14.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1596afa0d3109c2618e8bc12bae6c11d3064df8f95c42dfce570397dbe957ab" +dependencies = [ + "iced_renderer", + "log", + "num-traits", + "rustc-hash 2.1.3", + "thiserror 2.0.21", + "unicode-segmentation", +] + +[[package]] +name = "iced_winit" +version = "0.14.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7589888c8e951899cc688247a69933bb7a0511f0b4b2e122ac3fcd5dacb37f72" +dependencies = [ + "iced_debug", + "iced_program", + "log", + "mundy", + "rustc-hash 2.1.3", + "thiserror 2.0.21", + "tracing", + "wasm-bindgen-futures", + "web-sys", + "window_clipboard", + "winit", +] + +[[package]] +name = "indexmap" +version = "2.14.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855" +dependencies = [ + "equivalent", + "hashbrown 0.17.1", +] + +[[package]] +name = "is_terminal_polyfill" +version = "1.70.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695" + +[[package]] +name = "itoa" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" + +[[package]] +name = "jiff" +version = "0.2.39" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ac703058abac89e5c39b0b879dce2b6b14a4ba36600c7e7e3d0c60a6883ef3c" +dependencies = [ + "defmt", + "jiff-core", + "jiff-static", + "log", + "portable-atomic", + "portable-atomic-util", + "serde_core", +] + +[[package]] +name = "jiff-core" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aee43309eb53bafb8c36d35d6e444769c8f8e6206a9fbf7546f5db9d7d4a0e93" +dependencies = [ + "defmt", + "log", +] + +[[package]] +name = "jiff-static" +version = "0.2.39" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6dc32470c67eb7d0e9ccb74303fa925313dc04cecb1aa048beaa6f391e36a93d" +dependencies = [ + "jiff-core", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "jni" +version = "0.22.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5efd9a482cf3a427f00d6b35f14332adc7902ce91efb778580e180ff90fa3498" +dependencies = [ + "cfg-if", + "combine", + "jni-macros", + "jni-sys 0.4.1", + "log", + "simd_cesu8", + "thiserror 2.0.21", + "walkdir", + "windows-link", +] + +[[package]] +name = "jni-macros" +version = "0.22.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a00109accc170f0bdb141fed3e393c565b6f5e072365c3bd58f5b062591560a3" +dependencies = [ + "proc-macro2", + "quote", + "rustc_version", + "simd_cesu8", + "syn 2.0.119", +] + +[[package]] +name = "jni-sys" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41a652e1f9b6e0275df1f15b32661cf0d4b78d4d87ddec5e0c3c20f097433258" +dependencies = [ + "jni-sys 0.4.1", +] + +[[package]] +name = "jni-sys" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6377a88cb3910bee9b0fa88d4f42e1d2da8e79915598f65fb0c7ee14c878af2" +dependencies = [ + "jni-sys-macros", +] + +[[package]] +name = "jni-sys-macros" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38c0b942f458fe50cdac086d2f946512305e5631e720728f2a61aabcd47a6264" +dependencies = [ + "quote", + "syn 2.0.119", +] + +[[package]] +name = "jobserver" +version = "0.1.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c00acbd29eabad4a2392fa0e921c874934dbbf4194312ad20f04a0ed67a3cb3" +dependencies = [ + "getrandom 0.4.3", + "libc", +] + +[[package]] +name = "js-sys" +version = "0.3.107" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8dc09d2154098bbf4ef54eab6b117a3c24cbbffe94046b16ee6d6d4510584d3a" +dependencies = [ + "cfg-if", + "futures-util", + "wasm-bindgen", +] + +[[package]] +name = "khronos-egl" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6aae1df220ece3c0ada96b8153459b67eebe9ae9212258bb0134ae60416fdf76" +dependencies = [ + "libc", + "libloading", + "pkg-config", +] + +[[package]] +name = "khronos_api" +version = "3.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e2db585e1d738fc771bf08a151420d3ed193d9d895a36df7f6f8a9456b911ddc" + +[[package]] +name = "kurbo" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1618d4ebd923e97d67e7cd363d80aef35fe961005cbbbb3d2dad8bdd1bc63440" +dependencies = [ + "arrayvec", + "smallvec", +] + +[[package]] +name = "libc" +version = "0.2.191" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a" + +[[package]] +name = "libloading" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55" +dependencies = [ + "cfg-if", + "windows-link", +] + +[[package]] +name = "libm" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981" + +[[package]] +name = "libredox" +version = "0.1.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61ff90caf6077a803a240f62fdbe88645a890bbca49ef8174c3cb0404362171d" +dependencies = [ + "bitflags 2.13.2", + "libc", + "plain", + "redox_syscall 0.9.5", +] + +[[package]] +name = "lilt" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "337d4c256f7d9f2dbd633891d48ace853efa5b1554122d9220b172ad9c03c3a9" +dependencies = [ + "web-time", +] + +[[package]] +name = "linebender_resource_handle" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4a5ff6bcca6c4867b1c4fd4ef63e4db7436ef363e0ad7531d1558856bae64f4" + +[[package]] +name = "linux-raw-sys" +version = "0.4.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab" + +[[package]] +name = "linux-raw-sys" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53" + +[[package]] +name = "litrs" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4744e383959f0db86ede514b809b1c53251889093803c05267acc7d4e7030d70" + +[[package]] +name = "lock_api" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965" +dependencies = [ + "scopeguard", +] + +[[package]] +name = "log" +version = "0.4.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d15f86d12da44cd8d4ec3c73984537eb7f4cadcb9776a575a0a8a05ca11005c" + +[[package]] +name = "lru" +version = "0.16.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f66e8d5d03f609abc3a39e6f08e4164ebf1447a732906d39eb9b99b7919ef39" + +[[package]] +name = "lyon" +version = "1.0.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd0578bdecb7d6d88987b8b2b1e3a4e2f81df9d0ece1078623324a567904e7b7" +dependencies = [ + "lyon_algorithms", + "lyon_tessellation", +] + +[[package]] +name = "lyon_algorithms" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f3a6b9d4e8b48acd531fbf1241ad9b270df6e60b6b92bdea1469f4f40899d805" +dependencies = [ + "lyon_path", + "num-traits", +] + +[[package]] +name = "lyon_geom" +version = "1.0.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d82dd26aa4dc0b5b70b9115de59824842bcb43cf4a28e1b1e6d0ad148c93f93e" +dependencies = [ + "arrayvec", + "euclid", + "num-traits", +] + +[[package]] +name = "lyon_path" +version = "1.0.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c463f9c428b7fc5ec885dcd39ce4aa61e29111d0e33483f6f98c74e89d8621e" +dependencies = [ + "lyon_geom", + "num-traits", +] + +[[package]] +name = "lyon_tessellation" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd4872650e70dc907dd4f7ebc449d7d657a0d2658e423b2e724970870bbbf75b" +dependencies = [ + "float_next_after", + "lyon_path", + "num-traits", +] + +[[package]] +name = "malloc_buf" +version = "0.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62bb907fe88d54d8d9ce32a3cceab4218ed2f6b7d35617cafe9adf84e43919cb" +dependencies = [ + "libc", +] + +[[package]] +name = "memchr" +version = "2.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" + +[[package]] +name = "memmap2" +version = "0.9.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b0ca1155a9ecc25aa12e8313a119f32edf0255fea2f44839c4ac0a12b2ac157" +dependencies = [ + "libc", +] + +[[package]] +name = "memoffset" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a" +dependencies = [ + "autocfg", +] + +[[package]] +name = "metal" +version = "0.32.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00c15a6f673ff72ddcc22394663290f870fb224c1bfce55734a75c414150e605" +dependencies = [ + "bitflags 2.13.2", + "block", + "core-graphics-types 0.2.0", + "foreign-types", + "log", + "objc", + "paste", +] + +[[package]] +name = "miniz_oxide" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316" +dependencies = [ + "adler2", + "simd-adler32", +] + +[[package]] +name = "miniz_oxide" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b63fbc4a50860e98e7b2aa7804ded1db5cbc3aff9193adaff57a6931bf7c4b4c" +dependencies = [ + "adler2", + "simd-adler32", +] + +[[package]] +name = "mundy" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f32eb0db40f2df2bcfb05c93b8f73938d4c26ce9ac8881f1df0c8d3296921a73" +dependencies = [ + "android-build", + "async-io", + "cfg-if", + "dispatch", + "futures-channel", + "futures-lite", + "jni", + "ndk-context", + "objc2 0.6.5", + "objc2-app-kit 0.3.2", + "objc2-foundation 0.3.2", + "pin-project-lite", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", + "windows 0.62.2", + "zbus", +] + +[[package]] +name = "naga" +version = "27.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "066cf25f0e8b11ee0df221219010f213ad429855f57c494f995590c861a9a7d8" +dependencies = [ + "arrayvec", + "bit-set", + "bitflags 2.13.2", + "cfg-if", + "cfg_aliases", + "codespan-reporting", + "half", + "hashbrown 0.16.1", + "hexf-parse", + "indexmap", + "libm", + "log", + "num-traits", + "once_cell", + "rustc-hash 1.1.0", + "spirv", + "thiserror 2.0.21", + "unicode-ident", +] + +[[package]] +name = "ndk" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3f42e7bbe13d351b6bead8286a43aac9534b82bd3cc43e47037f012ebfd62d4" +dependencies = [ + "bitflags 2.13.2", + "jni-sys 0.3.1", + "log", + "ndk-sys", + "num_enum", + "raw-window-handle", + "thiserror 1.0.69", +] + +[[package]] +name = "ndk-context" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b" + +[[package]] +name = "ndk-sys" +version = "0.6.0+11769913" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee6cda3051665f1fb8d9e08fc35c96d5a244fb1be711a03b71118828afc9a873" +dependencies = [ + "jni-sys 0.3.1", +] + +[[package]] +name = "nom" +version = "8.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df9761775871bdef83bee530e60050f7e54b1105350d6884eb0fb4f46c2f9405" +dependencies = [ + "memchr", +] + +[[package]] +name = "num-format" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a652d9771a63711fd3c3deb670acfbe5c30a4072e664d7a3bf5a9e1056ac72c3" +dependencies = [ + "arrayvec", + "itoa", +] + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", + "libm", +] + +[[package]] +name = "num_enum" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d0bca838442ec211fa11de3a8b0e0e8f3a4522575b5c4c06ed722e005036f26" +dependencies = [ + "num_enum_derive", + "rustversion", +] + +[[package]] +name = "num_enum_derive" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "680998035259dcfcafe653688bf2aa6d3e2dc05e98be6ab46afb089dc84f1df8" +dependencies = [ + "proc-macro-crate", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "objc" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "915b1b472bc21c53464d6c8461c9d3af805ba1ef837e1cac254428f4a77177b1" +dependencies = [ + "malloc_buf", +] + +[[package]] +name = "objc-sys" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdb91bdd390c7ce1a8607f35f3ca7151b65afc0ff5ff3b34fa350f7d7c7e4310" + +[[package]] +name = "objc2" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19d5490aaf8f1d7cf7688dfa9b0ce07900e168852c45cd2c03f534dfd27cfd0b" +dependencies = [ + "objc-sys", + "objc2-encode", +] + +[[package]] +name = "objc2" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08849bbd4767dfae9457696856ae1c84fe4e0281bbe4a7abff2d0e06fb7981f8" +dependencies = [ + "objc2-encode", +] + +[[package]] +name = "objc2-app-kit" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4e89ad9e3d7d297152b17d39ed92cd50ca8063a89a9fa569046d41568891eff" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "libc", + "objc2 0.5.3", + "objc2-core-data 0.2.2", + "objc2-core-image 0.2.2", + "objc2-foundation 0.2.2", + "objc2-quartz-core 0.2.2", +] + +[[package]] +name = "objc2-app-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c" +dependencies = [ + "bitflags 2.13.2", + "block2 0.6.2", + "libc", + "objc2 0.6.5", + "objc2-cloud-kit 0.3.2", + "objc2-core-data 0.3.2", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-core-image 0.3.2", + "objc2-core-text", + "objc2-core-video", + "objc2-foundation 0.3.2", + "objc2-quartz-core 0.3.2", +] + +[[package]] +name = "objc2-cloud-kit" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "74dd3b56391c7a0596a295029734d3c1c5e7e510a4cb30245f8221ccea96b009" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "objc2 0.5.3", + "objc2-core-location", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-cloud-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73ad74d880bb43877038da939b7427bba67e9dd42004a18b809ba7d87cee241c" +dependencies = [ + "bitflags 2.13.2", + "objc2 0.6.5", + "objc2-foundation 0.3.2", +] + +[[package]] +name = "objc2-contacts" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5ff520e9c33812fd374d8deecef01d4a840e7b41862d849513de77e44aa4889" +dependencies = [ + "block2 0.5.1", + "objc2 0.5.3", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-core-data" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "617fbf49e071c178c0b24c080767db52958f716d9eabdf0890523aeae54773ef" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "objc2 0.5.3", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-core-data" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b402a653efbb5e82ce4df10683b6b28027616a2715e90009947d50b8dd298fa" +dependencies = [ + "bitflags 2.13.2", + "objc2 0.6.5", + "objc2-foundation 0.3.2", +] + +[[package]] +name = "objc2-core-foundation" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536" +dependencies = [ + "bitflags 2.13.2", + "dispatch2", + "objc2 0.6.5", +] + +[[package]] +name = "objc2-core-graphics" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807" +dependencies = [ + "bitflags 2.13.2", + "dispatch2", + "objc2 0.6.5", + "objc2-core-foundation", + "objc2-io-surface", +] + +[[package]] +name = "objc2-core-image" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "55260963a527c99f1819c4f8e3b47fe04f9650694ef348ffd2227e8196d34c80" +dependencies = [ + "block2 0.5.1", + "objc2 0.5.3", + "objc2-foundation 0.2.2", + "objc2-metal", +] + +[[package]] +name = "objc2-core-image" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5d563b38d2b97209f8e861173de434bd0214cf020e3423a52624cd1d989f006" +dependencies = [ + "objc2 0.6.5", + "objc2-foundation 0.3.2", +] + +[[package]] +name = "objc2-core-location" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "000cfee34e683244f284252ee206a27953279d370e309649dc3ee317b37e5781" +dependencies = [ + "block2 0.5.1", + "objc2 0.5.3", + "objc2-contacts", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-core-text" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0cde0dfb48d25d2b4862161a4d5fcc0e3c24367869ad306b0c9ec0073bfed92d" +dependencies = [ + "bitflags 2.13.2", + "objc2 0.6.5", + "objc2-core-foundation", + "objc2-core-graphics", +] + +[[package]] +name = "objc2-core-video" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d425caf1df73233f29fd8a5c3e5edbc30d2d4307870f802d18f00d83dc5141a6" +dependencies = [ + "bitflags 2.13.2", + "objc2 0.6.5", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-io-surface", +] + +[[package]] +name = "objc2-encode" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef25abbcd74fb2609453eb695bd2f860d389e457f67dc17cafc8b8cbc89d0c33" + +[[package]] +name = "objc2-foundation" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ee638a5da3799329310ad4cfa62fbf045d5f56e3ef5ba4149e7452dcf89d5a8" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "dispatch", + "libc", + "objc2 0.5.3", +] + +[[package]] +name = "objc2-foundation" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272" +dependencies = [ + "bitflags 2.13.2", + "block2 0.6.2", + "libc", + "objc2 0.6.5", + "objc2-core-foundation", +] + +[[package]] +name = "objc2-io-surface" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "180788110936d59bab6bd83b6060ffdfffb3b922ba1396b312ae795e1de9d81d" +dependencies = [ + "bitflags 2.13.2", + "objc2 0.6.5", + "objc2-core-foundation", +] + +[[package]] +name = "objc2-link-presentation" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1a1ae721c5e35be65f01a03b6d2ac13a54cb4fa70d8a5da293d7b0020261398" +dependencies = [ + "block2 0.5.1", + "objc2 0.5.3", + "objc2-app-kit 0.2.2", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-metal" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd0cba1276f6023976a406a14ffa85e1fdd19df6b0f737b063b95f6c8c7aadd6" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "objc2 0.5.3", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-quartz-core" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e42bee7bff906b14b167da2bac5efe6b6a07e6f7c0a21a7308d40c960242dc7a" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "objc2 0.5.3", + "objc2-foundation 0.2.2", + "objc2-metal", +] + +[[package]] +name = "objc2-quartz-core" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96c1358452b371bf9f104e21ec536d37a650eb10f7ee379fff67d2e08d537f1f" +dependencies = [ + "bitflags 2.13.2", + "objc2 0.6.5", + "objc2-core-foundation", + "objc2-foundation 0.3.2", +] + +[[package]] +name = "objc2-symbols" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0a684efe3dec1b305badae1a28f6555f6ddd3bb2c2267896782858d5a78404dc" +dependencies = [ + "objc2 0.5.3", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-ui-kit" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8bb46798b20cd6b91cbd113524c490f1686f4c4e8f49502431415f3512e2b6f" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "objc2 0.5.3", + "objc2-cloud-kit 0.2.2", + "objc2-core-data 0.2.2", + "objc2-core-image 0.2.2", + "objc2-core-location", + "objc2-foundation 0.2.2", + "objc2-link-presentation", + "objc2-quartz-core 0.2.2", + "objc2-symbols", + "objc2-uniform-type-identifiers", + "objc2-user-notifications", +] + +[[package]] +name = "objc2-uniform-type-identifiers" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44fa5f9748dbfe1ca6c0b79ad20725a11eca7c2218bceb4b005cb1be26273bfe" +dependencies = [ + "block2 0.5.1", + "objc2 0.5.3", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-user-notifications" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76cfcbf642358e8689af64cee815d139339f3ed8ad05103ed5eaf73db8d84cb3" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "objc2 0.5.3", + "objc2-core-location", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "once_cell" +version = "1.21.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" + +[[package]] +name = "once_cell_polyfill" +version = "1.70.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe" + +[[package]] +name = "orbclient" +version = "0.3.55" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5df339f526ea9a60e371768d50efc2f2508c7203290731565d1f7a6f71d21747" +dependencies = [ + "libc", + "libredox", +] + +[[package]] +name = "ordered-float" +version = "5.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c860fd3227ca4ac3cc032e2cd20cba3f02ccdf4b610538f8ee6584d56bb62e96" +dependencies = [ + "num-traits", +] + +[[package]] +name = "ordered-stream" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9aa2b01e1d916879f73a53d01d1d6cee68adbb31d6d9177a8cfce093cced1d50" +dependencies = [ + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "owned_ttf_parser" +version = "0.25.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "36820e9051aca1014ddc75770aab4d68bc1e9e632f0f5627c4086bc216fb583b" +dependencies = [ + "ttf-parser", +] + +[[package]] +name = "parking" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba" + +[[package]] +name = "parking_lot" +version = "0.12.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a" +dependencies = [ + "lock_api", + "parking_lot_core", +] + +[[package]] +name = "parking_lot_core" +version = "0.9.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall 0.5.18", + "smallvec", + "windows-link", +] + +[[package]] +name = "paste" +version = "1.0.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" + +[[package]] +name = "percent-encoding" +version = "2.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" + +[[package]] +name = "pin-project" +version = "1.1.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2466b2336ed02bcdca6b294417127b90ec92038d1d5c4fbeac971a922e0e0924" +dependencies = [ + "pin-project-internal", +] + +[[package]] +name = "pin-project-internal" +version = "1.1.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c96395f0a926bc13b1c17622aaddda1ecb55d49c8f1bf9777e4d877800a43f8b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" + +[[package]] +name = "piper" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c835479a4443ded371d6c535cbfd8d31ad92c5d23ae9770a61bc155e4992a3c1" +dependencies = [ + "atomic-waker", + "fastrand", + "futures-io", +] + +[[package]] +name = "pkg-config" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548" + +[[package]] +name = "plain" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4596b6d070b27117e987119b4dac604f3c58cfb0b191112e24771b2faeac1a6" + +[[package]] +name = "png" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60769b8b31b2a9f263dae2776c37b1b28ae246943cf719eb6946a1db05128a61" +dependencies = [ + "bitflags 2.13.2", + "crc32fast", + "fdeflate", + "flate2", + "miniz_oxide 0.8.9", +] + +[[package]] +name = "polling" +version = "3.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d0e4f59085d47d8241c88ead0f274e8a0cb551f3625263c05eb8dd897c34218" +dependencies = [ + "cfg-if", + "concurrent-queue", + "hermit-abi", + "pin-project-lite", + "rustix 1.1.6", + "windows-sys 0.61.2", +] + +[[package]] +name = "portable-atomic" +version = "1.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85" + +[[package]] +name = "portable-atomic-util" +version = "0.2.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10ab3eb7f3becc3a1cbc4f2c6f20267996cfc1a6467a873763411b136a122715" +dependencies = [ + "portable-atomic", +] + +[[package]] +name = "presser" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8cf8e6a8aa66ce33f63993ffc4ea4271eb5b0530a9002db8455ea6050c77bfa" + +[[package]] +name = "proc-macro-crate" +version = "3.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f" +dependencies = [ + "toml_edit", +] + +[[package]] +name = "proc-macro2" +version = "1.0.107" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "profiling" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d595e54a326bc53c1c197b32d295e14b169e3cfeaa8dc82b529f947fba6bcf5" + +[[package]] +name = "quick-xml" +version = "0.41.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e660451e55124f798a69a5af3f49ccfbefbd41910eefd25caf2393e1f3473ec1" +dependencies = [ + "memchr", +] + +[[package]] +name = "quote" +version = "1.0.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "r-efi" +version = "5.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" + +[[package]] +name = "r-efi" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" + +[[package]] +name = "rand" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65c9fb96cbc91e3478eaae79a69fcd3f1ae4ad052e471fe6732fff548984b4af" +dependencies = [ + "chacha20", + "getrandom 0.4.3", + "rand_core", +] + +[[package]] +name = "rand_core" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69" + +[[package]] +name = "range-alloc" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca45419789ae5a7899559e9512e58ca889e41f04f1f2445e9f4b290ceccd1d08" + +[[package]] +name = "rangemap" +version = "1.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a611d15b50743feb4c76b7d03edcb0e64f399c26961e4efe6975bc398be6aa3d" + +[[package]] +name = "raw-window-handle" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20675572f6f24e9e76ef639bc5552774ed45f1c30e2951e1e99c59888861c539" + +[[package]] +name = "read-fonts" +version = "0.35.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6717cf23b488adf64b9d711329542ba34de147df262370221940dfabc2c91358" +dependencies = [ + "bytemuck", + "core_maths", + "font-types 0.10.1", +] + +[[package]] +name = "read-fonts" +version = "0.41.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "046a7d674daf459825b32f5062056d6882db0d2f5a479fbd76ccfc870ac18709" +dependencies = [ + "bytemuck", + "font-types 0.12.7", + "once_cell", +] + +[[package]] +name = "redox_syscall" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa" +dependencies = [ + "bitflags 1.3.2", +] + +[[package]] +name = "redox_syscall" +version = "0.5.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" +dependencies = [ + "bitflags 2.13.2", +] + +[[package]] +name = "redox_syscall" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "580c875845b41ecb1564ad1ae4703044cef774145e3d7a94dc2b3fa7c97868fd" +dependencies = [ + "bitflags 2.13.2", +] + +[[package]] +name = "regex" +version = "1.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.4.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.8.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4" + +[[package]] +name = "renderdoc-sys" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19b30a45b0cd0bcca8037f3d0dc3421eaf95327a17cad11964fb8179b4fc4832" + +[[package]] +name = "roxmltree" +version = "0.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c20b6793b5c2fa6553b250154b78d6d0db37e72700ae35fad9387a46f487c97" + +[[package]] +name = "rustc-hash" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" + +[[package]] +name = "rustc-hash" +version = "2.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d" + +[[package]] +name = "rustc_version" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92" +dependencies = [ + "semver", +] + +[[package]] +name = "rustix" +version = "0.38.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154" +dependencies = [ + "bitflags 2.13.2", + "errno", + "libc", + "linux-raw-sys 0.4.15", + "windows-sys 0.59.0", +] + +[[package]] +name = "rustix" +version = "1.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5e76742e5294153d4dde1207dbec5bdd81eef6fabdc0d2118babadabfd858aa" +dependencies = [ + "bitflags 2.13.2", + "errno", + "libc", + "linux-raw-sys 0.12.1", + "windows-sys 0.61.2", +] + +[[package]] +name = "rustversion" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f" + +[[package]] +name = "same-file" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "scoped-tls" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294" + +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + +[[package]] +name = "sctk-adwaita" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6277f0217056f77f1d8f49f2950ac6c278c0d607c45f5ee99328d792ede24ec" +dependencies = [ + "ab_glyph", + "log", + "memmap2", + "smithay-client-toolkit 0.19.2", + "tiny-skia", +] + +[[package]] +name = "self_cell" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ab42ca02749e120097e328d91d415325bdf43b1c72c4c8badf37375fe40a813" + +[[package]] +name = "semver" +version = "1.0.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd" + +[[package]] +name = "serde" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba" +dependencies = [ + "serde_core", + "serde_derive", +] + +[[package]] +name = "serde_core" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "serde_repr" +version = "0.1.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d3b1629de253c70a0508c3899572da79ca359fdab27c7920ff00406df418906" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "sha2" +version = "0.10.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283" +dependencies = [ + "cfg-if", + "cpufeatures 0.2.17", + "digest", +] + +[[package]] +name = "shlex" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba" + +[[package]] +name = "signal-hook-registry" +version = "1.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b" +dependencies = [ + "errno", + "libc", +] + +[[package]] +name = "simd-adler32" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea" + +[[package]] +name = "simd_cesu8" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11031e251abf8611c80f460e19dbdeb54a66db918e49c65a7065b46ac7aec520" +dependencies = [ + "rustc_version", + "simdutf8", +] + +[[package]] +name = "simdutf8" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e" + +[[package]] +name = "skrifa" +version = "0.37.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c31071dedf532758ecf3fed987cdb4bd9509f900e026ab684b4ecb81ea49841" +dependencies = [ + "bytemuck", + "read-fonts 0.35.0", +] + +[[package]] +name = "skrifa" +version = "0.44.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "819ab7d62b1d3e72d9d9dea5650bac30424f9111364bb94928dbf5ecad1baa68" +dependencies = [ + "bytemuck", + "read-fonts 0.41.0", +] + +[[package]] +name = "slab" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" + +[[package]] +name = "slotmap" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bdd58c3c93c3d278ca835519292445cb4b0d4dc59ccfdf7ceadaab3f8aeb4038" +dependencies = [ + "version_check", +] + +[[package]] +name = "smallvec" +version = "1.16.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0d5d4b1981b8bbbb7aed204cae5726d683d5d6ac7e74ec54122ea28f315e7c8" + +[[package]] +name = "smithay-client-toolkit" +version = "0.19.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3457dea1f0eb631b4034d61d4d8c32074caa6cd1ab2d59f2327bd8461e2c0016" +dependencies = [ + "bitflags 2.13.2", + "calloop 0.13.0", + "calloop-wayland-source 0.3.0", + "cursor-icon", + "libc", + "log", + "memmap2", + "rustix 0.38.44", + "thiserror 1.0.69", + "wayland-backend", + "wayland-client", + "wayland-csd-frame", + "wayland-cursor", + "wayland-protocols", + "wayland-protocols-wlr", + "wayland-scanner", + "xkeysym", +] + +[[package]] +name = "smithay-client-toolkit" +version = "0.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0512da38f5e2b31201a93524adb8d3136276fa4fe4aafab4e1f727a82b534cc0" +dependencies = [ + "bitflags 2.13.2", + "calloop 0.14.5", + "calloop-wayland-source 0.4.1", + "cursor-icon", + "libc", + "log", + "memmap2", + "rustix 1.1.6", + "thiserror 2.0.21", + "wayland-backend", + "wayland-client", + "wayland-csd-frame", + "wayland-cursor", + "wayland-protocols", + "wayland-protocols-experimental", + "wayland-protocols-misc", + "wayland-protocols-wlr", + "wayland-scanner", + "xkeysym", +] + +[[package]] +name = "smithay-clipboard" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "71704c03f739f7745053bde45fa203a46c58d25bc5c4efba1d9a60e9dba81226" +dependencies = [ + "libc", + "smithay-client-toolkit 0.20.0", + "wayland-backend", +] + +[[package]] +name = "smol_str" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd538fb6910ac1099850255cf94a94df6551fbdd602454387d0adb2d1ca6dead" +dependencies = [ + "serde", +] + +[[package]] +name = "softbuffer" +version = "0.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aac18da81ebbf05109ab275b157c22a653bb3c12cf884450179942f81bcbf6c3" +dependencies = [ + "as-raw-xcb-connection", + "bytemuck", + "fastrand", + "js-sys", + "memmap2", + "ndk", + "objc2 0.6.5", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-foundation 0.3.2", + "objc2-quartz-core 0.3.2", + "raw-window-handle", + "redox_syscall 0.5.18", + "rustix 1.1.6", + "tiny-xlib", + "tracing", + "wasm-bindgen", + "wayland-backend", + "wayland-client", + "wayland-sys", + "web-sys", + "windows-sys 0.61.2", + "x11rb", +] + +[[package]] +name = "spirv" +version = "0.3.0+sdk-1.3.268.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eda41003dc44290527a59b13432d4a0379379fa074b70174882adfbdfd917844" +dependencies = [ + "bitflags 2.13.2", +] + +[[package]] +name = "static_assertions" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" + +[[package]] +name = "strict-num" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6637bab7722d379c8b41ba849228d680cc12d0a45ba1fa2b48f2a30577a06731" + +[[package]] +name = "svg_fmt" +version = "0.4.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0193cc4331cfd2f3d2011ef287590868599a2f33c3e69bc22c1a3d3acf9e02fb" + +[[package]] +name = "swash" +version = "0.2.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c2499c2d826531388872b2268718aed907a39bd785ab0dcfe57fab26283f92e" +dependencies = [ + "skrifa 0.44.0", + "yazi", + "zeno", +] + +[[package]] +name = "syn" +version = "2.0.119" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "3.0.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "sys-locale" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8eab9a99a024a169fe8a903cf9d4a3b3601109bcc13bd9e3c6fff259138626c4" +dependencies = [ + "libc", +] + +[[package]] +name = "tempfile" +version = "3.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" +dependencies = [ + "fastrand", + "getrandom 0.4.3", + "once_cell", + "rustix 1.1.6", + "windows-sys 0.61.2", +] + +[[package]] +name = "termcolor" +version = "1.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "thiserror" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" +dependencies = [ + "thiserror-impl 1.0.69", +] + +[[package]] +name = "thiserror" +version = "2.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e" +dependencies = [ + "thiserror-impl 2.0.21", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "tiny-skia" +version = "0.11.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83d13394d44dae3207b52a326c0c85a8bf87f1541f23b0d143811088497b09ab" +dependencies = [ + "arrayref", + "arrayvec", + "bytemuck", + "cfg-if", + "log", + "tiny-skia-path", +] + +[[package]] +name = "tiny-skia-path" +version = "0.11.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c9e7fc0c2e86a30b117d0462aa261b72b7a99b7ebd7deb3a14ceda95c5bdc93" +dependencies = [ + "arrayref", + "bytemuck", + "strict-num", +] + +[[package]] +name = "tiny-xlib" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a90a0ca3ee6a69f2ad28fd11621a4c3f03b371f366be500b64df260c4ffbafb4" +dependencies = [ + "as-raw-xcb-connection", + "ctor", + "libloading", + "pkg-config", + "tracing", +] + +[[package]] +name = "tinyvec" +version = "1.13.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd3ca314f692efd6c868f8408f53fe444634a845f96c028b97d35f6a1f79f0ee" + +[[package]] +name = "tokio" +version = "1.54.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b52fd3255258d26fac7264ab5a76b53c13367136dc011d3d6ad4f8ed070396a3" +dependencies = [ + "pin-project-lite", +] + +[[package]] +name = "toml_datetime" +version = "1.1.3+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "173f25c883cd2176a2d8212155638c0a60d484a9d84546d270866f40f56b6e49" +dependencies = [ + "serde_core", +] + +[[package]] +name = "toml_edit" +version = "0.25.19+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd43688c4858d7264ae1cf9a9f874a67c3feb74a883b1cd7bebd6a4ea8307218" +dependencies = [ + "indexmap", + "toml_datetime", + "toml_parser", + "winnow", +] + +[[package]] +name = "toml_parser" +version = "1.1.5+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baa693a8032d7e1cada7d0041e96126df243179ff061456783ac7f12bda4744c" +dependencies = [ + "winnow", +] + +[[package]] +name = "tracing" +version = "0.1.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100" +dependencies = [ + "log", + "pin-project-lite", + "tracing-attributes", + "tracing-core", +] + +[[package]] +name = "tracing-attributes" +version = "0.1.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "tracing-core" +version = "0.1.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" +dependencies = [ + "once_cell", +] + +[[package]] +name = "ttf-parser" +version = "0.25.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2df906b07856748fa3f6e0ad0cbaa047052d4a7dd609e231c4f72cee8c36f31" +dependencies = [ + "core_maths", +] + +[[package]] +name = "typenum" +version = "1.20.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20" + +[[package]] +name = "uds_windows" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2f6fb2847f6742cd76af783a2a2c49e9375d0a111c7bef6f71cd9e738c72d6e" +dependencies = [ + "memoffset", + "tempfile", + "windows-sys 0.61.2", +] + +[[package]] +name = "unicode-bidi" +version = "0.3.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c1cb5db39152898a79168971543b1cb5020dff7fe43c8dc468b0885f5e29df5" + +[[package]] +name = "unicode-ident" +version = "1.0.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563" + +[[package]] +name = "unicode-linebreak" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b09c83c3c29d37506a3e260c08c03743a6bb66a9cd432c6934ab501a190571f" + +[[package]] +name = "unicode-script" +version = "0.5.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa04c955db05429d464c74d495c1ee677e1866e783a4c3747f9c0cef7756cabf" + +[[package]] +name = "unicode-segmentation" +version = "1.13.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8" + +[[package]] +name = "unicode-width" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca718471876992059f251e33aafc334346ada08042b7661dd1fe313a9bced557" + +[[package]] +name = "utf8parse" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" + +[[package]] +name = "uuid" +version = "1.26.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ef6dac1e96601b4fb3acccccff2139741fcb757cb9a36089bf5be91cfb285ce" +dependencies = [ + "js-sys", + "serde_core", + "wasm-bindgen", +] + +[[package]] +name = "version_check" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" + +[[package]] +name = "walkdir" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" +dependencies = [ + "same-file", + "winapi-util", +] + +[[package]] +name = "wasip2" +version = "1.0.4+wasi-0.2.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b67efb37e106e55ce722a510d6b5f9c17f083e5fc79afc2badeb12cc313d9487" +dependencies = [ + "wit-bindgen", +] + +[[package]] +name = "wasm-bindgen" +version = "0.2.130" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0181c14ddd6c7b8b0b0132a5f1ea2f32be0d893cd3ea97b6e3b28886b8a3d1c" +dependencies = [ + "cfg-if", + "rustversion", + "wasm-bindgen-macro", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-futures" +version = "0.4.80" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e14e0327cb5368ad60ccb22d04a9827a693c95a926d8d125e9fa39e0baec501" +dependencies = [ + "js-sys", + "tokio", + "wasm-bindgen", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.130" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e931a02a39abdbf66966fc35902b5ed58344750a70885bed4ebb3d8eaf28ed9" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.130" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ca4b54280e455bd831e33a6b8e734baf432fe63fbc35c42ac14ce67a043a53a" +dependencies = [ + "bumpalo", + "proc-macro2", + "quote", + "syn 3.0.9", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.130" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b1f9c3798725016c6ee5f2f57869ec0831e8bbc0ab0310a86e787e97f41389e" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "wasmtimer" +version = "0.4.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c62b7f338e4397a45d054c15a2b36a93d57cccdda7be11a7d7b045d47b5e70ce" +dependencies = [ + "futures", + "js-sys", + "parking_lot", + "pin-project-lite", + "slab", + "wasm-bindgen", +] + +[[package]] +name = "wayland-backend" +version = "0.3.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38a91b4eaddff87b1cd1074985e3713da4af2c49742d1b356b2c01670a67a078" +dependencies = [ + "cc", + "downcast-rs", + "rustix 1.1.6", + "scoped-tls", + "smallvec", + "wayland-sys", +] + +[[package]] +name = "wayland-client" +version = "0.31.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3c36a0f861ad76d0901f2800b46321410d9f73f2ea88aac0650d86c32688073" +dependencies = [ + "bitflags 2.13.2", + "rustix 1.1.6", + "wayland-backend", + "wayland-scanner", +] + +[[package]] +name = "wayland-csd-frame" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "625c5029dbd43d25e6aa9615e88b829a5cad13b2819c4ae129fdbb7c31ab4c7e" +dependencies = [ + "bitflags 2.13.2", + "cursor-icon", + "wayland-backend", +] + +[[package]] +name = "wayland-cursor" +version = "0.31.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a52d18780be9b1314328a3de5f930b73d2200112e3849ca6cb11822793fb34d" +dependencies = [ + "rustix 1.1.6", + "wayland-client", + "xcursor", +] + +[[package]] +name = "wayland-protocols" +version = "0.32.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23d0c813de3daa2ed6520af85a3bd49b0e722a3078506899aa9686fea58dc4b6" +dependencies = [ + "bitflags 2.13.2", + "wayland-backend", + "wayland-client", + "wayland-scanner", +] + +[[package]] +name = "wayland-protocols-experimental" +version = "20250721.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "40a1f863128dcaaec790d7b4b396cc9b9a7a079e878e18c47e6c2d2c5a8dcbb1" +dependencies = [ + "bitflags 2.13.2", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-scanner", +] + +[[package]] +name = "wayland-protocols-misc" +version = "0.3.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e9567599ef23e09b8dad6e429e5738d4509dfc46b3b21f32841a304d16b29c8" +dependencies = [ + "bitflags 2.13.2", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-scanner", +] + +[[package]] +name = "wayland-protocols-plasma" +version = "0.3.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b6d8cf1eb2c1c31ed1f5643c88a6e53538129d4af80030c8cabd1f9fa884d91" +dependencies = [ + "bitflags 2.13.2", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-scanner", +] + +[[package]] +name = "wayland-protocols-wlr" +version = "0.3.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eb04e52f7836d7c7976c78ca0250d61e33873c34156a2a1fc9474828ec268234" +dependencies = [ + "bitflags 2.13.2", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-scanner", +] + +[[package]] +name = "wayland-scanner" +version = "0.31.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "338e30461b3a2b67d70eb30a6d89f8e0c93a833e07d2ae89085cd070c4a00ac0" +dependencies = [ + "proc-macro2", + "quick-xml", + "quote", +] + +[[package]] +name = "wayland-sys" +version = "0.31.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d8eab23fefc9e41f8e841df4a9c707e8a8c4ed26e944ef69297184de2785e3be" +dependencies = [ + "dlib", + "log", + "once_cell", + "pkg-config", +] + +[[package]] +name = "web-sys" +version = "0.3.107" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7d179596ff5ec0f6de4db64d54011bde6289cc49603d3a6e4ce3f329207ab88" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "web-time" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "wgpu" +version = "27.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfe68bac7cde125de7a731c3400723cadaaf1703795ad3f4805f187459cd7a77" +dependencies = [ + "arrayvec", + "bitflags 2.13.2", + "cfg-if", + "cfg_aliases", + "document-features", + "hashbrown 0.16.1", + "js-sys", + "log", + "naga", + "parking_lot", + "portable-atomic", + "profiling", + "raw-window-handle", + "smallvec", + "static_assertions", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", + "wgpu-core", + "wgpu-hal", + "wgpu-types", +] + +[[package]] +name = "wgpu-core" +version = "27.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27a75de515543b1897b26119f93731b385a19aea165a1ec5f0e3acecc229cae7" +dependencies = [ + "arrayvec", + "bit-set", + "bit-vec", + "bitflags 2.13.2", + "bytemuck", + "cfg_aliases", + "document-features", + "hashbrown 0.16.1", + "indexmap", + "log", + "naga", + "once_cell", + "parking_lot", + "portable-atomic", + "profiling", + "raw-window-handle", + "rustc-hash 1.1.0", + "smallvec", + "thiserror 2.0.21", + "wgpu-core-deps-apple", + "wgpu-core-deps-emscripten", + "wgpu-core-deps-windows-linux-android", + "wgpu-hal", + "wgpu-types", +] + +[[package]] +name = "wgpu-core-deps-apple" +version = "27.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0772ae958e9be0c729561d5e3fd9a19679bcdfb945b8b1a1969d9bfe8056d233" +dependencies = [ + "wgpu-hal", +] + +[[package]] +name = "wgpu-core-deps-emscripten" +version = "27.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b06ac3444a95b0813ecfd81ddb2774b66220b264b3e2031152a4a29fda4da6b5" +dependencies = [ + "wgpu-hal", +] + +[[package]] +name = "wgpu-core-deps-windows-linux-android" +version = "27.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "71197027d61a71748e4120f05a9242b2ad142e3c01f8c1b47707945a879a03c3" +dependencies = [ + "wgpu-hal", +] + +[[package]] +name = "wgpu-hal" +version = "27.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b21cb61c57ee198bc4aff71aeadff4cbb80b927beb912506af9c780d64313ce" +dependencies = [ + "android_system_properties", + "arrayvec", + "ash", + "bit-set", + "bitflags 2.13.2", + "block", + "bytemuck", + "cfg-if", + "cfg_aliases", + "core-graphics-types 0.2.0", + "glow", + "glutin_wgl_sys", + "gpu-alloc", + "gpu-allocator", + "gpu-descriptor", + "hashbrown 0.16.1", + "js-sys", + "khronos-egl", + "libc", + "libloading", + "log", + "metal", + "naga", + "ndk-sys", + "objc", + "once_cell", + "ordered-float", + "parking_lot", + "portable-atomic", + "portable-atomic-util", + "profiling", + "range-alloc", + "raw-window-handle", + "renderdoc-sys", + "smallvec", + "thiserror 2.0.21", + "wasm-bindgen", + "web-sys", + "wgpu-types", + "windows 0.58.0", + "windows-core 0.58.0", +] + +[[package]] +name = "wgpu-types" +version = "27.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "afdcf84c395990db737f2dd91628706cb31e86d72e53482320d368e52b5da5eb" +dependencies = [ + "bitflags 2.13.2", + "bytemuck", + "js-sys", + "log", + "thiserror 2.0.21", + "web-sys", +] + +[[package]] +name = "winapi-util" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "window_clipboard" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d5654226305eaf2dde8853fb482861d28e5dcecbbd40cb88e8393d94bb80d733" +dependencies = [ + "clipboard-win", + "clipboard_macos", + "clipboard_wayland", + "clipboard_x11", + "raw-window-handle", + "thiserror 2.0.21", +] + +[[package]] +name = "windows" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd04d41d93c4992d421894c18c8b43496aa748dd4c081bac0dc93eb0489272b6" +dependencies = [ + "windows-core 0.58.0", + "windows-targets", +] + +[[package]] +name = "windows" +version = "0.62.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "527fadee13e0c05939a6a05d5bd6eec6cd2e3dbd648b9f8e447c6518133d8580" +dependencies = [ + "windows-collections", + "windows-core 0.62.2", + "windows-future", + "windows-numerics", +] + +[[package]] +name = "windows-collections" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23b2d95af1a8a14a3c7367e1ed4fc9c20e0a26e79551b1454d72583c97cc6610" +dependencies = [ + "windows-core 0.62.2", +] + +[[package]] +name = "windows-core" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ba6d44ec8c2591c134257ce647b7ea6b20335bf6379a27dac5f1641fcf59f99" +dependencies = [ + "windows-implement 0.58.0", + "windows-interface 0.58.0", + "windows-result 0.2.0", + "windows-strings 0.1.0", + "windows-targets", +] + +[[package]] +name = "windows-core" +version = "0.62.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" +dependencies = [ + "windows-implement 0.60.2", + "windows-interface 0.59.3", + "windows-link", + "windows-result 0.4.1", + "windows-strings 0.5.1", +] + +[[package]] +name = "windows-future" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1d6f90251fe18a279739e78025bd6ddc52a7e22f921070ccdc67dde84c605cb" +dependencies = [ + "windows-core 0.62.2", + "windows-link", + "windows-threading", +] + +[[package]] +name = "windows-implement" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bbd5b46c938e506ecbce286b6628a02171d56153ba733b6c741fc627ec9579b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "windows-implement" +version = "0.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "windows-interface" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "053c4c462dc91d3b1504c6fe5a726dd15e216ba718e84a0e46a88fbe5ded3515" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "windows-interface" +version = "0.59.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "windows-link" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" + +[[package]] +name = "windows-numerics" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e2e40844ac143cdb44aead537bbf727de9b044e107a0f1220392177d15b0f26" +dependencies = [ + "windows-core 0.62.2", + "windows-link", +] + +[[package]] +name = "windows-result" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d1043d8214f791817bab27572aaa8af63732e11bf84aa21a45a78d6c317ae0e" +dependencies = [ + "windows-targets", +] + +[[package]] +name = "windows-result" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-strings" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cd9b125c486025df0eabcb585e62173c6c9eddcec5d117d3b6e8c30e2ee4d10" +dependencies = [ + "windows-result 0.2.0", + "windows-targets", +] + +[[package]] +name = "windows-strings" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-sys" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" +dependencies = [ + "windows-targets", +] + +[[package]] +name = "windows-sys" +version = "0.59.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" +dependencies = [ + "windows-targets", +] + +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-targets" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" +dependencies = [ + "windows_aarch64_gnullvm", + "windows_aarch64_msvc", + "windows_i686_gnu", + "windows_i686_gnullvm", + "windows_i686_msvc", + "windows_x86_64_gnu", + "windows_x86_64_gnullvm", + "windows_x86_64_msvc", +] + +[[package]] +name = "windows-threading" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3949bd5b99cafdf1c7ca86b43ca564028dfe27d66958f2470940f73d86d75b37" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" + +[[package]] +name = "windows_i686_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" + +[[package]] +name = "windows_i686_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" + +[[package]] +name = "winit" +version = "0.30.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6755fa58a9f8350bd1e472d4c3fcc25f824ec358933bba33306d0b63df5978d" +dependencies = [ + "ahash", + "android-activity", + "atomic-waker", + "bitflags 2.13.2", + "block2 0.5.1", + "bytemuck", + "calloop 0.13.0", + "cfg_aliases", + "concurrent-queue", + "core-foundation 0.9.4", + "core-graphics", + "cursor-icon", + "dpi", + "js-sys", + "libc", + "memmap2", + "ndk", + "objc2 0.5.3", + "objc2-app-kit 0.2.2", + "objc2-foundation 0.2.2", + "objc2-ui-kit", + "orbclient", + "percent-encoding", + "pin-project", + "raw-window-handle", + "redox_syscall 0.4.1", + "rustix 0.38.44", + "sctk-adwaita", + "smithay-client-toolkit 0.19.2", + "smol_str", + "tracing", + "unicode-segmentation", + "wasm-bindgen", + "wasm-bindgen-futures", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-protocols-plasma", + "web-sys", + "web-time", + "windows-sys 0.52.0", + "x11-dl", + "x11rb", + "xkbcommon-dl", +] + +[[package]] +name = "winnow" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c3b93199df0ab874cdf0c6a94f0a0dc3423fe41f1cafb62b8bd7b1deb277aef" +dependencies = [ + "memchr", +] + +[[package]] +name = "wit-bindgen" +version = "0.57.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e" + +[[package]] +name = "x11-dl" +version = "2.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38735924fedd5314a6e548792904ed8c6de6636285cb9fec04d5b1db85c1516f" +dependencies = [ + "libc", + "once_cell", + "pkg-config", +] + +[[package]] +name = "x11rb" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9993aa5be5a26815fe2c3eacfc1fde061fc1a1f094bf1ad2a18bf9c495dd7414" +dependencies = [ + "as-raw-xcb-connection", + "gethostname", + "libc", + "libloading", + "once_cell", + "rustix 1.1.6", + "x11rb-protocol", +] + +[[package]] +name = "x11rb-protocol" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea6fc2961e4ef194dcbfe56bb845534d0dc8098940c7e5c012a258bfec6701bd" + +[[package]] +name = "xcursor" +version = "0.3.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "163b33ed8786455e2fa5d72f554057ce3f3182425434f756cd39c99839d88e23" + +[[package]] +name = "xkbcommon-dl" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d039de8032a9a8856a6be89cea3e5d12fdd82306ab7c94d74e6deab2460651c5" +dependencies = [ + "bitflags 2.13.2", + "dlib", + "log", + "once_cell", + "xkeysym", +] + +[[package]] +name = "xkeysym" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9cc00251562a284751c9973bace760d86c0276c471b4be569fe6b068ee97a56" + +[[package]] +name = "xml-rs" +version = "0.8.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e450f9b2ed1dff33c94c12589a87338689467b9c4f5d8a5710bd09a847d2c8a7" + +[[package]] +name = "yazi" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac366ea532fa8ee6a992cec9dea525b1dc284e69702f36c2ab5fbebadc81ec86" + +[[package]] +name = "zbus" +version = "5.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5db4be7c075cb421e4b7ee645541604239bd243ba7c357511f4ff3a74b555907" +dependencies = [ + "async-broadcast", + "async-executor", + "async-io", + "async-lock", + "async-process", + "async-recursion", + "async-task", + "async-trait", + "blocking", + "enumflags2", + "event-listener", + "futures-core", + "futures-lite", + "hex", + "libc", + "ordered-stream", + "rustix 1.1.6", + "serde", + "serde_repr", + "tracing", + "uds_windows", + "uuid", + "windows-sys 0.61.2", + "winnow", + "zbus_macros", + "zbus_names", + "zvariant", +] + +[[package]] +name = "zbus_macros" +version = "5.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2990635d09ade6df1868f72f8cac69a876a90981e8bd3c40b1be413f8dc88f40" +dependencies = [ + "proc-macro-crate", + "proc-macro2", + "quote", + "syn 3.0.9", + "zbus_names", + "zvariant", + "zvariant_utils", +] + +[[package]] +name = "zbus_names" +version = "4.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "812a12be4ead7a59e18ea8f047d08add0066b73bc62fc1467066a2472ae088dd" +dependencies = [ + "serde", + "winnow", + "zvariant", +] + +[[package]] +name = "zcheapstr" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "939f186d9ecebe044315a5cb6d6f78568bbc21152adc954d5a0c2f58bdbc9920" +dependencies = [ + "serde", +] + +[[package]] +name = "zeno" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6df3dc4292935e51816d896edcd52aa30bc297907c26167fec31e2b0c6a32524" + +[[package]] +name = "zerocopy" +version = "0.8.63" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5fe1f8f1b06191a00962174c61aa5005e0bb391a6d80d07e24d115c01a92ed8" +dependencies = [ + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.8.63" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "863ad3ac83293fb4d740aedbfdc9240dd8d1a50c1099acd76ce80ce7c7230c7f" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "zlib-rs" +version = "0.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b268e58e7c693d7c271f93ffc4ba3b380412554231c85bf61ca7af91042a4112" + +[[package]] +name = "zvariant" +version = "5.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "80bf6d6cd6a4b601acb64cfb8284cdc643fcfa75ef26ae3c46ec8aa4e8a1fbb7" +dependencies = [ + "endi", + "enumflags2", + "serde", + "winnow", + "zcheapstr", + "zvariant_derive", + "zvariant_utils", +] + +[[package]] +name = "zvariant_derive" +version = "5.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef2672456ba1cb54b5eaec136e63135b3c7495fb938e53b28a62e633496d486d" +dependencies = [ + "proc-macro-crate", + "proc-macro2", + "quote", + "syn 3.0.9", + "zvariant_utils", +] + +[[package]] +name = "zvariant_utils" +version = "4.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bad0294361a320b694a328460dc73add56c306150f5cb6bfafc44446120008a3" +dependencies = [ + "proc-macro2", + "quote", + "serde", + "syn 3.0.9", + "winnow", +] diff --git a/vendor/iced_aw/Cargo.toml b/vendor/iced_aw/Cargo.toml new file mode 100644 index 0000000..e168edb --- /dev/null +++ b/vendor/iced_aw/Cargo.toml @@ -0,0 +1,149 @@ +# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO +# +# When uploading crates to the registry Cargo will automatically +# "normalize" Cargo.toml files for maximal compatibility +# with all versions of Cargo and also rewrite `path` dependencies +# to registry (e.g., crates.io) dependencies. +# +# If you are reading this file be aware that the original Cargo.toml +# will likely look very different (and much more reasonable). +# See Cargo.toml.orig for the original contents. + +[package] +edition = "2024" +rust-version = "1.88" +name = "iced_aw" +version = "0.14.1" +authors = [ + "Kaiden42 ", + "Andrew Wheeler ", +] +build = false +autolib = false +autobins = false +autoexamples = false +autotests = false +autobenches = false +description = "Additional widgets for the Iced GUI library" +homepage = "https://iced.rs" +readme = "README.md" +keywords = [ + "gui", + "graphics", + "interface", + "widgets", + "iced", +] +categories = ["gui"] +license = "MIT" +repository = "https://github.com/iced-rs/iced_aw" + +[features] +badge = [] +card = [] +color_picker = ["iced_widget/canvas"] +context_menu = [] +custom_layout = [] +date_picker = ["chrono"] +debug_log = ["log"] +default = ["full"] +drop_down = [] +full = [ + "badge", + "card", + "number_input", + "date_picker", + "color_picker", + "tab_bar", + "tabs", + "time_picker", + "slide_bar", + "wrap", + "selection_list", + "quad", + "context_menu", + "spinner", + "drop_down", + "menu", + "sidebar", + "labeled_frame", + "custom_layout", +] +labeled_frame = [] +menu = [] +number_input = [ + "num-format", + "num-traits", + "typed_input", +] +quad = [] +selection_list = [] +sidebar = [] +slide_bar = [] +spinner = [] +tab_bar = [] +tabs = ["tab_bar"] +time_picker = [ + "chrono", + "iced_widget/canvas", +] +typed_input = [] +wrap = [] + +[lib] +name = "iced_aw" +crate-type = [ + "cdylib", + "rlib", +] +path = "src/lib.rs" + +[dependencies.cfg-if] +version = "1.0" + +[dependencies.chrono] +version = "0.4.44" +features = ["wasmbind"] +optional = true + +[dependencies.iced_core] +version = "0.14.0" + +[dependencies.iced_fonts] +version = "0.3.0" +features = ["advanced_text"] + +[dependencies.iced_widget] +version = "0.14.2" + +[dependencies.log] +version = "0.4" +optional = true + +[dependencies.num-format] +version = "0.4.4" +optional = true + +[dependencies.num-traits] +version = "0.2.19" +optional = true + +[dependencies.web-time] +version = "1.1.0" + +[dev-dependencies.env_logger] +version = "0.11.10" + +[dev-dependencies.getrandom] +version = "0.4.2" +features = ["wasm_js"] + +[dev-dependencies.iced] +version = "0.14.0" +features = ["advanced"] + +[dev-dependencies.iced_test] +version = "0.14" + +[dev-dependencies.rand] +version = "0.10.1" diff --git a/vendor/iced_aw/LICENSE b/vendor/iced_aw/LICENSE new file mode 100644 index 0000000..489c5a0 --- /dev/null +++ b/vendor/iced_aw/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Kaiden42 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/vendor/iced_aw/README.md b/vendor/iced_aw/README.md new file mode 100644 index 0000000..26cb46d --- /dev/null +++ b/vendor/iced_aw/README.md @@ -0,0 +1,173 @@ +# Iced - Additional Widgets + +[![Documentation](https://docs.rs/iced_aw/badge.svg)](https://docs.rs/iced_aw) +[![Crates.io](https://img.shields.io/crates/v/iced_aw.svg)](https://crates.io/crates/iced_aw) +[![License](https://img.shields.io/crates/l/iced_aw.svg)](https://github.com/iced-rs/iced/blob/master/LICENSE) +[![Discord Server](https://img.shields.io/discord/628993209984614400?label=&labelColor=6A7EC2&logo=discord&logoColor=ffffff&color=7389D8)](https://discord.gg/3xZJ65GAhd) + +This crate contains additional widgets for the GUI library [Iced](https://github.com/hecrj/iced). + +Every widget is hidden by a feature gate. This allows you to cherry pick the widgets you actually need. + +## Usage + +Include `iced_aw` as a dependency in your `Cargo.toml`: + +```toml +[dependencies] +iced = "0.14.0" +iced_aw = { version = "0.14.0", features = ["full"] } +``` + +## Versioning + +| `iced` version | `iced_aw` version | +| -------------- | ----------------- | +| 0.13 | 0.12 | +| 0.14 | 0.13, 0.14 | + +## Widgets + +### Badge + +
+ + ![Badge showcase](./images/showcase/badge.png) +
+ +Please take a look into our examples on how to use badges. + +Enable this widget with the feature `badge`. + +### Card + +
+ +![Card showcase](./images/showcase/card.png) +
+ +Please take a look into our examples on how to use cards. + +Enable this widget with the feature `card`. + +### Color Picker + +
+ +![Color Picker showcase](./images/showcase/color_picker.png) +
+ +Please take a look into our examples on how to use color pickers. + +Enable this widget with the feature `color_picker`. + +### Date Picker + +
+ + ![Date Picker showcase](./images/showcase/date_picker.png) +
+ +Please take a look into our examples on how to use date pickers. + +Enable this widget with the feature `date_picker`. + +### NumberInput + +Just like TextInput, but only for numbers. + +
+ +![NumberInput showcase](./images/showcase/number_input.png) +
+ +Please take a look into our examples on how to use number inputs. + +Enable this widget with the feature `number_input`. + +*This widget does currently not support web* + +### SelectionList + +A selection space to show any options passed in. + +
+ +![SelectionList showcase](./images/showcase/selection_list.gif) +
+ +Enable this widget with the feature `selection_list`. + +### TabBar and Tabs + +
+ +![Tabs showcase](./images/showcase/tabs_example.gif) +
+ +Please take a look into our examples on how to use TabBars and Tabs. + +Enable TabBars with the feature `tab_bar` and Tabs with `tabs`. + +### Time Picker + +
+ +![Modal showcase](./images/showcase/time_picker.png) +
+ +Please take a look into our examples on how to use time pickers. + +Enable this widget with the feature `time_picker`. + +### Menu + +
+ +![Menu showcase](./images/showcase/menu.gif) +
+ +Please take a look into our examples on how to use menus. + +Enable this widget with the feature `menu`. + +You might also want to enable the feature `quad` for drawing separators. + +### Slide Bar + +Please take a look into our examples on how to use slidebars. + +Enable this widget with the feature `slide_bar`. + +### Context Menu + +See the example [here](./examples/context_menu.rs) + +### Drop Down Menu + +See the example [here](./examples/drop_down.rs) + +### Sidebar + +
+ +![Modal showcase](./images/showcase/sidebar.png) +
+ +Please take a look into our examples on how to use Sidebar. + +Enable Sidebar with the feature `sidebar`. + +Also included in this feature, are two widgets `sidebar::column::FlushColumn` and `sidebar::row::FlushRow` that flushes the end/start element to the opposite direction to the alignment of the container. + +### Color palette + +This crate adds a predefined color palette based on the [CSS color palette](https://www.w3schools.com/cssref/css_colors.asp). + +### LabeledFrame +A frame with a title. + +
+ +![LabeledFrame showcase](./images/showcase/labeled_frame.png) +
diff --git a/vendor/iced_aw/font.ttf b/vendor/iced_aw/font.ttf new file mode 100644 index 0000000..563f9d0 Binary files /dev/null and b/vendor/iced_aw/font.ttf differ diff --git a/vendor/iced_aw/src/core.rs b/vendor/iced_aw/src/core.rs new file mode 100644 index 0000000..56240ec --- /dev/null +++ b/vendor/iced_aw/src/core.rs @@ -0,0 +1,22 @@ +//! `iced_aw_core`. +#[cfg(feature = "date_picker")] +pub mod date; + +#[cfg(feature = "time_picker")] +pub mod clock; + +#[cfg(feature = "color_picker")] +pub mod color; + +pub mod overlay; + +pub mod renderer; + +#[cfg(feature = "time_picker")] +pub mod time; + +#[cfg(feature = "drop_down")] +pub mod offset; + +#[cfg(feature = "drop_down")] +pub mod alignment; diff --git a/vendor/iced_aw/src/core/alignment.rs b/vendor/iced_aw/src/core/alignment.rs new file mode 100644 index 0000000..3544eaf --- /dev/null +++ b/vendor/iced_aw/src/core/alignment.rs @@ -0,0 +1,26 @@ +//! Alignment enum, similar to an anchor + +/// ```text +/// +-----------+-----------+-----------+ +/// | TopStart | Top | TopEnd | +/// +-----------+-----------+-----------+ +/// | Start | | End | +/// +-----------+-----------+-----------+ +/// |BottomStart| Bottom | BottomEnd | +/// +-----------+-----------+-----------+ +/// ``` +#[allow(missing_docs)] +#[derive(Debug, Clone, PartialEq, Eq)] +pub enum Alignment { + TopStart, + Top, + TopEnd, + + End, + + BottomEnd, + Bottom, + BottomStart, + + Start, +} diff --git a/vendor/iced_aw/src/core/clock.rs b/vendor/iced_aw/src/core/clock.rs new file mode 100644 index 0000000..1a9b552 --- /dev/null +++ b/vendor/iced_aw/src/core/clock.rs @@ -0,0 +1,367 @@ +//! Helper functions for calculating the clock + +use iced_core::Point; +use std::fmt::Display; + +/// The size of the period on the clock based on the clock's size. +pub const PERIOD_PERCENTAGE: f32 = 0.1; + +/// The radius of the hour on the clock based on the clock's size. +pub const HOUR_RADIUS_PERCENTAGE: f32 = 0.4; + +/// The radius of the minute on the clock based on the clock's size. +pub const MINUTE_RADIUS_PERCENTAGE: f32 = 0.65; + +/// The radius of the second on the clock based on the clock's size. +pub const SECOND_RADIUS_PERCENTAGE: f32 = 0.9; + +/// The radius of the hour without the seconds on the clock based on the +/// clock's size. +pub const HOUR_RADIUS_PERCENTAGE_NO_SECONDS: f32 = 0.5; + +/// The radius of the minute without the seconds on the clock based on the +/// clock's size. +pub const MINUTE_RADIUS_PERCENTAGE_NO_SECONDS: f32 = 0.9; + +/// The current period of the clock. +#[derive(Clone, Debug)] +pub enum Period { + /// Ante meridiem: Before noon. + AM, + /// Post meridiem: After noon. + PM, +} + +impl Display for Period { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!( + f, + "{}", + match self { + Self::AM => "AM", + Self::PM => "PM", + } + ) + } +} + +/// The radius nearest to the cursor position. +#[derive(Clone, Debug, PartialEq, Eq)] +pub enum NearestRadius { + /// Nothing is near to the cursor position. + None, + /// Period is the nearest radius to the cursor position. + Period, + /// Hour is the nearest radius to the cursor position. + Hour, + /// Minute is the nearest radius to the cursor position. + Minute, + /// Second is the nearest radius to the cursor position. + Second, +} + +/// Distributes the amount of points on a circle with the given radius around the +/// center. +#[must_use] +pub fn circle_points(distance_radius: f32, center: Point, amount: u16) -> Vec { + let part = std::f32::consts::TAU / f32::from(amount); + + let rotation = + |(x, y): (f32, f32), t: f32| (x * t.cos() - y * t.sin(), x * t.sin() + y * t.cos()); + + let points: Vec<(f32, f32)> = (0..amount).fold(Vec::new(), |mut v, i| { + v.push(rotation((0.0, -distance_radius), part * f32::from(i))); + v + }); + + let points: Vec = points + .iter() + .map(|p| Point::new(p.0 + center.x, p.1 + center.y)) + .collect(); + + points +} + +/// # Panics +/// Determines the nearest point with the smallest distance to the cursor +/// position. The index of the point is returned. +/// Will panic if distance vec can not compare a and b +#[must_use] +pub fn nearest_point(points: &[Point], cursor_position: Point) -> usize { + let mut distance_vec: Vec<(usize, f32)> = points + .iter() + .enumerate() + .map(|(i, p)| (i, p.distance(cursor_position))) + .collect(); + + distance_vec.sort_by(|a, b| a.1.partial_cmp(&b.1).expect("Should be comparable")); + + distance_vec[0].0 +} + +/// # Panics +/// Determining the nearest radius to the position of the cursor position based +/// on the distance to the center. +/// Will panic if distance vec can not compare a and b +#[must_use] +pub fn nearest_radius( + radii: &[(f32, NearestRadius)], + cursor_position: Point, + center: Point, +) -> NearestRadius { + let distance = cursor_position.distance(center); + + let mut distance_vec: Vec<(f32, &NearestRadius)> = radii + .iter() + .map(|(r, n)| ((r - distance).abs(), n)) + .collect(); + + distance_vec.sort_by(|a, b| a.0.partial_cmp(&b.0).expect("Should be comparable")); + + distance_vec[0].1.clone() +} + +#[cfg(test)] +mod tests { + use iced_core::{Point, Vector}; + + use super::{NearestRadius, circle_points, nearest_point, nearest_radius}; + + #[test] + fn circle_points_test() { + let points = circle_points(10.0, Point::new(0.0, 0.0), 10); + let expected = vec![ + Point { x: 0.0, y: -10.0 }, + Point { + x: 5.877_852_4, + y: -8.09017, + }, + Point { + x: 9.510_566, + y: -3.090_169_7, + }, + Point { + x: 9.510_565, + y: 3.090_170_4, + }, + Point { + x: 5.877_852, + y: 8.090_171, + }, + Point { + x: -0.000_000_874_227_8, + y: 10.0, + }, + Point { + x: -5.877_853_4, + y: 8.09017, + }, + Point { + x: -9.510_565, + y: 3.090_170_9, + }, + Point { + x: -9.510_565, + y: -3.090_171_3, + }, + Point { + x: -5.877_849_6, + y: -8.090_173, + }, + ]; + + assert_eq!(points, expected); + } + + #[test] + fn nearest_radius_test() { + let radii = vec![ + (10.0, NearestRadius::Period), + (20.0, NearestRadius::Hour), + (30.0, NearestRadius::Minute), + (40.0, NearestRadius::Second), + ]; + + let center = Point::new(0.0, 0.0); + + let cursor_position = Point::new(5.0, 0.0); + let result = nearest_radius(&radii, cursor_position, center); + assert_eq!(result, NearestRadius::Period); + + let cursor_position = Point::new(16.0, 0.0); + let result = nearest_radius(&radii, cursor_position, center); + assert_eq!(result, NearestRadius::Hour); + + let cursor_position = Point::new(26.0, 0.0); + let result = nearest_radius(&radii, cursor_position, center); + assert_eq!(result, NearestRadius::Minute); + + let cursor_position = Point::new(36.0, 0.0); + let result = nearest_radius(&radii, cursor_position, center); + assert_eq!(result, NearestRadius::Second); + } + + #[test] + fn nearest_point_test() { + let points = circle_points(10.0, Point::new(0.0, 0.0), 10); + + let mut index = 5; + let cursor_position = points[index] + Vector::new(1.0, -1.0); + let mut result = nearest_point(&points, cursor_position); + assert_eq!(index, result); + + index = 0; + let cursor_position = points[index] + Vector::new(-1.0, 1.0); + result = nearest_point(&points, cursor_position); + assert_eq!(index, result); + } + + #[test] + fn period_display_am() { + use super::Period; + let period = Period::AM; + assert_eq!(format!("{period}"), "AM"); + } + + #[test] + fn period_display_pm() { + use super::Period; + let period = Period::PM; + assert_eq!(format!("{period}"), "PM"); + } + + #[test] + fn circle_points_with_offset_center() { + let points = circle_points(5.0, Point::new(10.0, 20.0), 4); + assert_eq!(points.len(), 4); + // Top point should be at (10, 15) - center.y - radius + assert!((points[0].x - 10.0).abs() < 0.001); + assert!((points[0].y - 15.0).abs() < 0.001); + } + + #[test] + fn circle_points_single_point() { + let points = circle_points(10.0, Point::new(0.0, 0.0), 1); + assert_eq!(points.len(), 1); + // Single point should be at top (0, -10) + assert!((points[0].x - 0.0).abs() < 0.001); + assert!((points[0].y - (-10.0)).abs() < 0.001); + } + + #[test] + fn circle_points_twelve_points() { + let points = circle_points(10.0, Point::new(0.0, 0.0), 12); + assert_eq!(points.len(), 12); + // 12 points should be evenly distributed (like clock hours) + // First point should be at top + assert!((points[0].x - 0.0).abs() < 0.001); + assert!((points[0].y - (-10.0)).abs() < 0.001); + } + + #[test] + fn nearest_point_single_point() { + let points = vec![Point::new(5.0, 5.0)]; + let cursor = Point::new(100.0, 100.0); + let result = nearest_point(&points, cursor); + assert_eq!(result, 0); + } + + #[test] + fn nearest_point_exact_match() { + let points = circle_points(10.0, Point::new(0.0, 0.0), 8); + // Cursor exactly on point 3 + let cursor = points[3]; + let result = nearest_point(&points, cursor); + assert_eq!(result, 3); + } + + #[test] + fn nearest_radius_at_exact_radius() { + let radii = vec![ + (10.0, NearestRadius::Period), + (20.0, NearestRadius::Hour), + (30.0, NearestRadius::Minute), + ]; + let center = Point::new(0.0, 0.0); + // Cursor exactly at radius 20 + let cursor = Point::new(20.0, 0.0); + let result = nearest_radius(&radii, cursor, center); + assert_eq!(result, NearestRadius::Hour); + } + + #[test] + fn nearest_radius_at_center() { + let radii = vec![ + (10.0, NearestRadius::Period), + (20.0, NearestRadius::Hour), + (30.0, NearestRadius::Minute), + ]; + let center = Point::new(0.0, 0.0); + // Cursor at center + let cursor = Point::new(0.0, 0.0); + let result = nearest_radius(&radii, cursor, center); + // Should pick the smallest radius (Period at 10.0) + assert_eq!(result, NearestRadius::Period); + } + + #[test] + fn nearest_radius_beyond_largest() { + let radii = vec![ + (10.0, NearestRadius::Period), + (20.0, NearestRadius::Hour), + (30.0, NearestRadius::Minute), + ]; + let center = Point::new(0.0, 0.0); + // Cursor far beyond all radii + let cursor = Point::new(100.0, 0.0); + let result = nearest_radius(&radii, cursor, center); + // Should still pick the closest (Minute at 30.0) + assert_eq!(result, NearestRadius::Minute); + } + + #[test] + fn nearest_radius_with_offset_center() { + let radii = vec![(5.0, NearestRadius::Period), (15.0, NearestRadius::Hour)]; + let center = Point::new(50.0, 50.0); + let cursor = Point::new(62.0, 50.0); + // Distance from center is 12, closer to Hour (15) than Period (5) + // |5 - 12| = 7, |15 - 12| = 3, so Hour is closer + let result = nearest_radius(&radii, cursor, center); + assert_eq!(result, NearestRadius::Hour); + } + + #[test] + fn nearest_radius_none_variant() { + let radii = vec![(10.0, NearestRadius::None), (20.0, NearestRadius::Hour)]; + let center = Point::new(0.0, 0.0); + let cursor = Point::new(11.0, 0.0); + let result = nearest_radius(&radii, cursor, center); + // Should pick None as it's closer to radius 10 + assert_eq!(result, NearestRadius::None); + } + + #[test] + fn circle_points_large_amount() { + let points = circle_points(10.0, Point::new(0.0, 0.0), 60); + assert_eq!(points.len(), 60); + // All points should be approximately 10.0 away from center + let center = Point::new(0.0, 0.0); + for point in points { + let distance = point.distance(center); + assert!((distance - 10.0).abs() < 0.001); + } + } + + #[test] + fn constants_are_defined() { + use super::*; + // Just verify the constants are accessible and have expected values + + assert_eq!(PERIOD_PERCENTAGE, 0.1); + assert_eq!(HOUR_RADIUS_PERCENTAGE, 0.4); + assert_eq!(MINUTE_RADIUS_PERCENTAGE, 0.65); + assert_eq!(SECOND_RADIUS_PERCENTAGE, 0.9); + assert_eq!(HOUR_RADIUS_PERCENTAGE_NO_SECONDS, 0.5); + assert_eq!(MINUTE_RADIUS_PERCENTAGE_NO_SECONDS, 0.9); + } +} diff --git a/vendor/iced_aw/src/core/color.rs b/vendor/iced_aw/src/core/color.rs new file mode 100644 index 0000000..a90f826 --- /dev/null +++ b/vendor/iced_aw/src/core/color.rs @@ -0,0 +1,339 @@ +//! Helper functions and structs for picking dates. + +use iced_core::Color; + +/// A color in the HSV color space. +#[derive(Clone, Copy, Debug, PartialEq)] +pub struct Hsv { + /// HSV hue. + pub(crate) hue: u16, + /// HSV Saturation. + pub(crate) saturation: f32, + /// HSV value. + pub(crate) value: f32, +} + +impl Hsv { + /// Creates a [`Hsv`] from its HSV components. + #[must_use] + pub const fn from_hsv(hue: u16, saturation: f32, value: f32) -> Self { + Self { + hue, + saturation, + value, + } + } +} + +/// Creates a string of hexadecimal characters. +pub trait HexString { + /// Turns self into a string of hexadecimal characters. + fn as_hex_string(&self) -> String; +} + +impl HexString for Color { + fn as_hex_string(&self) -> String { + format!( + "#{:02X?}{:02X?}{:02X?}{:02X?}", + (self.r * 255.0) as u8, + (self.g * 255.0) as u8, + (self.b * 255.0) as u8, + (self.a * 255.0) as u8, + ) + } +} + +impl From for Hsv { + // https://de.wikipedia.org/wiki/HSV-Farbraum#Umrechnung_RGB_in_HSV/HSL + fn from(color: Color) -> Self { + let max = color.r.max(color.g.max(color.b)); + let min = color.r.min(color.g.min(color.b)); + + let hue = if (max - min).abs() < f32::EPSILON { + 0.0 + } else if (max - color.r).abs() < f32::EPSILON { + 60.0 * (0.0 + (color.g - color.b) / (max - min)) + } else if (max - color.g).abs() < f32::EPSILON { + 60.0 * (2.0 + (color.b - color.r) / (max - min)) + } else { + 60.0 * (4.0 + (color.r - color.g) / (max - min)) + }; + + let hue = if hue < 0.0 { hue + 360.0 } else { hue } as u16 % 360; + + let saturation = if max == 0.0 { 0.0 } else { (max - min) / max }; + + let value = max; + + Self { + hue, + saturation, + value, + } + } +} + +impl From for Color { + fn from(hsv: Hsv) -> Self { + // https://de.wikipedia.org/wiki/HSV-Farbraum#Umrechnung_HSV_in_RGB + let h_i = (f32::from(hsv.hue) / 60.0).floor(); + let f = (f32::from(hsv.hue) / 60.0) - h_i; + + let p = hsv.value * (1.0 - hsv.saturation); + let q = hsv.value * (1.0 - hsv.saturation * f); + let t = hsv.value * (1.0 - hsv.saturation * (1.0 - f)); + + let h_i = h_i as u8; + let (red, green, blue) = match h_i { + 1 => (q, hsv.value, p), + 2 => (p, hsv.value, t), + 3 => (p, q, hsv.value), + 4 => (t, p, hsv.value), + 5 => (hsv.value, p, q), + _ => (hsv.value, t, p), + }; + + Self::from_rgb(red, green, blue) + } +} + +#[cfg(test)] +mod tests { + use iced_core::Color; + + use super::Hsv; + + #[allow(clippy::cognitive_complexity)] + #[test] + fn rgb_to_hsv() { + // https://de.wikipedia.org/wiki/HSV-Farbraum#Transformation_von_HSV/HSL_und_RGB + let red_rgb = Color::from_rgb(1.0, 0.0, 0.0); + let red_hsv = Hsv::from_hsv(0, 1.0, 1.0); + assert_eq!(red_hsv, red_rgb.into()); + + let orange_rgb = Color::from_rgb(1.0, 0.5, 0.0); + let orange_hsv = Hsv::from_hsv(30, 1.0, 1.0); + assert_eq!(orange_hsv, orange_rgb.into()); + + let yellow_rgb = Color::from_rgb(1.0, 1.0, 0.0); + let yellow_hsv = Hsv::from_hsv(60, 1.0, 1.0); + assert_eq!(yellow_hsv, yellow_rgb.into()); + + let dark_green_rgb = Color::from_rgb(0.0, 0.5, 0.0); + let dark_green_hsv = Hsv::from_hsv(120, 1.0, 0.5); + assert_eq!(dark_green_hsv, dark_green_rgb.into()); + + let violett_rgb = Color::from_rgb(0.5, 0.0, 1.0); + let violett_hsv = Hsv::from_hsv(270, 1.0, 1.0); + assert_eq!(violett_hsv, violett_rgb.into()); + + let black_rgb = Color::from_rgb(0.0, 0.0, 0.0); + let black_hsv = Hsv::from_hsv(0, 0.0, 0.0); + assert_eq!(black_hsv, black_rgb.into()); + + let blue_rgb = Color::from_rgb(0.0, 0.0, 1.0); + let blue_hsv = Hsv::from_hsv(240, 1.0, 1.0); + assert_eq!(blue_hsv, blue_rgb.into()); + + let brown_rgb = Color::from_rgb(0.36, 0.18, 0.09); + let brown_hsv = Hsv::from_hsv(20, 0.75, 0.36); + assert_eq!(brown_hsv, brown_rgb.into()); + + let white_rgb = Color::from_rgb(1.0, 1.0, 1.0); + let white_hsv = Hsv::from_hsv(0, 0.0, 1.0); + assert_eq!(white_hsv, white_rgb.into()); + + let green_rgb = Color::from_rgb(0.0, 1.0, 0.0); + let green_hsv = Hsv::from_hsv(120, 1.0, 1.0); + assert_eq!(green_hsv, green_rgb.into()); + + let cyan_rgb = Color::from_rgb(0.0, 1.0, 1.0); + let cyan_hsv = Hsv::from_hsv(180, 1.0, 1.0); + assert_eq!(cyan_hsv, cyan_rgb.into()); + + let magenta_rgb = Color::from_rgb(1.0, 0.0, 1.0); + let magenta_hsv = Hsv::from_hsv(300, 1.0, 1.0); + assert_eq!(magenta_hsv, magenta_rgb.into()); + + let blue_green_rgb = Color::from_rgb(0.0, 1.0, 0.5); + let blue_green_hsv = Hsv::from_hsv(150, 1.0, 1.0); + assert_eq!(blue_green_hsv, blue_green_rgb.into()); + + let green_blue_rgb = Color::from_rgb(0.0, 0.5, 1.0); + let green_blue_hsv = Hsv::from_hsv(210, 1.0, 1.0); + assert_eq!(green_blue_hsv, green_blue_rgb.into()); + + let green_yellow_rgb = Color::from_rgb(0.5, 1.0, 0.0); + let green_yellow_hsv = Hsv::from_hsv(90, 1.0, 1.0); + assert_eq!(green_yellow_hsv, green_yellow_rgb.into()); + + let blue_red_rgb = Color::from_rgb(1.0, 0.0, 0.5); + let blue_red_hsv = Hsv::from_hsv(330, 1.0, 1.0); + assert_eq!(blue_red_hsv, blue_red_rgb.into()); + + let zinnober_rgb = Color::from_rgb(1.0, 0.25, 0.0); + let zinnober_hsv = Hsv::from_hsv(15, 1.0, 1.0); + assert_eq!(zinnober_hsv, zinnober_rgb.into()); + + let indigo_rgb = Color::from_rgb(0.25, 0.0, 1.0); + let indigo_hsv = Hsv::from_hsv(255, 1.0, 1.0); + assert_eq!(indigo_hsv, indigo_rgb.into()); + + let light_blue_green_rgb = Color::from_rgb(0.0, 1.0, 0.25); + let light_blue_green_hsv = Hsv::from_hsv(135, 1.0, 1.0); + assert_eq!(light_blue_green_hsv, light_blue_green_rgb.into()); + + let blue_cyan_rgb = Color::from_rgb(0.0, 0.75, 1.0); + let blue_cyan_hsv = Hsv::from_hsv(195, 1.0, 1.0); + assert_eq!(blue_cyan_hsv, blue_cyan_rgb.into()); + + let light_green_yellow_rgb = Color::from_rgb(0.75, 1.0, 0.0); + let light_green_yellow_hsv = Hsv::from_hsv(75, 1.0, 1.0); + assert_eq!(light_green_yellow_hsv, light_green_yellow_rgb.into()); + + let red_magenta_rgb = Color::from_rgb(1.0, 0.0, 0.75); + let red_magenta_hsv = Hsv::from_hsv(315, 1.0, 1.0); + assert_eq!(red_magenta_hsv, red_magenta_rgb.into()); + + let safran_rgb = Color::from_rgb(1.0, 0.75, 0.0); + let safran_hsv = Hsv::from_hsv(45, 1.0, 1.0); + assert_eq!(safran_hsv, safran_rgb.into()); + + let blue_magenta_rgb = Color::from_rgb(0.75, 0.0, 1.0); + let blue_magenta_hsv = Hsv::from_hsv(285, 1.0, 1.0); + assert_eq!(blue_magenta_hsv, blue_magenta_rgb.into()); + + let green_cyan_rgb = Color::from_rgb(0.0, 1.0, 0.75); + let green_cyan_hsv = Hsv::from_hsv(165, 1.0, 1.0); + assert_eq!(green_cyan_hsv, green_cyan_rgb.into()); + + let light_green_blue_rgb = Color::from_rgb(0.0, 0.25, 1.0); + let light_green_blue_hsv = Hsv::from_hsv(225, 1.0, 1.0); + assert_eq!(light_green_blue_hsv, light_green_blue_rgb.into()); + + let lime_rgb = Color::from_rgb(0.25, 1.0, 0.0); + let lime_hsv = Hsv::from_hsv(105, 1.0, 1.0); + assert_eq!(lime_hsv, lime_rgb.into()); + + let light_blue_red_rgb = Color::from_rgb(1.0, 0.0, 0.25); + let light_blue_red_hsv = Hsv::from_hsv(345, 1.0, 1.0); + assert_eq!(light_blue_red_hsv, light_blue_red_rgb.into()); + } + + #[allow(clippy::cognitive_complexity)] + #[test] + fn hsv_to_rgb() { + // https://de.wikipedia.org/wiki/HSV-Farbraum#Transformation_von_HSV/HSL_und_RGB + let red_hsv = Hsv::from_hsv(0, 1.0, 1.0); + let red_rgb = Color::from_rgb(1.0, 0.0, 0.0); + assert_eq!(red_rgb, red_hsv.into()); + + let orange_hsv = Hsv::from_hsv(30, 1.0, 1.0); + let orange_rgb = Color::from_rgb(1.0, 0.5, 0.0); + assert_eq!(orange_rgb, orange_hsv.into()); + + let yellow_hsv = Hsv::from_hsv(60, 1.0, 1.0); + let yellow_rgb = Color::from_rgb(1.0, 1.0, 0.0); + assert_eq!(yellow_rgb, yellow_hsv.into()); + + let dark_green_hsv = Hsv::from_hsv(120, 1.0, 0.5); + let dark_green_rgb = Color::from_rgb(0.0, 0.5, 0.0); + assert_eq!(dark_green_rgb, dark_green_hsv.into()); + + let violett_hsv = Hsv::from_hsv(270, 1.0, 1.0); + let violett_rgb = Color::from_rgb(0.5, 0.0, 1.0); + assert_eq!(violett_rgb, violett_hsv.into()); + + let black_hsv = Hsv::from_hsv(0, 0.0, 0.0); + let black_rgb = Color::from_rgb(0.0, 0.0, 0.0); + assert_eq!(black_rgb, black_hsv.into()); + + let blue_hsv = Hsv::from_hsv(240, 1.0, 1.0); + let blue_rgb = Color::from_rgb(0.0, 0.0, 1.0); + assert_eq!(blue_rgb, blue_hsv.into()); + + let brown_hsv = Hsv::from_hsv(20, 0.75, 0.36); + let brown_rgb = Color::from_rgb(0.36, 0.18, 0.09); + assert_eq!(brown_rgb, brown_hsv.into()); + + let white_hsv = Hsv::from_hsv(0, 0.0, 1.0); + let white_rgb = Color::from_rgb(1.0, 1.0, 1.0); + assert_eq!(white_rgb, white_hsv.into()); + + let green_hsv = Hsv::from_hsv(120, 1.0, 1.0); + let green_rgb = Color::from_rgb(0.0, 1.0, 0.0); + assert_eq!(green_rgb, green_hsv.into()); + + let cyan_hsv = Hsv::from_hsv(180, 1.0, 1.0); + let cyan_rgb = Color::from_rgb(0.0, 1.0, 1.0); + assert_eq!(cyan_rgb, cyan_hsv.into()); + + let magenta_hsv = Hsv::from_hsv(300, 1.0, 1.0); + let magenta_rgb = Color::from_rgb(1.0, 0.0, 1.0); + assert_eq!(magenta_rgb, magenta_hsv.into()); + + let blue_green_hsv = Hsv::from_hsv(150, 1.0, 1.0); + let blue_green_rgb = Color::from_rgb(0.0, 1.0, 0.5); + assert_eq!(blue_green_rgb, blue_green_hsv.into()); + + let green_blue_hsv = Hsv::from_hsv(210, 1.0, 1.0); + let green_blue_rgb = Color::from_rgb(0.0, 0.5, 1.0); + assert_eq!(green_blue_rgb, green_blue_hsv.into()); + + let green_yellow_hsv = Hsv::from_hsv(90, 1.0, 1.0); + let green_yellow_rgb = Color::from_rgb(0.5, 1.0, 0.0); + assert_eq!(green_yellow_rgb, green_yellow_hsv.into()); + + let blue_red_hsv = Hsv::from_hsv(330, 1.0, 1.0); + let blue_red_rgb = Color::from_rgb(1.0, 0.0, 0.5); + assert_eq!(blue_red_rgb, blue_red_hsv.into()); + + let zinnober_hsv = Hsv::from_hsv(15, 1.0, 1.0); + let zinnober_rgb = Color::from_rgb(1.0, 0.25, 0.0); + assert_eq!(zinnober_rgb, zinnober_hsv.into()); + + let indigo_hsv = Hsv::from_hsv(255, 1.0, 1.0); + let indigo_rgb = Color::from_rgb(0.25, 0.0, 1.0); + assert_eq!(indigo_rgb, indigo_hsv.into()); + + let light_blue_green_hsv = Hsv::from_hsv(135, 1.0, 1.0); + let light_blue_green_rgb = Color::from_rgb(0.0, 1.0, 0.25); + assert_eq!(light_blue_green_rgb, light_blue_green_hsv.into()); + + let blue_cyan_hsv = Hsv::from_hsv(195, 1.0, 1.0); + let blue_cyan_rgb = Color::from_rgb(0.0, 0.75, 1.0); + assert_eq!(blue_cyan_rgb, blue_cyan_hsv.into()); + + let light_green_yellow_hsv = Hsv::from_hsv(75, 1.0, 1.0); + let light_green_yellow_rgb = Color::from_rgb(0.75, 1.0, 0.0); + assert_eq!(light_green_yellow_rgb, light_green_yellow_hsv.into()); + + let red_magenta_hsv = Hsv::from_hsv(315, 1.0, 1.0); + let red_magenta_rgb = Color::from_rgb(1.0, 0.0, 0.75); + assert_eq!(red_magenta_rgb, red_magenta_hsv.into()); + + let safran_hsv = Hsv::from_hsv(45, 1.0, 1.0); + let safran_rgb = Color::from_rgb(1.0, 0.75, 0.0); + assert_eq!(safran_rgb, safran_hsv.into()); + + let blue_magenta_hsv = Hsv::from_hsv(285, 1.0, 1.0); + let blue_magenta_rgb = Color::from_rgb(0.75, 0.0, 1.0); + assert_eq!(blue_magenta_rgb, blue_magenta_hsv.into()); + + let green_cyan_hsv = Hsv::from_hsv(165, 1.0, 1.0); + let green_cyan_rgb = Color::from_rgb(0.0, 1.0, 0.75); + assert_eq!(green_cyan_rgb, green_cyan_hsv.into()); + + let light_green_blue_hsv = Hsv::from_hsv(225, 1.0, 1.0); + let light_green_blue_rgb = Color::from_rgb(0.0, 0.25, 1.0); + assert_eq!(light_green_blue_rgb, light_green_blue_hsv.into()); + + let lime_hsv = Hsv::from_hsv(105, 1.0, 1.0); + let lime_rgb = Color::from_rgb(0.25, 1.0, 0.0); + assert_eq!(lime_rgb, lime_hsv.into()); + + let light_blue_red_hsv = Hsv::from_hsv(345, 1.0, 1.0); + let light_blue_red_rgb = Color::from_rgb(1.0, 0.0, 0.25); + assert_eq!(light_blue_red_rgb, light_blue_red_hsv.into()); + } +} diff --git a/vendor/iced_aw/src/core/date.rs b/vendor/iced_aw/src/core/date.rs new file mode 100644 index 0000000..4a0df34 --- /dev/null +++ b/vendor/iced_aw/src/core/date.rs @@ -0,0 +1,682 @@ +//! Helper functions for calculating dates + +use chrono::{Datelike, Duration, Local, NaiveDate}; +use std::fmt::Display; +use std::sync::LazyLock; + +/// The date value +#[derive(Clone, Copy, Debug)] +pub struct Date { + /// The year value of the date. + pub year: i32, + /// The month value of the date (1 - 12). + pub month: u32, + /// The day value of the date (1 - 31). + pub day: u32, +} + +impl Default for Date { + fn default() -> Self { + Self { + year: 2024, + month: 1, + day: 1, + } + } +} + +impl Date { + /// Creates a new date from the current timestamp. + #[must_use] + pub fn today() -> Self { + let today = Local::now().naive_local().date(); + today.into() + } + + /// Creates a new date. + #[must_use] + pub const fn from_ymd(year: i32, month: u32, day: u32) -> Self { + Self { year, month, day } + } +} + +impl Display for Date { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "{:04}-{:02}-{:02}", self.year, self.month, self.day) + } +} + +impl From for NaiveDate { + fn from(date: Date) -> Self { + Self::from_ymd_opt(date.year, date.month, date.day) + .expect("Year, Month or Day doesnt Exist") + } +} + +impl From for Date { + fn from(date: NaiveDate) -> Self { + Self::from_ymd(date.year(), date.month(), date.day()) + } +} + +/// # Panics +/// Creates a date with the previous month based on the given date. +/// panics if year, month or day doesnt exist. +#[must_use] +pub fn pred_month(date: NaiveDate) -> NaiveDate { + let (year, month) = if date.month() == 1 { + (date.year() - 1, 12) + } else { + (date.year(), date.month() - 1) + }; + + let day = date.day().min(num_days_of_month(year, month)); + + NaiveDate::from_ymd_opt(year, month, day).expect("Year, Month or Day doesnt Exist") +} + +/// # Panics +/// Creates a date with the next month based on given date. +/// panics if year, month or day doesnt exist. +#[must_use] +pub fn succ_month(date: NaiveDate) -> NaiveDate { + let (year, month) = if date.month() == 12 { + (date.year() + 1, 1) + } else { + (date.year(), date.month() + 1) + }; + + let day = date.day().min(num_days_of_month(year, month)); + + NaiveDate::from_ymd_opt(year, month, day).expect("Year, Month or Day doesnt Exist") +} + +/// # Panics +/// Creates a date with the previous year based on the given date. +// panics if year, month or day doesnt exist. +#[must_use] +pub fn pred_year(date: NaiveDate) -> NaiveDate { + let year = date.year() - 1; + let day = date.day().min(num_days_of_month(year, date.month())); + + NaiveDate::from_ymd_opt(year, date.month(), day).expect("Year, Month or Day doesnt Exist") +} + +/// # Panics +/// Creates a date with the next year based on the given date. +// panics if year, month or day doesnt exist. +#[must_use] +pub fn succ_year(date: NaiveDate) -> NaiveDate { + let year = date.year() + 1; + let day = date.day().min(num_days_of_month(year, date.month())); + + NaiveDate::from_ymd_opt(year, date.month(), day).expect("Year, Month or Day doesnt Exist") +} + +/// Calculates a date with the previous week based on the given date. +#[must_use] +pub fn pred_week(date: NaiveDate) -> NaiveDate { + date - Duration::days(7) +} + +/// Calculates a date with the next week based on the given date. +#[must_use] +pub fn succ_week(date: NaiveDate) -> NaiveDate { + date + Duration::days(7) +} + +/// Calculates a date with the previous day based on the given date. +#[must_use] +pub fn pred_day(date: NaiveDate) -> NaiveDate { + date - Duration::days(1) +} + +/// Calculates a date with the next day based on the given date. +#[must_use] +pub fn succ_day(date: NaiveDate) -> NaiveDate { + date + Duration::days(1) +} + +/// Specifies if the calculated day lays in the previous, same or next month of +/// the date. +#[derive(Debug, PartialEq, Eq)] +pub enum IsInMonth { + /// The day lays in the previous month. + Previous, + + /// The day lays in the same month. + Same, + + /// The day lays in the next month. + Next, +} + +/// # Panics +/// Calculates the day number at the given position in the calendar table based +/// on the given year and month. +/// panics if year, month or day does not exist. +#[must_use] +pub fn position_to_day(x: usize, y: usize, year: i32, month: u32) -> (usize, IsInMonth) { + let (x, y) = (x as isize, y as isize); + let first_day = + NaiveDate::from_ymd_opt(year, month, 1).expect("Year, Month or Day doesnt Exist"); + let day_of_week = first_day.weekday().num_days_from_monday() as isize; + let day_of_week = if day_of_week == 0 { 7 } else { day_of_week }; + + let day = (x + 7 * y) + 1 - day_of_week; + + if day < 1 { + let last_month = first_day.pred_opt().unwrap_or_default(); + ( + (num_days_of_month(last_month.year(), last_month.month()) as isize + day) as usize, + IsInMonth::Previous, + ) + } else if day > num_days_of_month(year, month) as isize { + ( + (day - num_days_of_month(year, month) as isize) as usize, + IsInMonth::Next, + ) + } else { + (day as usize, IsInMonth::Same) + } +} + +/// Checks if the given year is a leap year. +const fn is_leap_year(year: i32) -> bool { + let mod4 = year % 4 == 0; + let mod100 = year % 100 == 0; + let mod400 = year % 400 == 0; + + mod4 && (!mod100 || mod400) +} + +/// Gets the number of days the given month in the year has. +const fn num_days_of_month(year: i32, month: u32) -> u32 { + match month { + 4 | 6 | 9 | 11 => 30, + 2 => { + if is_leap_year(year) { + 29 + } else { + 28 + } + } + _ => 31, + } +} + +/// Gets the string representation of the date of the given month and date. +#[must_use] +pub fn date_as_string(date: NaiveDate) -> String { + date.format("%Y %B").to_string() +} + +/// Gets the length of the longest month name. +pub static MAX_MONTH_STR_LEN: LazyLock = LazyLock::new(|| { + let months = [ + NaiveDate::from_ymd_opt(0, 1, 1).expect("Year, Month or Day doesnt Exist"), + NaiveDate::from_ymd_opt(0, 2, 1).expect("Year, Month or Day doesnt Exist"), + NaiveDate::from_ymd_opt(0, 3, 1).expect("Year, Month or Day doesnt Exist"), + NaiveDate::from_ymd_opt(0, 4, 1).expect("Year, Month or Day doesnt Exist"), + NaiveDate::from_ymd_opt(0, 5, 1).expect("Year, Month or Day doesnt Exist"), + NaiveDate::from_ymd_opt(0, 6, 1).expect("Year, Month or Day doesnt Exist"), + NaiveDate::from_ymd_opt(0, 7, 1).expect("Year, Month or Day doesnt Exist"), + NaiveDate::from_ymd_opt(0, 8, 1).expect("Year, Month or Day doesnt Exist"), + NaiveDate::from_ymd_opt(0, 9, 1).expect("Year, Month or Day doesnt Exist"), + NaiveDate::from_ymd_opt(0, 10, 1).expect("Year, Month or Day doesnt Exist"), + NaiveDate::from_ymd_opt(0, 11, 1).expect("Year, Month or Day doesnt Exist"), + NaiveDate::from_ymd_opt(0, 12, 1).expect("Year, Month or Day doesnt Exist"), + ]; + + months + .iter() + .map(|m| { + let d = date_as_string(*m); + let (_, s) = d.split_once(' ').expect("Date must contain space"); + s.len() + }) + .max() + .expect("There should be a maximum element") +}); + +/// Gets the labels of the weekdays containing the first two characters of +/// the weekdays. +pub static WEEKDAY_LABELS: LazyLock> = LazyLock::new(|| { + let days = [ + // Monday + NaiveDate::from_ymd_opt(2020, 6, 1).expect("Year, Month or Day doesnt Exist"), + // Tuesday + NaiveDate::from_ymd_opt(2020, 6, 2).expect("Year, Month or Day doesnt Exist"), + // Wednesday + NaiveDate::from_ymd_opt(2020, 6, 3).expect("Year, Month or Day doesnt Exist"), + // Thursday + NaiveDate::from_ymd_opt(2020, 6, 4).expect("Year, Month or Day doesnt Exist"), + // Friday + NaiveDate::from_ymd_opt(2020, 6, 5).expect("Year, Month or Day doesnt Exist"), + // Saturday + NaiveDate::from_ymd_opt(2020, 6, 6).expect("Year, Month or Day doesnt Exist"), + // Sunday + NaiveDate::from_ymd_opt(2020, 6, 7).expect("Year, Month or Day doesnt Exist"), + ]; + + days.iter() + .map(|d| d.format("%a").to_string()) + .map(|s| s[0..2].to_owned()) + .collect() +}); + +#[cfg(test)] +mod tests { + use chrono::{Datelike, NaiveDate}; + + use super::{ + IsInMonth, is_leap_year, num_days_of_month, position_to_day, pred_month, pred_year, + succ_month, succ_year, + }; + + #[test] + fn pred_month_test() { + let date = NaiveDate::from_ymd_opt(2020, 5, 6).expect("Year, Month or Day doesnt Exist"); + let result = pred_month(date); + let expected = + NaiveDate::from_ymd_opt(2020, 4, 6).expect("Year, Month or Day doesnt Exist"); + assert_eq!(result, expected); + + let date = NaiveDate::from_ymd_opt(2020, 1, 24).expect("Year, Month or Day doesnt Exist"); + let result = pred_month(date); + let expected = + NaiveDate::from_ymd_opt(2019, 12, 24).expect("Year, Month or Day doesnt Exist"); + assert_eq!(result, expected); + + let date = NaiveDate::from_ymd_opt(2020, 3, 31).expect("Year, Month or Day doesnt Exist"); + let result = pred_month(date); + let expected = + NaiveDate::from_ymd_opt(2020, 2, 29).expect("Year, Month or Day doesnt Exist"); + assert_eq!(result, expected); + } + + #[test] + fn succ_month_test() { + let date = NaiveDate::from_ymd_opt(2020, 5, 6).expect("Year, Month or Day doesnt Exist"); + let result = succ_month(date); + let expected = + NaiveDate::from_ymd_opt(2020, 6, 6).expect("Year, Month or Day doesnt Exist"); + assert_eq!(result, expected); + + let date = NaiveDate::from_ymd_opt(2019, 12, 24).expect("Year, Month or Day doesnt Exist"); + let result = succ_month(date); + let expected = + NaiveDate::from_ymd_opt(2020, 1, 24).expect("Year, Month or Day doesnt Exist"); + assert_eq!(result, expected); + + let date = NaiveDate::from_ymd_opt(2020, 1, 31).expect("Year, Month or Day doesnt Exist"); + let result = succ_month(date); + let expected = + NaiveDate::from_ymd_opt(2020, 2, 29).expect("Year, Month or Day doesnt Exist"); + assert_eq!(result, expected); + } + + #[test] + fn pred_year_test() { + let date = NaiveDate::from_ymd_opt(2020, 5, 6).expect("Year, Month or Day doesnt Exist"); + let result = pred_year(date); + let expected = + NaiveDate::from_ymd_opt(2019, 5, 6).expect("Year, Month or Day doesnt Exist"); + assert_eq!(result, expected); + + let date = NaiveDate::from_ymd_opt(2020, 2, 29).expect("Year, Month or Day doesnt Exist"); + let result = pred_year(date); + let expected = + NaiveDate::from_ymd_opt(2019, 2, 28).expect("Year, Month or Day doesnt Exist"); + assert_eq!(result, expected); + + let date = NaiveDate::from_ymd_opt(2021, 2, 28).expect("Year, Month or Day doesnt Exist"); + let result = pred_year(date); + let expected = + NaiveDate::from_ymd_opt(2020, 2, 28).expect("Year, Month or Day doesnt Exist"); + assert_eq!(result, expected); + } + + #[test] + fn succ_year_test() { + let date = NaiveDate::from_ymd_opt(2020, 5, 6).expect("Year, Month or Day doesnt Exist"); + let result = succ_year(date); + let expected = + NaiveDate::from_ymd_opt(2021, 5, 6).expect("Year, Month or Day doesnt Exist"); + assert_eq!(result, expected); + + let date = NaiveDate::from_ymd_opt(2020, 2, 29).expect("Year, Month or Day doesnt Exist"); + let result = succ_year(date); + let expected = + NaiveDate::from_ymd_opt(2021, 2, 28).expect("Year, Month or Day doesnt Exist"); + assert_eq!(result, expected); + + let date = NaiveDate::from_ymd_opt(2019, 2, 28).expect("Year, Month or Day doesnt Exist"); + let result = succ_year(date); + let expected = + NaiveDate::from_ymd_opt(2020, 2, 28).expect("Year, Month or Day doesnt Exist"); + assert_eq!(result, expected); + } + + #[allow(clippy::shadow_unrelated)] + #[test] + fn position_to_day_test() { + let (day, is_in_month) = position_to_day(0, 0, 2020, 12); + assert_eq!(day, 30); + assert_eq!(is_in_month, IsInMonth::Previous); + + let (day, is_in_month) = position_to_day(1, 0, 2020, 12); + assert_eq!(day, 1); + assert_eq!(is_in_month, IsInMonth::Same); + + let (day, is_in_month) = position_to_day(3, 4, 2020, 12); + assert_eq!(day, 31); + assert_eq!(is_in_month, IsInMonth::Same); + + let (day, is_in_month) = position_to_day(6, 5, 2020, 12); + assert_eq!(day, 10); + assert_eq!(is_in_month, IsInMonth::Next); + + let (day, is_in_month) = position_to_day(0, 0, 2020, 11); + assert_eq!(day, 26); + assert_eq!(is_in_month, IsInMonth::Previous); + + let (day, is_in_month) = position_to_day(6, 0, 2020, 11); + assert_eq!(day, 1); + assert_eq!(is_in_month, IsInMonth::Same); + + let (day, is_in_month) = position_to_day(0, 5, 2020, 11); + assert_eq!(day, 30); + assert_eq!(is_in_month, IsInMonth::Same); + + let (day, is_in_month) = position_to_day(6, 5, 2020, 11); + assert_eq!(day, 6); + assert_eq!(is_in_month, IsInMonth::Next); + + let (day, is_in_month) = position_to_day(0, 0, 2021, 2); + assert_eq!(day, 25); + assert_eq!(is_in_month, IsInMonth::Previous); + + let (day, is_in_month) = position_to_day(0, 1, 2021, 2); + assert_eq!(day, 1); + assert_eq!(is_in_month, IsInMonth::Same); + + let (day, is_in_month) = position_to_day(6, 4, 2021, 2); + assert_eq!(day, 28); + assert_eq!(is_in_month, IsInMonth::Same); + + let (day, is_in_month) = position_to_day(0, 5, 2021, 2); + assert_eq!(day, 1); + assert_eq!(is_in_month, IsInMonth::Next); + } + + #[test] + fn is_leap_year_test() { + assert!(is_leap_year(2020)); + assert!(!is_leap_year(2019)); + assert!(!is_leap_year(2021)); + assert!(is_leap_year(2000)); + assert!(!is_leap_year(1000)); + } + + #[test] + fn num_days_of_month_test() { + assert_eq!(num_days_of_month(2020, 1), 31); + assert_eq!(num_days_of_month(2020, 2), 29); + assert_eq!(num_days_of_month(2019, 2), 28); + assert_eq!(num_days_of_month(2020, 3), 31); + assert_eq!(num_days_of_month(2020, 4), 30); + assert_eq!(num_days_of_month(2020, 5), 31); + assert_eq!(num_days_of_month(2020, 6), 30); + assert_eq!(num_days_of_month(2020, 7), 31); + assert_eq!(num_days_of_month(2020, 8), 31); + assert_eq!(num_days_of_month(2020, 9), 30); + assert_eq!(num_days_of_month(2020, 10), 31); + assert_eq!(num_days_of_month(2020, 11), 30); + assert_eq!(num_days_of_month(2020, 12), 31); + } + + #[test] + fn date_default() { + use super::Date; + let date = Date::default(); + assert_eq!(date.year, 2024); + assert_eq!(date.month, 1); + assert_eq!(date.day, 1); + } + + #[test] + fn date_from_ymd() { + use super::Date; + let date = Date::from_ymd(2023, 12, 25); + assert_eq!(date.year, 2023); + assert_eq!(date.month, 12); + assert_eq!(date.day, 25); + } + + #[test] + fn date_display() { + use super::Date; + let date = Date::from_ymd(2023, 3, 5); + assert_eq!(format!("{date}"), "2023-03-05"); + + let date = Date::from_ymd(2023, 12, 31); + assert_eq!(format!("{date}"), "2023-12-31"); + + let date = Date::from_ymd(1999, 1, 1); + assert_eq!(format!("{date}"), "1999-01-01"); + } + + #[test] + fn date_to_naive_date() { + use super::Date; + let date = Date::from_ymd(2023, 6, 15); + let naive: NaiveDate = date.into(); + assert_eq!(naive.year(), 2023); + assert_eq!(naive.month(), 6); + assert_eq!(naive.day(), 15); + } + + #[test] + fn naive_date_to_date() { + use super::Date; + let naive = + NaiveDate::from_ymd_opt(2023, 6, 15).expect("naive_date_to_date should not be none"); + let date: Date = naive.into(); + assert_eq!(date.year, 2023); + assert_eq!(date.month, 6); + assert_eq!(date.day, 15); + } + + #[test] + fn pred_week_test() { + use super::pred_week; + let date = NaiveDate::from_ymd_opt(2020, 5, 15).expect("pred_week_test should not be none"); + let result = pred_week(date); + let expected = + NaiveDate::from_ymd_opt(2020, 5, 8).expect("pred_week_test should not be none"); + assert_eq!(result, expected); + } + + #[test] + fn pred_week_crosses_month() { + use super::pred_week; + let date = NaiveDate::from_ymd_opt(2020, 5, 5) + .expect("pred_week_crosses_month should not be none"); + let result = pred_week(date); + let expected = NaiveDate::from_ymd_opt(2020, 4, 28) + .expect("pred_week_crosses_month should not be none"); + assert_eq!(result, expected); + } + + #[test] + fn succ_week_test() { + use super::succ_week; + let date = NaiveDate::from_ymd_opt(2020, 5, 15).expect("succ_week_test should not be none"); + let result = succ_week(date); + let expected = + NaiveDate::from_ymd_opt(2020, 5, 22).expect("succ_week_test should not be none"); + assert_eq!(result, expected); + } + + #[test] + fn succ_week_crosses_month() { + use super::succ_week; + let date = NaiveDate::from_ymd_opt(2020, 5, 28) + .expect("succ_week_crosses_month should not be none"); + let result = succ_week(date); + let expected = NaiveDate::from_ymd_opt(2020, 6, 4) + .expect("succ_week_crosses_month should not be none"); + assert_eq!(result, expected); + } + + #[test] + fn pred_day_test() { + use super::pred_day; + let date = NaiveDate::from_ymd_opt(2020, 5, 15).expect("pred_day_test should not be none"); + let result = pred_day(date); + let expected = + NaiveDate::from_ymd_opt(2020, 5, 14).expect("pred_day_test should not be none"); + assert_eq!(result, expected); + } + + #[test] + fn pred_day_crosses_month() { + use super::pred_day; + let date = + NaiveDate::from_ymd_opt(2020, 5, 1).expect("pred_day_crosses_month should not be none"); + let result = pred_day(date); + let expected = NaiveDate::from_ymd_opt(2020, 4, 30) + .expect("pred_day_crosses_month should not be none"); + assert_eq!(result, expected); + } + + #[test] + fn succ_day_test() { + use super::succ_day; + let date = NaiveDate::from_ymd_opt(2020, 5, 15).expect("succ_day_test should not be none"); + let result = succ_day(date); + let expected = + NaiveDate::from_ymd_opt(2020, 5, 16).expect("succ_day_test should not be none"); + assert_eq!(result, expected); + } + + #[test] + fn succ_day_crosses_month() { + use super::succ_day; + let date = NaiveDate::from_ymd_opt(2020, 5, 31) + .expect("succ_day_crosses_month should not be none"); + let result = succ_day(date); + let expected = + NaiveDate::from_ymd_opt(2020, 6, 1).expect("succ_day_crosses_month should not be none"); + assert_eq!(result, expected); + } + + #[test] + fn date_as_string_test() { + use super::date_as_string; + let date = + NaiveDate::from_ymd_opt(2023, 1, 15).expect("date_as_string_test should not be none"); + let result = date_as_string(date); + assert!(result.starts_with("2023")); + assert!(result.contains("January") || result.contains("Jan")); + } + + #[test] + fn is_leap_year_century_rules() { + // Century years divisible by 400 are leap years + assert!(is_leap_year(2000)); + assert!(is_leap_year(2400)); + + // Century years not divisible by 400 are not leap years + assert!(!is_leap_year(1900)); + assert!(!is_leap_year(2100)); + assert!(!is_leap_year(2200)); + assert!(!is_leap_year(2300)); + } + + #[test] + fn is_leap_year_edge_cases() { + // Regular leap years + assert!(is_leap_year(2024)); + assert!(is_leap_year(2028)); + + // Regular non-leap years + assert!(!is_leap_year(2023)); + assert!(!is_leap_year(2025)); + assert!(!is_leap_year(2026)); + assert!(!is_leap_year(2027)); + } + + #[test] + fn max_month_str_len_is_defined() { + use super::MAX_MONTH_STR_LEN; + // Just verify it's accessible and has a reasonable value + assert!(*MAX_MONTH_STR_LEN > 0); + assert!(*MAX_MONTH_STR_LEN <= 20); // No month name should be longer than 20 chars + } + + #[test] + fn weekday_labels_has_seven_days() { + use super::WEEKDAY_LABELS; + assert_eq!(WEEKDAY_LABELS.len(), 7); + + // Each label should be exactly 2 characters + for label in WEEKDAY_LABELS.iter() { + assert_eq!(label.len(), 2); + } + } + + #[test] + fn pred_month_february_to_january() { + let date = NaiveDate::from_ymd_opt(2020, 2, 15) + .expect("pred_month_february_to_january should not be none"); + let result = pred_month(date); + let expected = NaiveDate::from_ymd_opt(2020, 1, 15) + .expect("pred_month_february_to_january should not be none"); + assert_eq!(result, expected); + } + + #[test] + fn succ_month_november_to_december() { + let date = NaiveDate::from_ymd_opt(2020, 11, 15) + .expect("succ_month_november_to_december should not be none"); + let result = succ_month(date); + let expected = NaiveDate::from_ymd_opt(2020, 12, 15) + .expect("succ_month_november_to_december should not be none"); + assert_eq!(result, expected); + } + + #[test] + fn num_days_february_leap_vs_non_leap() { + // Leap year + assert_eq!(num_days_of_month(2020, 2), 29); + assert_eq!(num_days_of_month(2024, 2), 29); + + // Non-leap year + assert_eq!(num_days_of_month(2019, 2), 28); + assert_eq!(num_days_of_month(2021, 2), 28); + assert_eq!(num_days_of_month(2022, 2), 28); + assert_eq!(num_days_of_month(2023, 2), 28); + } + + #[test] + fn date_copy_trait() { + use super::Date; + let date1 = Date::from_ymd(2023, 6, 15); + let date2 = date1; // Copy + // Both should be usable + assert_eq!(date1.year, 2023); + assert_eq!(date2.year, 2023); + } + + #[test] + fn date_clone_trait() { + use super::Date; + let date1 = Date::from_ymd(2023, 6, 15); + let date2 = date1; + assert_eq!(date1.year, date2.year); + assert_eq!(date1.month, date2.month); + assert_eq!(date1.day, date2.day); + } +} diff --git a/vendor/iced_aw/src/core/offset.rs b/vendor/iced_aw/src/core/offset.rs new file mode 100644 index 0000000..603cfa3 --- /dev/null +++ b/vendor/iced_aw/src/core/offset.rs @@ -0,0 +1,134 @@ +//! Offset struct + +use iced_core::Point; + +/// Represents an offset in a two-dimensional space. +#[derive(Copy, Clone, Debug)] +pub struct Offset { + /// Offset on the x-axis + pub x: f32, + /// Offset on the y-axis + pub y: f32, +} + +impl Offset { + /// Construct a new [`Offset`] + #[must_use] + pub fn new(x: f32, y: f32) -> Self { + Self { x, y } + } +} + +impl From for Offset { + fn from(float: f32) -> Self { + Self { x: float, y: float } + } +} + +impl From<[f32; 2]> for Offset { + fn from(array: [f32; 2]) -> Self { + Self { + x: array[0], + y: array[1], + } + } +} + +impl From for Point { + fn from(offset: Offset) -> Self { + Self::new(offset.x, offset.y) + } +} + +impl From<&Offset> for Point { + fn from(offset: &Offset) -> Self { + Self::new(offset.x, offset.y) + } +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn new_creates_offset() { + let offset = Offset::new(10.0, 20.0); + assert_eq!(offset.x, 10.0); + assert_eq!(offset.y, 20.0); + } + + #[test] + fn new_handles_negative_values() { + let offset = Offset::new(-5.0, -15.0); + assert_eq!(offset.x, -5.0); + assert_eq!(offset.y, -15.0); + } + + #[test] + fn new_handles_zero() { + let offset = Offset::new(0.0, 0.0); + assert_eq!(offset.x, 0.0); + assert_eq!(offset.y, 0.0); + } + + #[test] + fn from_f32_creates_offset_with_same_values() { + let offset = Offset::from(5.0); + assert_eq!(offset.x, 5.0); + assert_eq!(offset.y, 5.0); + } + + #[test] + fn from_f32_handles_negative() { + let offset = Offset::from(-3.5); + assert_eq!(offset.x, -3.5); + assert_eq!(offset.y, -3.5); + } + + #[test] + fn from_array_creates_offset() { + let offset = Offset::from([12.0, 34.0]); + assert_eq!(offset.x, 12.0); + assert_eq!(offset.y, 34.0); + } + + #[test] + fn from_array_handles_different_signs() { + let offset = Offset::from([-7.5, 8.5]); + assert_eq!(offset.x, -7.5); + assert_eq!(offset.y, 8.5); + } + + #[test] + fn offset_to_point_conversion() { + let offset = Offset::new(15.0, 25.0); + let point: Point = offset.into(); + assert_eq!(point.x, 15.0); + assert_eq!(point.y, 25.0); + } + + #[test] + fn offset_ref_to_point_conversion() { + let offset = Offset::new(15.0, 25.0); + let point: Point = (&offset).into(); + assert_eq!(point.x, 15.0); + assert_eq!(point.y, 25.0); + } + + #[test] + fn offset_is_copy() { + let offset1 = Offset::new(1.0, 2.0); + let offset2 = offset1; + // Both should be usable since Offset implements Copy + assert_eq!(offset1.x, 1.0); + assert_eq!(offset2.x, 1.0); + } + + #[test] + fn offset_is_clone() { + let offset1 = Offset::new(3.0, 4.0); + let offset2 = offset1; + assert_eq!(offset1.x, offset2.x); + assert_eq!(offset1.y, offset2.y); + } +} diff --git a/vendor/iced_aw/src/core/overlay.rs b/vendor/iced_aw/src/core/overlay.rs new file mode 100644 index 0000000..1467337 --- /dev/null +++ b/vendor/iced_aw/src/core/overlay.rs @@ -0,0 +1,214 @@ +//! Helper functions for overlays + +use iced_core::{Point, Size, layout}; + +/// Trait containing functions for positioning of nodes. +pub trait Position { + /// Centers this node around the given position. If the node is over the + /// specified bounds it's bouncing back to be fully visible on screen. + fn center_and_bounce(&mut self, position: Point, bounds: Size); +} + +impl Position for layout::Node { + fn center_and_bounce(&mut self, position: Point, bounds: Size) { + let size = self.size(); + + self.move_to_mut(Point::new( + (position.x - (size.width / 2.0)).max(0.0), + (position.y - (size.height / 2.0)).max(0.0), + )); + + let new_self_bounds = self.bounds(); + + self.move_to_mut(Point::new( + if new_self_bounds.x + new_self_bounds.width > bounds.width { + (new_self_bounds.x - (new_self_bounds.width - (bounds.width - new_self_bounds.x))) + .max(0.0) + } else { + new_self_bounds.x + }, + if new_self_bounds.y + new_self_bounds.height > bounds.height { + (new_self_bounds.y - (new_self_bounds.height - (bounds.height - new_self_bounds.y))) + .max(0.0) + } else { + new_self_bounds.y + }, + )); + } +} + +#[cfg(test)] +mod tests { + use super::*; + use iced_core::layout::Node; + + #[test] + fn center_within_bounds() { + let mut node = Node::new(Size::new(100.0, 50.0)); + let position = Point::new(200.0, 150.0); + let bounds = Size::new(400.0, 300.0); + + node.center_and_bounce(position, bounds); + + // Node should be centered at position: x = 200 - 50 = 150, y = 150 - 25 = 125 + let node_bounds = node.bounds(); + assert_eq!(node_bounds.x, 150.0); + assert_eq!(node_bounds.y, 125.0); + } + + #[test] + fn bounce_right_edge() { + let mut node = Node::new(Size::new(100.0, 50.0)); + let position = Point::new(380.0, 150.0); + let bounds = Size::new(400.0, 300.0); + + node.center_and_bounce(position, bounds); + + // Node would center at x = 380 - 50 = 330, which extends to 430 + // This exceeds bounds.width (400), so should bounce back to x = 300 + let node_bounds = node.bounds(); + assert_eq!(node_bounds.x, 300.0); + assert_eq!(node_bounds.y, 125.0); + } + + #[test] + fn bounce_bottom_edge() { + let mut node = Node::new(Size::new(100.0, 50.0)); + let position = Point::new(200.0, 285.0); + let bounds = Size::new(400.0, 300.0); + + node.center_and_bounce(position, bounds); + + // Node would center at y = 285 - 25 = 260, which extends to 310 + // This exceeds bounds.height (300), so should bounce back to y = 250 + let node_bounds = node.bounds(); + assert_eq!(node_bounds.x, 150.0); + assert_eq!(node_bounds.y, 250.0); + } + + #[test] + fn bounce_right_and_bottom() { + let mut node = Node::new(Size::new(100.0, 50.0)); + let position = Point::new(380.0, 285.0); + let bounds = Size::new(400.0, 300.0); + + node.center_and_bounce(position, bounds); + + // Should bounce back on both axes + let node_bounds = node.bounds(); + assert_eq!(node_bounds.x, 300.0); + assert_eq!(node_bounds.y, 250.0); + } + + #[test] + fn position_at_origin() { + let mut node = Node::new(Size::new(100.0, 50.0)); + let position = Point::new(0.0, 0.0); + let bounds = Size::new(400.0, 300.0); + + node.center_and_bounce(position, bounds); + + // Centering at origin would give negative position, but it's clamped to 0 + let node_bounds = node.bounds(); + assert_eq!(node_bounds.x, 0.0); + assert_eq!(node_bounds.y, 0.0); + } + + #[test] + fn position_near_top_left() { + let mut node = Node::new(Size::new(100.0, 50.0)); + let position = Point::new(10.0, 10.0); + let bounds = Size::new(400.0, 300.0); + + node.center_and_bounce(position, bounds); + + // Would center at negative position, clamped to 0 + let node_bounds = node.bounds(); + assert_eq!(node_bounds.x, 0.0); + assert_eq!(node_bounds.y, 0.0); + } + + #[test] + fn exact_fit_at_corner() { + let mut node = Node::new(Size::new(100.0, 50.0)); + let position = Point::new(350.0, 275.0); + let bounds = Size::new(400.0, 300.0); + + node.center_and_bounce(position, bounds); + + // Node centers at (300, 250) and fits exactly within bounds + let node_bounds = node.bounds(); + assert_eq!(node_bounds.x, 300.0); + assert_eq!(node_bounds.y, 250.0); + } + + #[test] + fn small_node_centered() { + let mut node = Node::new(Size::new(20.0, 10.0)); + let position = Point::new(200.0, 150.0); + let bounds = Size::new(400.0, 300.0); + + node.center_and_bounce(position, bounds); + + // Small node should center perfectly + let node_bounds = node.bounds(); + assert_eq!(node_bounds.x, 190.0); + assert_eq!(node_bounds.y, 145.0); + } + + #[test] + fn node_larger_than_bounds() { + let mut node = Node::new(Size::new(500.0, 400.0)); + let position = Point::new(200.0, 150.0); + let bounds = Size::new(400.0, 300.0); + + node.center_and_bounce(position, bounds); + + // Node is larger than bounds, should position at (0, 0) as best effort + let node_bounds = node.bounds(); + assert_eq!(node_bounds.x, 0.0); + assert_eq!(node_bounds.y, 0.0); + } + + #[test] + fn node_width_equals_bounds_width() { + let mut node = Node::new(Size::new(400.0, 50.0)); + let position = Point::new(200.0, 150.0); + let bounds = Size::new(400.0, 300.0); + + node.center_and_bounce(position, bounds); + + // Node width equals bounds, should position at x = 0 + let node_bounds = node.bounds(); + assert_eq!(node_bounds.x, 0.0); + assert_eq!(node_bounds.y, 125.0); + } + + #[test] + fn node_height_equals_bounds_height() { + let mut node = Node::new(Size::new(100.0, 300.0)); + let position = Point::new(200.0, 150.0); + let bounds = Size::new(400.0, 300.0); + + node.center_and_bounce(position, bounds); + + // Node height equals bounds, should position at y = 0 + let node_bounds = node.bounds(); + assert_eq!(node_bounds.x, 150.0); + assert_eq!(node_bounds.y, 0.0); + } + + #[test] + fn position_at_exact_bounds() { + let mut node = Node::new(Size::new(100.0, 50.0)); + let position = Point::new(400.0, 300.0); + let bounds = Size::new(400.0, 300.0); + + node.center_and_bounce(position, bounds); + + // Position at bounds edge, should bounce back + let node_bounds = node.bounds(); + assert_eq!(node_bounds.x, 300.0); + assert_eq!(node_bounds.y, 250.0); + } +} diff --git a/vendor/iced_aw/src/core/renderer.rs b/vendor/iced_aw/src/core/renderer.rs new file mode 100644 index 0000000..b4f8699 --- /dev/null +++ b/vendor/iced_aw/src/core/renderer.rs @@ -0,0 +1,20 @@ +//! Helper struct for drawing + +use iced_core::{Layout, Point, Rectangle}; + +/// Collection of all necessary data to draw a widget. +#[derive(Debug)] +pub struct DrawEnvironment<'a, Defaults, Style, Focus> { + /// The defaults of the renderer. + pub defaults: &'a Defaults, + /// The layout of the widget. + pub layout: Layout<'a>, + /// The position of the cursor. + pub cursor_position: Point, + /// The style of the widget. + pub style_sheet: &'a Style, + /// The viewport of the renderer. + pub viewport: Option<&'a Rectangle>, + /// The focus to an input element on the widget. + pub focus: Focus, +} diff --git a/vendor/iced_aw/src/core/time.rs b/vendor/iced_aw/src/core/time.rs new file mode 100644 index 0000000..c6336a1 --- /dev/null +++ b/vendor/iced_aw/src/core/time.rs @@ -0,0 +1,683 @@ +//! Use a time picker as an input element for picking times. +//! +//! *This API requires the following crate features to be activated: `time_picker`* + +use chrono::{Local, Timelike}; +use std::fmt::Display; + +/// The time value +#[derive(Clone, Copy, Debug)] +pub enum Time { + /// The time value containing hour, minute and period. + Hm { + /// The hour value. + hour: u32, + /// The minute value. + minute: u32, + /// The current period of the time. + period: Period, + }, + + /// The time value containing hour, minute, second and period. + Hms { + /// The hour value. + hour: u32, + /// The minute value. + minute: u32, + /// The second value. + second: u32, + /// The current period of the time. + period: Period, + }, +} + +impl Default for Time { + fn default() -> Self { + Self::Hm { + hour: 1, + minute: 0, + period: Period::Am, + } + } +} + +impl Time { + /// Creates a new time (hours, minutes) from the current timestamp. + #[must_use] + pub fn now_hm(use_24h: bool) -> Self { + let now = Local::now().naive_local().time(); + + let (hour, period) = if use_24h { + (now.hour(), Period::H24) + } else { + let (period, hour12) = now.hour12(); + + (hour12, if period { Period::Pm } else { Period::Am }) + }; + + Self::Hm { + hour, + minute: now.minute(), + period, + } + } + + /// Creates a new time (hours, minutes, seconds) from the current timestamp. + #[must_use] + pub fn now_hms(use_24h: bool) -> Self { + let now = Local::now().naive_local().time(); + + let (hour, period) = if use_24h { + (now.hour(), Period::H24) + } else { + let (period, hour12) = now.hour12(); + + (hour12, if period { Period::Pm } else { Period::Am }) + }; + + Self::Hms { + hour, + minute: now.minute(), + second: now.second(), + period, + } + } + + /// The default time `00:00` with the given period. + #[must_use] + pub const fn default_hm(period: Period) -> Self { + Self::Hm { + hour: 0, + minute: 0, + period, + } + } + + /// The default time `00:00:00` with the given period. + #[must_use] + pub const fn default_hms(period: Period) -> Self { + Self::Hms { + hour: 0, + minute: 0, + second: 0, + period, + } + } +} + +impl Display for Time { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match self { + Self::Hm { + hour, + minute, + period, + } => { + write!(f, "{hour:02}:{minute:02}{period}") + } + Self::Hms { + hour, + minute, + second, + period, + } => { + write!(f, "{hour:02}:{minute:02}:{second:02}{period}") + } + } + } +} + +/// The current period of the clock +#[derive(Clone, Copy, Debug, PartialEq, Eq)] +pub enum Period { + /// No period - using 24 hour format. + H24, + /// Ante meridiem: Before noon. + Am, + /// Post meridiem: After noon. + Pm, +} + +impl Display for Period { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!( + f, + "{}", + match self { + Self::H24 => "", + Self::Am => " AM", + Self::Pm => " PM", + } + ) + } +} + +impl From