chore: update to Rust 2024 edition
This commit is contained in:
parent
c3fafd3910
commit
2b7b4cba56
71 changed files with 254 additions and 292 deletions
|
|
@ -1,12 +1,11 @@
|
|||
[package]
|
||||
name = "cosmic-applet-a11y"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
# cosmic-dbus-a11y = { git = "https://github.com/pop-os/dbus-settings-bindings" }
|
||||
cosmic-settings-subscriptions.workspace = true
|
||||
cosmic-settings-subscriptions.default_features = false
|
||||
cosmic-settings-subscriptions.accessibility = true
|
||||
cosmic-settings-subscriptions.cosmic_a11y_manager = true
|
||||
anyhow.workspace = true
|
||||
|
|
|
|||
|
|
@ -7,28 +7,28 @@ use crate::{
|
|||
};
|
||||
use cctk::sctk::reexports::calloop;
|
||||
use cosmic::{
|
||||
app,
|
||||
Element, Task, app,
|
||||
applet::{
|
||||
menu_button, padded_control,
|
||||
token::subscription::{activation_token_subscription, TokenRequest, TokenUpdate},
|
||||
token::subscription::{TokenRequest, TokenUpdate, activation_token_subscription},
|
||||
},
|
||||
cctk::sctk::reexports::calloop::channel,
|
||||
cosmic_config::{self, CosmicConfigEntry},
|
||||
cosmic_theme::{CosmicPalette, Spacing, ThemeBuilder},
|
||||
iced::{
|
||||
Length, Subscription,
|
||||
platform_specific::shell::wayland::commands::popup::{destroy_popup, get_popup},
|
||||
window, Length, Subscription,
|
||||
window,
|
||||
},
|
||||
surface,
|
||||
theme::{self, CosmicTheme},
|
||||
widget::{divider, text, Column},
|
||||
Element, Task,
|
||||
widget::{Column, divider, text},
|
||||
};
|
||||
use cosmic_settings_subscriptions::{
|
||||
accessibility::{self, DBusRequest, DBusUpdate},
|
||||
cosmic_a11y_manager::{AccessibilityEvent, AccessibilityRequest, ColorFilter},
|
||||
};
|
||||
use cosmic_time::{anim, chain, id, Instant, Timeline};
|
||||
use cosmic_time::{Instant, Timeline, anim, chain, id};
|
||||
use std::sync::LazyLock;
|
||||
use tokio::sync::mpsc::UnboundedSender;
|
||||
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@
|
|||
use anyhow;
|
||||
use cctk::sctk::reexports::calloop::{self, channel::SyncSender};
|
||||
use cosmic::iced::{
|
||||
self,
|
||||
futures::{self, channel::mpsc, SinkExt, StreamExt},
|
||||
stream, Subscription,
|
||||
self, Subscription,
|
||||
futures::{self, SinkExt, StreamExt, channel::mpsc},
|
||||
stream,
|
||||
};
|
||||
use cosmic_protocols::a11y::v1::client::cosmic_a11y_manager_v1::Filter;
|
||||
use cosmic_settings_subscriptions::cosmic_a11y_manager::{
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
use i18n_embed::{
|
||||
fluent::{fluent_language_loader, FluentLanguageLoader},
|
||||
DefaultLocalizer, LanguageLoader, Localizer,
|
||||
fluent::{FluentLanguageLoader, fluent_language_loader},
|
||||
};
|
||||
use rust_embed::RustEmbed;
|
||||
use std::sync::LazyLock;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue