From 7296b09c55d032ae6dcd0fdddc401727f5eceedc 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 | 2 ++ Cargo.toml | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e514245..e88a460 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" } - { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, options: --no-default-features, features: "kms" } diff --git a/CHANGELOG.md b/CHANGELOG.md index b1e1b15..5b356fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # Unreleased +- **Breaking:** Disable the DRM/KMS backend by default. + # 0.4.7 - Fix documentation building on `docs.rs`. diff --git a/Cargo.toml b/Cargo.toml index fa34ffa..7c17634 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,7 @@ name = "buffer_mut" harness = false [features] -default = ["kms", "x11", "x11-dlopen", "wayland", "wayland-dlopen"] +default = ["x11", "x11-dlopen", "wayland", "wayland-dlopen"] kms = ["bytemuck", "drm", "rustix"] wayland = [ "wayland-backend",