From e46f9009e6f8a70e0468d227593b3a81aef78bf6 Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Sat, 17 Jan 2026 09:06:00 +0100 Subject: [PATCH] Disable the KMS/DRM backend by default --- .github/workflows/ci.yml | 5 ++++- CHANGELOG.md | 1 + Cargo.toml | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 10a4a8f8..fabd911d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,7 +45,9 @@ jobs: # Wayland, KMS/DRM, X11 - target: i686-unknown-linux-gnu + features: "kms,x11,x11-dlopen,wayland,wayland-dlopen" - target: x86_64-unknown-linux-gnu + features: "kms,x11,x11-dlopen,wayland,wayland-dlopen" - target: x86_64-unknown-linux-gnu features: "x11,x11-dlopen" - target: x86_64-unknown-linux-gnu @@ -53,6 +55,7 @@ jobs: - target: x86_64-unknown-linux-gnu features: "kms" - target: x86_64-unknown-freebsd + features: "kms,x11,x11-dlopen,wayland,wayland-dlopen" - target: x86_64-unknown-netbsd features: "x11,x11-dlopen,wayland,wayland-dlopen" @@ -98,7 +101,7 @@ jobs: # - { target: x86_64-pc-windows-gnu, os: windows-latest, host: -x86_64-pc-windows-gnu } # - { target: i686-pc-windows-gnu, os: windows-latest, host: -i686-pc-windows-gnu } - { target: i686-unknown-linux-gnu, os: ubuntu-latest, } - - { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, } + - { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, features: "kms" } - { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, options: --no-default-features, features: "x11,x11-dlopen" } - { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, options: --no-default-features, features: "wayland,wayland-dlopen" } # Build with default Winit backends. diff --git a/CHANGELOG.md b/CHANGELOG.md index 025893aa..b1008c91 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - **Breaking:** Removed generic type parameters `D` and `W` from `Buffer<'_>` struct. - **Breaking:** Removed `Deref[Mut]` implementation on `Buffer<'_>`. Use `Buffer::pixels()` instead. - **Breaking:** Removed unintentional Cargo features for Softbuffer's optional dependencies. +- **Breaking:** Disable the DRM/KMS backend by default. - **Breaking:** Removed `DamageOutOfRange` error case. If the damage value is greater than the backend supports, it is instead clamped to an appropriate value. - Fixed `present_with_damage` with bounds out of range on Windows, Web and X11. diff --git a/Cargo.toml b/Cargo.toml index b096bbd2..fc5b8008 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ categories = ["game-development", "graphics", "gui", "multimedia", "rendering"] exclude = ["examples"] [features] -default = ["wayland", "wayland-dlopen", "x11", "x11-dlopen", "kms"] +default = ["wayland", "wayland-dlopen", "x11", "x11-dlopen"] # Enable the Wayland backend. wayland = [