From 3d18c2d797250489aa93611554d57c04cce0fb76 Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Fri, 23 Jan 2026 15:54:01 +0100 Subject: [PATCH] Use dep: syntax in Cargo.toml Avoids implicit features from optional dependencies. --- CHANGELOG.md | 1 + Cargo.toml | 26 +++++++++++++------------- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 59a21cf3..8eb2b664 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ - Added `Buffer::pixels_iter()` for iterating over each pixel with its associated `x`/`y` coordinate. - **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. # 0.4.7 diff --git a/Cargo.toml b/Cargo.toml index f9d6d4de..b18d9371 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,12 +19,12 @@ default = ["wayland", "wayland-dlopen", "x11", "x11-dlopen", "kms"] # Enable the Wayland backend. wayland = [ - "wayland-backend", - "wayland-client", - "wayland-sys", - "memmap2", - "rustix", - "fastrand", + "dep:wayland-backend", + "dep:wayland-client", + "dep:wayland-sys", + "dep:memmap2", + "dep:rustix", + "dep:fastrand", # Only used as a dev-dependency. "winit/wayland", "winit/wayland-csd-adwaita", @@ -33,19 +33,19 @@ wayland-dlopen = ["wayland-sys/dlopen", "winit/wayland-dlopen"] # Enable the X11 backend. x11 = [ - "as-raw-xcb-connection", - "bytemuck", - "fastrand", - "rustix", - "tiny-xlib", - "x11rb", + "dep:as-raw-xcb-connection", + "dep:bytemuck", + "dep:fastrand", + "dep:rustix", + "dep:tiny-xlib", + "dep:x11rb", # Only used as a dev-dependency. "winit/x11", ] x11-dlopen = ["tiny-xlib/dlopen", "x11rb/dl-libxcb"] # Enable the KMS/DRM backend. -kms = ["bytemuck", "drm", "rustix"] +kms = ["dep:bytemuck", "dep:drm", "dep:rustix"] # Common dependencies. [dependencies]