chore: remove unneeded dependencies
This commit is contained in:
parent
40c7eb26cd
commit
d02051d16a
3 changed files with 5 additions and 19 deletions
11
Cargo.lock
generated
11
Cargo.lock
generated
|
|
@ -848,7 +848,6 @@ dependencies = [
|
||||||
"id_tree",
|
"id_tree",
|
||||||
"indexmap 2.13.0",
|
"indexmap 2.13.0",
|
||||||
"keyframe",
|
"keyframe",
|
||||||
"libc",
|
|
||||||
"libcosmic",
|
"libcosmic",
|
||||||
"libdisplay-info",
|
"libdisplay-info",
|
||||||
"libsystemd",
|
"libsystemd",
|
||||||
|
|
@ -864,7 +863,6 @@ dependencies = [
|
||||||
"rust-embed",
|
"rust-embed",
|
||||||
"rustix 1.1.4",
|
"rustix 1.1.4",
|
||||||
"sanitize-filename",
|
"sanitize-filename",
|
||||||
"sendfd",
|
|
||||||
"serde",
|
"serde",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
"smithay",
|
"smithay",
|
||||||
|
|
@ -4732,15 +4730,6 @@ version = "1.0.27"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "d767eb0aabc880b29956c35734170f26ed551a859dbd361d140cdbeca61ab1e2"
|
checksum = "d767eb0aabc880b29956c35734170f26ed551a859dbd361d140cdbeca61ab1e2"
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "sendfd"
|
|
||||||
version = "0.4.4"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "b183bfd5b1bc64ab0c1ef3ee06b008a9ef1b68a7d3a99ba566fbfe7a7c6d745b"
|
|
||||||
dependencies = [
|
|
||||||
"libc",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "serde"
|
name = "serde"
|
||||||
version = "1.0.228"
|
version = "1.0.228"
|
||||||
|
|
|
||||||
|
|
@ -42,8 +42,7 @@ i18n-embed-fl = "0.10"
|
||||||
iced_tiny_skia = { git = "https://github.com/pop-os/libcosmic" }
|
iced_tiny_skia = { git = "https://github.com/pop-os/libcosmic" }
|
||||||
indexmap = "2.13"
|
indexmap = "2.13"
|
||||||
keyframe = "1.1.1"
|
keyframe = "1.1.1"
|
||||||
libc = "0.2.182"
|
libcosmic = { git = "https://github.com/pop-os/libcosmic/", default-features = false }
|
||||||
libcosmic = { git = "https://github.com/pop-os/libcosmic", default-features = false }
|
|
||||||
libsystemd = { version = "0.7", optional = true }
|
libsystemd = { version = "0.7", optional = true }
|
||||||
log-panics = { version = "2", features = ["with-backtrace"] }
|
log-panics = { version = "2", features = ["with-backtrace"] }
|
||||||
ordered-float = "5.1"
|
ordered-float = "5.1"
|
||||||
|
|
@ -52,7 +51,6 @@ regex = "1"
|
||||||
ron = "0.12"
|
ron = "0.12"
|
||||||
rust-embed = { version = "8.11", features = ["debug-embed"] }
|
rust-embed = { version = "8.11", features = ["debug-embed"] }
|
||||||
sanitize-filename = "0.6.0"
|
sanitize-filename = "0.6.0"
|
||||||
sendfd = "0.4.4"
|
|
||||||
serde = { version = "1", features = ["derive"] }
|
serde = { version = "1", features = ["derive"] }
|
||||||
serde_json = "1"
|
serde_json = "1"
|
||||||
thiserror = "2.0.18"
|
thiserror = "2.0.18"
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,6 @@ use crate::{
|
||||||
|
|
||||||
use anyhow::{Context, Result};
|
use anyhow::{Context, Result};
|
||||||
use cosmic_comp_config::output::comp::{AdaptiveSync, OutputConfig, OutputState};
|
use cosmic_comp_config::output::comp::{AdaptiveSync, OutputConfig, OutputState};
|
||||||
use libc::dev_t;
|
|
||||||
use smithay::{
|
use smithay::{
|
||||||
backend::{
|
backend::{
|
||||||
allocator::{
|
allocator::{
|
||||||
|
|
@ -37,7 +36,7 @@ use smithay::{
|
||||||
calloop::{LoopHandle, RegistrationToken},
|
calloop::{LoopHandle, RegistrationToken},
|
||||||
drm::control::{Device as ControlDevice, ModeTypeFlags, connector, crtc},
|
drm::control::{Device as ControlDevice, ModeTypeFlags, connector, crtc},
|
||||||
gbm::BufferObjectFlags as GbmBufferFlags,
|
gbm::BufferObjectFlags as GbmBufferFlags,
|
||||||
rustix::fs::OFlags,
|
rustix::fs::{Dev, OFlags},
|
||||||
wayland_server::DisplayHandle,
|
wayland_server::DisplayHandle,
|
||||||
},
|
},
|
||||||
utils::{Clock, DevPath, DeviceFd, Monotonic, Point, Transform},
|
utils::{Clock, DevPath, DeviceFd, Monotonic, Point, Transform},
|
||||||
|
|
@ -175,7 +174,7 @@ pub fn init_egl(gbm: &GbmDevice<DrmDeviceFd>) -> Result<EGLInternals> {
|
||||||
impl State {
|
impl State {
|
||||||
pub fn device_added(
|
pub fn device_added(
|
||||||
&mut self,
|
&mut self,
|
||||||
dev: dev_t,
|
dev: Dev,
|
||||||
path: &Path,
|
path: &Path,
|
||||||
dh: &DisplayHandle,
|
dh: &DisplayHandle,
|
||||||
) -> Result<Vec<Output>> {
|
) -> Result<Vec<Output>> {
|
||||||
|
|
@ -399,7 +398,7 @@ impl State {
|
||||||
Ok(wl_outputs)
|
Ok(wl_outputs)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn device_changed(&mut self, dev: dev_t) -> Result<Vec<Output>> {
|
pub fn device_changed(&mut self, dev: Dev) -> Result<Vec<Output>> {
|
||||||
if !self.backend.kms().session.is_active() {
|
if !self.backend.kms().session.is_active() {
|
||||||
return Ok(Vec::new());
|
return Ok(Vec::new());
|
||||||
}
|
}
|
||||||
|
|
@ -490,7 +489,7 @@ impl State {
|
||||||
Ok(outputs_added)
|
Ok(outputs_added)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn device_removed(&mut self, dev: dev_t, dh: &DisplayHandle) -> Result<()> {
|
pub fn device_removed(&mut self, dev: Dev, dh: &DisplayHandle) -> Result<()> {
|
||||||
let backend = self.backend.kms();
|
let backend = self.backend.kms();
|
||||||
// we can't use DrmNode::from_node_id, because that assumes the node is still on sysfs
|
// we can't use DrmNode::from_node_id, because that assumes the node is still on sysfs
|
||||||
let drm_node = backend
|
let drm_node = backend
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue