chore: update dependencies

This commit is contained in:
Vukašin Vojinović 2025-12-09 19:50:02 +01:00 committed by Michael Murphy
parent db6fbfbce7
commit 5fbbf4ba37
5 changed files with 845 additions and 653 deletions

1435
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -1,16 +1,15 @@
[package]
name = "cosmic-workspaces"
version = "0.1.0"
version = "1.0.0"
edition = "2024"
[dependencies]
anyhow = "1.0.99"
calloop = { version = "0.14.3", features = ["executor"] }
anyhow = "1.0.102"
calloop = { version = "0.14.4", features = ["executor"] }
clap = { version = "4", features = ["derive"] }
cosmic-bg-config = { git = "https://github.com/pop-os/cosmic-bg" }
cosmic-comp-config = { git = "https://github.com/pop-os/cosmic-comp", branch = "action-on-typing" }
env_logger = "0.11.8"
futures-channel = "0.3.31"
cosmic-comp-config = { git = "https://github.com/pop-os/cosmic-comp" }
env_logger = "0.11.9"
gbm = "0.18.0"
libcosmic = { git = "https://github.com/pop-os/libcosmic", default-features = false, features = [
"tokio",
@ -23,22 +22,21 @@ libcosmic = { git = "https://github.com/pop-os/libcosmic", default-features = fa
cosmic-config = { git = "https://github.com/pop-os/libcosmic" }
freedesktop-icons = { package = "cosmic-freedesktop-icons", git = "https://github.com/pop-os/freedesktop-icons" }
memmap2 = "0.9.8"
tokio = "1.47.1"
wayland-protocols = "0.32.9"
delegate = "0.13.4"
memmap2 = "0.9.10"
tokio = "1.49.0"
wayland-protocols = "0.32.10"
delegate = "0.13.5"
itertools = "0.14.0"
log = "0.4.28"
log = "0.4.29"
i18n-embed-fl = "0.10"
rust-embed = "8.7.2"
rustix = { version = "1.1.2", features = ["fs", "shm"] }
rust-embed = "8.11.0"
rustix = { version = "1.1.3", features = ["fs", "shm"] }
calloop-wayland-source = "0.4.1"
aliasable = "0.1.3"
futures-executor = { version = "0.3.31", features = ["thread-pool"] }
zbus = "5.9.0"
tokio-stream = { version = "0.1.17", features = ["sync"] }
zbus = "5.13.2"
tokio-stream = { version = "0.1.18", features = ["sync"] }
ash = { version = "0.38.0", features = ["loaded"] }
bytemuck = "1.23.2"
bytemuck = "1.25.0"
cosmic-panel-config = { git = "https://github.com/pop-os/cosmic-panel" }
[dependencies.i18n-embed]
@ -56,7 +54,3 @@ mock-backend = []
[profile.dev]
# Not usable at opt-level 0, at least with software renderer
opt-level = 1
[patch."https://github.com/pop-os/cosmic-protocols"]
cosmic-protocols = { git = "https://github.com/pop-os/cosmic-protocols//", branch = "main" }
cosmic-client-toolkit = { git = "https://github.com/pop-os/cosmic-protocols//", branch = "main" }

View file

@ -23,10 +23,13 @@ use cosmic::{
cctk,
iced::{
self,
futures::{FutureExt, SinkExt, executor::block_on},
futures::{
FutureExt, SinkExt,
channel::mpsc,
executor::{ThreadPool, block_on},
},
},
};
use futures_channel::mpsc;
use std::{cell::RefCell, collections::HashMap, sync::Arc, thread};
mod buffer;
@ -63,7 +66,7 @@ pub struct AppData {
captures: RefCell<HashMap<CaptureSource, Arc<Capture>>>,
dmabuf_feedback: Option<DmabufFeedback>,
gbm_devices: GbmDevices,
thread_pool: futures_executor::ThreadPool,
thread_pool: ThreadPool,
vulkan: Option<vulkan::Vulkan>,
}
@ -278,10 +281,7 @@ fn start(conn: Connection) -> mpsc::Receiver<Event> {
thread::spawn(move || {
// TODO: The `calloop` executor doesn't seem to be working properly, so
// spawn an executor using one additional thread.
let thread_pool = futures_executor::ThreadPool::builder()
.pool_size(1)
.create()
.unwrap();
let thread_pool = ThreadPool::builder().pool_size(1).create().unwrap();
let registry_state = RegistryState::new(&globals);
let mut app_data = AppData {

View file

@ -3,7 +3,7 @@ use cosmic::{
self,
screencopy::{
CaptureFrame, CaptureOptions, CaptureSession, CaptureSource, FailureReason, Formats,
Frame, Rect, ScreencopyFrameData, ScreencopyFrameDataExt, ScreencopyHandler,
Frame, ScreencopyFrameData, ScreencopyFrameDataExt, ScreencopyHandler,
ScreencopySessionData, ScreencopySessionDataExt, ScreencopyState,
},
wayland_client::{Connection, QueueHandle, WEnum},

View file

@ -19,7 +19,7 @@ use cosmic::{
widget::{self, Widget},
};
use cosmic_comp_config::workspace::WorkspaceLayout;
use std::collections::{HashMap, HashSet};
use std::collections::HashSet;
use crate::{
App, LayerSurface, Msg, Toplevel, Workspace,
@ -287,12 +287,9 @@ fn workspace_item(
let workspace_footer = row![
widget::horizontal_space().width(Length::Fixed(32.0)),
widget::text::body(fl!(
"workspace",
HashMap::from([("number", &workspace.info.name)])
))
.apply(widget::container)
.center_x(Length::Fill),
widget::text::body(fl!("workspace", number = workspace.info.name.as_str()))
.apply(widget::container)
.center_x(Length::Fill),
pin_button(workspace),
];