Skip to content

Commit 227a536

Browse files
authored
Disable the KMS/DRM backend by default (#310)
1 parent 5ac5c73 commit 227a536

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,17 @@ jobs:
4545

4646
# Wayland, KMS/DRM, X11
4747
- target: i686-unknown-linux-gnu
48+
features: "kms,x11,x11-dlopen,wayland,wayland-dlopen"
4849
- target: x86_64-unknown-linux-gnu
50+
features: "kms,x11,x11-dlopen,wayland,wayland-dlopen"
4951
- target: x86_64-unknown-linux-gnu
5052
features: "x11,x11-dlopen"
5153
- target: x86_64-unknown-linux-gnu
5254
features: "wayland,wayland-dlopen"
5355
- target: x86_64-unknown-linux-gnu
5456
features: "kms"
5557
- target: x86_64-unknown-freebsd
58+
features: "kms,x11,x11-dlopen,wayland,wayland-dlopen"
5659
- target: x86_64-unknown-netbsd
5760
features: "x11,x11-dlopen,wayland,wayland-dlopen"
5861

@@ -98,7 +101,7 @@ jobs:
98101
# - { target: x86_64-pc-windows-gnu, os: windows-latest, host: -x86_64-pc-windows-gnu }
99102
# - { target: i686-pc-windows-gnu, os: windows-latest, host: -i686-pc-windows-gnu }
100103
- { target: i686-unknown-linux-gnu, os: ubuntu-latest, }
101-
- { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, }
104+
- { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, features: "kms" }
102105
- { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, options: --no-default-features, features: "x11,x11-dlopen" }
103106
- { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, options: --no-default-features, features: "wayland,wayland-dlopen" }
104107
# Build with default Winit backends.

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- **Breaking:** Removed generic type parameters `D` and `W` from `Buffer<'_>` struct.
77
- **Breaking:** Removed `Deref[Mut]` implementation on `Buffer<'_>`. Use `Buffer::pixels()` instead.
88
- **Breaking:** Removed unintentional Cargo features for Softbuffer's optional dependencies.
9+
- **Breaking:** Disable the DRM/KMS backend by default.
910
- **Breaking:** Removed `DamageOutOfRange` error case. If the damage value is greater than the backend supports, it is instead clamped to an appropriate value.
1011
- Fixed `present_with_damage` with bounds out of range on Windows, Web and X11.
1112

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ categories = ["game-development", "graphics", "gui", "multimedia", "rendering"]
1515
exclude = ["examples"]
1616

1717
[features]
18-
default = ["wayland", "wayland-dlopen", "x11", "x11-dlopen", "kms"]
18+
default = ["wayland", "wayland-dlopen", "x11", "x11-dlopen"]
1919

2020
# Enable the Wayland backend.
2121
wayland = [

0 commit comments

Comments
 (0)