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};