chore: update dependencies
This commit is contained in:
parent
c05dad00de
commit
0de9c33822
15 changed files with 313 additions and 359 deletions
450
Cargo.lock
generated
450
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
17
Cargo.toml
17
Cargo.toml
|
|
@ -8,10 +8,10 @@ rust-version = "1.85"
|
|||
|
||||
[workspace.dependencies]
|
||||
cosmic-randr = { git = "https://github.com/pop-os/cosmic-randr" }
|
||||
tokio = { version = "1.48.0", features = ["macros"] }
|
||||
tokio = { version = "1.49.0", features = ["macros"] }
|
||||
|
||||
[workspace.dependencies.libcosmic]
|
||||
features = ["dbus-config", "multi-window", "winit", "tokio", "qr_code"]
|
||||
features = ["dbus-config", "desktop", "multi-window", "winit", "tokio", "qr_code"]
|
||||
git = "https://github.com/pop-os/libcosmic"
|
||||
|
||||
[workspace.dependencies.cosmic-config]
|
||||
|
|
@ -34,9 +34,8 @@ git = "https://github.com/pop-os/cosmic-panel"
|
|||
git = "https://github.com/pop-os/cosmic-randr"
|
||||
|
||||
[workspace.dependencies.sctk]
|
||||
git = "https://github.com/smithay/client-toolkit/"
|
||||
version = "0.20"
|
||||
package = "smithay-client-toolkit"
|
||||
# rev = "c583de8"
|
||||
|
||||
[profile.dev]
|
||||
opt-level = 3
|
||||
|
|
@ -52,13 +51,12 @@ inherits = "release"
|
|||
lto = "off"
|
||||
debug = true
|
||||
|
||||
# Fix text rendering being cut off on the right
|
||||
# [patch.'https://github.com/pop-os/cosmic-text']
|
||||
# cosmic-text = { git = "https://github.com/pop-os/cosmic-text//", rev = "b017d7c" }
|
||||
|
||||
[patch.'https://github.com/pop-os/cosmic-protocols']
|
||||
cosmic-protocols = { git = "https://github.com/pop-os/cosmic-protocols//", rev = "d0e95be" }
|
||||
cosmic-client-toolkit = { git = "https://github.com/pop-os/cosmic-protocols//", rev = "d0e95be" }
|
||||
# [patch.'https://github.com/pop-os/cosmic-protocols']
|
||||
# cosmic-protocols = { git = "https://github.com/pop-os/cosmic-protocols//", rev = "d0e95be" }
|
||||
# cosmic-client-toolkit = { git = "https://github.com/pop-os/cosmic-protocols//", rev = "d0e95be" }
|
||||
|
||||
# [patch.'https://github.com/pop-os/cosmic-settings-daemon']
|
||||
# cosmic-settings-config = { git = "https://github.com/pop-os/cosmic-settings-daemon//", branch = "input_nobuild" }
|
||||
|
|
@ -74,6 +72,3 @@ cosmic-client-toolkit = { git = "https://github.com/pop-os/cosmic-protocols//",
|
|||
# cosmic-dbus-networkmanager = { path = "../dbus-settings-bindings/networkmanager" }
|
||||
# upower_dbus = { path = "../dbus-settings-bindings/upower" }
|
||||
# nm-secret-agent-manager = { git = "https://github.com/pop-os/dbus-settings-bindings//", branch = "nm-secret-agent" }
|
||||
|
||||
[patch."https://github.com/smithay/client-toolkit.git"]
|
||||
sctk = { package = "smithay-client-toolkit", version = "0.20.0" }
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ ashpd = { version = "0.12", default-features = false, features = [
|
|||
"tokio",
|
||||
], optional = true }
|
||||
chrono = "0.4.42"
|
||||
clap = { version = "4.5.51", features = ["derive"] }
|
||||
clap = { version = "4.5.54", features = ["derive"] }
|
||||
color-eyre = "0.6.5"
|
||||
cosmic-bg-config.workspace = true
|
||||
cosmic-comp-config = { workspace = true, optional = true }
|
||||
|
|
@ -40,7 +40,7 @@ cosmic-settings-daemon-config = { git = "https://github.com/pop-os/cosmic-settin
|
|||
derive_setters = "0.1.8"
|
||||
dirs = "6.0.0"
|
||||
eyre = "0.6.12"
|
||||
freedesktop-desktop-entry = "0.7.19"
|
||||
freedesktop-desktop-entry = "0.8.1"
|
||||
futures = "0.3.31"
|
||||
hostname-validator = "1.1.1"
|
||||
hostname1-zbus = { git = "https://github.com/pop-os/dbus-settings-bindings", optional = true }
|
||||
|
|
@ -52,48 +52,51 @@ image = { version = "0.25", default-features = false, features = [
|
|||
"webp",
|
||||
"hdr",
|
||||
] }
|
||||
indexmap = "2.12.0"
|
||||
indexmap = "2.13.0"
|
||||
itertools = "0.14.0"
|
||||
itoa = "1.0.15"
|
||||
itoa = "1.0.17"
|
||||
libcosmic.workspace = true
|
||||
locale1 = { git = "https://github.com/pop-os/dbus-settings-bindings", optional = true }
|
||||
sysinfo = { version = "0.36.1", optional = true }
|
||||
sysinfo = { version = "0.37.2", optional = true }
|
||||
mime-apps = { package = "cosmic-mime-apps", git = "https://github.com/pop-os/cosmic-mime-apps", optional = true }
|
||||
# TODO: updating notify beyond this hangs the app
|
||||
notify = "6.1.1"
|
||||
notify = "8.2.0"
|
||||
regex = "1.12.2"
|
||||
ron = "0.11"
|
||||
ron = "0.12"
|
||||
rust-embed = "8.9.0"
|
||||
sctk = { workspace = true, optional = true }
|
||||
secure-string = "0.3.0"
|
||||
serde = { version = "1.0.228", features = ["derive"] }
|
||||
slab = "0.4.11"
|
||||
slotmap = "1.0.7"
|
||||
slotmap = "1.1.1"
|
||||
static_init = "1.0.4"
|
||||
sunrise = "2.1.0"
|
||||
timedate-zbus = { git = "https://github.com/pop-os/dbus-settings-bindings", optional = true }
|
||||
tokio = { workspace = true, features = ["fs", "io-util", "sync"] }
|
||||
tracing = "0.1.41"
|
||||
tracing-subscriber = { version = "0.3.20", features = ["env-filter"] }
|
||||
tracing = "0.1.44"
|
||||
tracing-subscriber = { version = "0.3.22", features = ["env-filter"] }
|
||||
udev = { version = "0.9.3", optional = true }
|
||||
upower_dbus = { git = "https://github.com/pop-os/dbus-settings-bindings", optional = true }
|
||||
bluez-zbus = { git = "https://github.com/pop-os/dbus-settings-bindings", optional = true }
|
||||
url = "2.5.7"
|
||||
url = "2.5.8"
|
||||
xkb-data = "0.2.1"
|
||||
xkeysym = { version = "0.2.1", optional = true }
|
||||
zbus = { version = "5.12.0", default-features = false, features = [
|
||||
zbus = { version = "=5.12.0", default-features = false, features = [
|
||||
"tokio",
|
||||
], optional = true }
|
||||
zbus_polkit = { version = "5.0.0", optional = true }
|
||||
fontdb = "0.23.0"
|
||||
mime = "0.3.17"
|
||||
rustix = { version = "1.1.2", features = ["process"] }
|
||||
rustix = { version = "1.1.3", features = ["process"] }
|
||||
gettext-rs = { version = "0.7.7", features = [
|
||||
"gettext-system",
|
||||
], optional = true }
|
||||
async-fn-stream = "0.3"
|
||||
num-traits = "0.2"
|
||||
pwhash = "1"
|
||||
# Pinned to fix ashpd. Remove this when fixed.
|
||||
zvariant = "=5.8.0"
|
||||
# Pinned to fix ashpd. Remove this when fixed.
|
||||
zvariant_derive = "=5.8.0"
|
||||
|
||||
[dependencies.icu]
|
||||
version = "2.1.1"
|
||||
|
|
|
|||
|
|
@ -2,98 +2,58 @@ use cosmic::{
|
|||
iced::{Subscription, stream},
|
||||
iced_futures::futures::{self, SinkExt},
|
||||
};
|
||||
use notify::{Config, Event, RecommendedWatcher, RecursiveMode, Watcher};
|
||||
use notify::{Config, EventKind, RecommendedWatcher, RecursiveMode, Watcher};
|
||||
use std::fmt::Debug;
|
||||
use std::hash::Hash;
|
||||
use tokio::sync::mpsc::{UnboundedReceiver, unbounded_channel};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum State {
|
||||
Ready,
|
||||
Waiting {
|
||||
watcher: RecommendedWatcher,
|
||||
rx: UnboundedReceiver<notify::Result<Event>>,
|
||||
},
|
||||
Finished,
|
||||
}
|
||||
use tokio::sync::mpsc;
|
||||
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
pub enum DesktopFileEvent {
|
||||
pub enum Event {
|
||||
Changed,
|
||||
}
|
||||
|
||||
pub fn desktop_files<I: 'static + Hash + Copy + Send + Sync + Debug>(
|
||||
id: I,
|
||||
) -> cosmic::iced::Subscription<DesktopFileEvent> {
|
||||
) -> cosmic::iced::Subscription<Event> {
|
||||
Subscription::run_with_id(
|
||||
id,
|
||||
stream::channel(50, move |mut output| async move {
|
||||
let mut state = State::Ready;
|
||||
stream::channel(1, move |mut output| async move {
|
||||
let handle = tokio::runtime::Handle::current();
|
||||
let (tx, mut rx) = mpsc::channel(4);
|
||||
let mut last_update = std::time::Instant::now();
|
||||
|
||||
loop {
|
||||
state = start_watching(state, &mut output).await;
|
||||
}
|
||||
}),
|
||||
)
|
||||
}
|
||||
// Automatically select the best implementation for your platform.
|
||||
// You can also access each implementation directly e.g. INotifyWatcher.
|
||||
let watcher = RecommendedWatcher::new(
|
||||
move |res: Result<notify::Event, notify::Error>| {
|
||||
if let Ok(event) = res {
|
||||
match event.kind {
|
||||
EventKind::Create(_) | EventKind::Modify(_) | EventKind::Remove(_) => {
|
||||
let now = std::time::Instant::now();
|
||||
if now.duration_since(last_update).as_secs() > 3 {
|
||||
_ = handle.block_on(tx.send(()));
|
||||
last_update = now;
|
||||
}
|
||||
}
|
||||
|
||||
async fn start_watching(
|
||||
state: State,
|
||||
output: &mut futures::channel::mpsc::Sender<DesktopFileEvent>,
|
||||
) -> State {
|
||||
match state {
|
||||
State::Ready => {
|
||||
let paths = freedesktop_desktop_entry::default_paths();
|
||||
// TODO log errors
|
||||
if let Ok((mut watcher, rx)) = async_watcher() {
|
||||
for path in paths {
|
||||
_ => (),
|
||||
}
|
||||
}
|
||||
},
|
||||
Config::default(),
|
||||
);
|
||||
|
||||
if let Ok(mut watcher) = watcher {
|
||||
for path in cosmic::desktop::fde::default_paths() {
|
||||
let _ = watcher.watch(path.as_ref(), RecursiveMode::Recursive);
|
||||
}
|
||||
|
||||
_ = output.send(DesktopFileEvent::Changed).await;
|
||||
State::Waiting { watcher, rx }
|
||||
} else {
|
||||
State::Finished
|
||||
while rx.recv().await.is_some() {
|
||||
_ = output.send(Event::Changed).await;
|
||||
}
|
||||
}
|
||||
}
|
||||
State::Waiting { watcher, rx } => {
|
||||
if let Some(rx) = async_watch(rx).await {
|
||||
_ = output.send(DesktopFileEvent::Changed).await;
|
||||
State::Waiting { watcher, rx }
|
||||
} else {
|
||||
State::Finished
|
||||
}
|
||||
}
|
||||
State::Finished => cosmic::iced::futures::future::pending().await,
|
||||
}
|
||||
}
|
||||
|
||||
fn async_watcher() -> notify::Result<(RecommendedWatcher, UnboundedReceiver<notify::Result<Event>>)>
|
||||
{
|
||||
let (tx, rx) = unbounded_channel();
|
||||
|
||||
// Automatically select the best implementation for your platform.
|
||||
// You can also access each implementation directly e.g. INotifyWatcher.
|
||||
let watcher = RecommendedWatcher::new(
|
||||
move |res| {
|
||||
_ = tx.send(res);
|
||||
},
|
||||
Config::default(),
|
||||
)?;
|
||||
|
||||
Ok((watcher, rx))
|
||||
}
|
||||
|
||||
async fn async_watch(
|
||||
mut rx: UnboundedReceiver<notify::Result<Event>>,
|
||||
) -> Option<UnboundedReceiver<notify::Result<Event>>> {
|
||||
// TODO log errors
|
||||
if let Some(res) = rx.recv().await {
|
||||
match res {
|
||||
Ok(_) => return Some(rx),
|
||||
Err(_) => return None,
|
||||
}
|
||||
}
|
||||
|
||||
None
|
||||
|
||||
futures::future::pending().await
|
||||
}),
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,13 +8,13 @@ license = "MPL-2.0"
|
|||
publish = true
|
||||
|
||||
[dependencies]
|
||||
intmap = "3.1.2"
|
||||
intmap = "3.1.3"
|
||||
libspa = "0.9.2"
|
||||
libspa-sys = "0.9.2"
|
||||
pipewire = "0.9"
|
||||
serde = { version = "1.0.228", features = ["derive"]}
|
||||
serde_json = "1.0.145"
|
||||
tracing = "0.1.41"
|
||||
serde_json = "1.0.149"
|
||||
tracing = "0.1.44"
|
||||
|
||||
[features]
|
||||
# Cache route port types
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ edition = "2024"
|
|||
[dependencies]
|
||||
derive_setters = "0.1.8"
|
||||
regex = "1.12.2"
|
||||
slotmap = "1.0.7"
|
||||
slotmap = "1.1.1"
|
||||
libcosmic = { workspace = true }
|
||||
downcast-rs = "2.0.2"
|
||||
url = "2.5.7"
|
||||
url = "2.5.8"
|
||||
slab = "0.4.11"
|
||||
|
|
|
|||
|
|
@ -16,9 +16,9 @@ fast_image_resize = { version = "5", features = [
|
|||
] }
|
||||
futures-lite = "2.6.1"
|
||||
futures-util = "0.3.31"
|
||||
image = "0.25.8"
|
||||
image = "0.25.9"
|
||||
infer = "0.19.0"
|
||||
jxl-oxide = { version = "0.12.5", features = ["image"] }
|
||||
tokio = { workspace = true, features = ["sync"] }
|
||||
tracing = "0.1.41"
|
||||
tracing = "0.1.44"
|
||||
walkdir = "=2.5.0"
|
||||
|
|
|
|||
|
|
@ -11,6 +11,6 @@ cosmic-protocols = { git = "https://github.com/pop-os/cosmic-protocols" }
|
|||
iced_futures = { git = "https://github.com/pop-os/libcosmic" }
|
||||
num-derive = "0.4.2"
|
||||
num-traits = "0.2.19"
|
||||
sctk = { git = "https://github.com/smithay/client-toolkit/", package = "smithay-client-toolkit" }
|
||||
tokio = "1.48.0"
|
||||
tracing = "0.1.41"
|
||||
sctk.workspace = true
|
||||
tokio = "1.49.0"
|
||||
tracing = "0.1.44"
|
||||
|
|
|
|||
|
|
@ -10,6 +10,6 @@ publish = true
|
|||
cosmic-dbus-a11y = { git = "https://github.com/pop-os/dbus-settings-bindings" }
|
||||
futures = "0.3.31"
|
||||
iced_futures = { git = "https://github.com/pop-os/libcosmic" }
|
||||
tokio = { version = "1.48.0", features = ["sync", "time"] }
|
||||
tracing = "0.1.41"
|
||||
zbus = "5"
|
||||
tokio = { version = "1.49.0", features = ["sync", "time"] }
|
||||
tracing = "0.1.44"
|
||||
zbus = "5.12"
|
||||
|
|
|
|||
|
|
@ -9,6 +9,6 @@ publish = true
|
|||
[dependencies]
|
||||
futures = "0.3.31"
|
||||
iced_futures = { git = "https://github.com/pop-os/libcosmic" }
|
||||
log = "0.4.28"
|
||||
rustix = "1.1.2"
|
||||
tokio = "1.48.0"
|
||||
log = "0.4.29"
|
||||
rustix = "1.1.3"
|
||||
tokio = "1.49.0"
|
||||
|
|
|
|||
|
|
@ -10,6 +10,6 @@ publish = true
|
|||
bluez-zbus = { git = "https://github.com/pop-os/dbus-settings-bindings" }
|
||||
futures = "0.3.31"
|
||||
iced_futures = { git = "https://github.com/pop-os/libcosmic" }
|
||||
tokio = "1.48.0"
|
||||
tracing = "0.1.41"
|
||||
tokio = "1.49.0"
|
||||
tracing = "0.1.44"
|
||||
zbus = "5.12.0"
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ iced_futures = { git = "https://github.com/pop-os/libcosmic" }
|
|||
itertools = "0.14.0"
|
||||
secure-string = "0.3.0"
|
||||
thiserror = "2.0.17"
|
||||
tokio = "1.48.0"
|
||||
tracing = "0.1.41"
|
||||
tokio = "1.49.0"
|
||||
tracing = "0.1.44"
|
||||
zbus = { version = "5.12.0", features = ["tokio"] }
|
||||
bitflags = "2.10.0"
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ publish = true
|
|||
[dependencies]
|
||||
futures = "0.3.31"
|
||||
iced_futures = { git = "https://github.com/pop-os/libcosmic" }
|
||||
log = "0.4.28"
|
||||
tokio = "1.48.0"
|
||||
tokio-stream = "0.1.17"
|
||||
log = "0.4.29"
|
||||
tokio = "1.49.0"
|
||||
tokio-stream = "0.1.18"
|
||||
zbus = "5.12.0"
|
||||
|
|
|
|||
|
|
@ -9,12 +9,12 @@ publish = true
|
|||
[dependencies]
|
||||
cosmic-pipewire = { path = "../../crates/cosmic-pipewire" }
|
||||
futures = "0.3.31"
|
||||
intmap = "3.1.2"
|
||||
intmap = "3.1.3"
|
||||
libcosmic = { git = "https://github.com/pop-os/libcosmic", default-features = false }
|
||||
numtoa = "1.0.0-alpha1"
|
||||
rustix = "1.0.8"
|
||||
tokio = { version = "1.47.1", features = ["process", "rt", "time"] }
|
||||
tracing = { version = "0.1.41", default-features = false }
|
||||
rustix = "1.1.3"
|
||||
tokio = { version = "1.49.0", features = ["process", "rt", "time"] }
|
||||
tracing = { version = "0.1.44", default-features = false }
|
||||
|
||||
[features]
|
||||
# Set profile on first load
|
||||
|
|
|
|||
|
|
@ -9,8 +9,8 @@ publish = true
|
|||
[dependencies]
|
||||
futures = "0.3.31"
|
||||
iced_futures = { git = "https://github.com/pop-os/libcosmic" }
|
||||
log = "0.4.28"
|
||||
tokio = "1.48.0"
|
||||
tokio-stream = "0.1.17"
|
||||
log = "0.4.29"
|
||||
tokio = "1.49.0"
|
||||
tokio-stream = "0.1.18"
|
||||
upower_dbus = { git = "https://github.com/pop-os/dbus-settings-bindings" }
|
||||
zbus = "5.12.0"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue