Source: swayosd
Version: 0.3.0-4
Severity: normal
X-Debbugs-Cc: [email protected]

Dear Maintainer,

We have just updated a new version of the Rust library "blight" to
Debian unstable.

The following patch of your Debian package shall be compatible with
either version of blight:

Description: Support both blight 0.7 and 0.8 brightness APIs
 blight 0.8 moves Device operations to the Light trait. Import the crate's
 exports so that trait is in scope on 0.8 without requiring it on 0.7.
 Existing mutable backend methods support both versions. Admit the two API
 series in Cargo; no brightness operation or error propagation is changed.
Forwarded: no
Last-Update: 2026-11-03
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -41,7 +41,7 @@
 evdev-rs = "0.6.2"
 async-std = "1.13.1"
 nix = { version = "0.30", features = ["poll"] }
-blight = "0.7.1"
+blight = ">=0.7.1, <0.9"
 anyhow = "1.0.98"
 thiserror = "2.0.12"
 async-channel = "2.5.0"
--- a/src/brightness_backend/blight.rs
+++ b/src/brightness_backend/blight.rs
@@ -1,4 +1,5 @@
-use blight::{Device, Direction};
+// Import Light when provided by blight 0.8; 0.7 has inherent Device methods.
+use blight::*;
 
 use super::{BrightnessBackend, BrightnessBackendConstructor};
 



-- System Information:
Debian Release: forky/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 7.2.12+deb14-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Reply via email to