chore: Rust 2024 and update dependencies

This commit is contained in:
Vukašin Vojinović 2025-09-10 14:18:51 +02:00 committed by Ian Douglas Scott
parent 05c9af1b95
commit a939335b9e
23 changed files with 941 additions and 722 deletions

View file

@ -9,14 +9,14 @@ use cosmic::{
workspace::v2::client::zcosmic_workspace_handle_v2,
},
wayland_client::{
protocol::{wl_output, wl_shm},
Connection, WEnum,
protocol::{wl_output, wl_shm},
},
wayland_protocols::ext::workspace::v1::client::ext_workspace_handle_v1,
},
iced::{
self,
futures::{executor::block_on, FutureExt, SinkExt},
futures::{FutureExt, SinkExt, executor::block_on},
},
iced_winit::platform_specific::wayland::subsurface_widget::{Shmbuf, SubsurfaceBuffer},
};
@ -27,8 +27,8 @@ use std::{
fs,
io::{self, Write},
sync::{
atomic::{AtomicU32, Ordering},
Arc,
atomic::{AtomicU32, Ordering},
},
thread,
};

View file

@ -35,7 +35,7 @@ pub use wayland::subscription;
mod mock;
#[cfg(feature = "mock-backend")]
pub use mock::{
subscription, ExtForeignToplevelHandleV1, ExtWorkspaceHandleV1, ToplevelInfo, Workspace,
ExtForeignToplevelHandleV1, ExtWorkspaceHandleV1, ToplevelInfo, Workspace, subscription,
};
#[derive(Clone, Debug, Default)]

View file

@ -1,8 +1,8 @@
use cctk::{
screencopy::Formats,
wayland_client::{
protocol::{wl_buffer, wl_shm, wl_shm_pool},
Connection, Dispatch, QueueHandle,
protocol::{wl_buffer, wl_shm, wl_shm_pool},
},
};
use cosmic::{
@ -87,7 +87,6 @@ impl AppData {
let Some((_dev_path, gbm)) = self.gbm_devices.gbm_device(drm_dev)? else {
return Ok(None);
};
let formats = feedback.format_table();
let modifiers = modifiers
.iter()

View file

@ -3,7 +3,7 @@ use cctk::{
self,
dmabuf::{DmabufFeedback, DmabufHandler, DmabufState},
},
wayland_client::{protocol::wl_buffer, Connection, QueueHandle},
wayland_client::{Connection, QueueHandle, protocol::wl_buffer},
};
use cosmic::cctk;

View file

@ -15,7 +15,7 @@ use cctk::{
toplevel_info::ToplevelInfoState,
toplevel_management::ToplevelManagerState,
wayland_client::{
globals::registry_queue_init, protocol::wl_seat, Connection, Proxy, QueueHandle,
Connection, Proxy, QueueHandle, globals::registry_queue_init, protocol::wl_seat,
},
workspace::WorkspaceState,
};
@ -23,7 +23,7 @@ use cosmic::{
cctk,
iced::{
self,
futures::{executor::block_on, FutureExt, SinkExt},
futures::{FutureExt, SinkExt, executor::block_on},
},
};
use futures_channel::mpsc;