Skip to content

Commit 0eeed70

Browse files
authored
Use dep: syntax in Cargo.toml (#319)
Avoids implicit features from optional dependencies.
1 parent 9fee645 commit 0eeed70

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- Added `Buffer::pixels_iter()` for iterating over each pixel with its associated `x`/`y` coordinate.
66
- **Breaking:** Removed generic type parameters `D` and `W` from `Buffer<'_>` struct.
77
- **Breaking:** Removed `Deref[Mut]` implementation on `Buffer<'_>`. Use `Buffer::pixels()` instead.
8+
- **Breaking:** Removed unintentional Cargo features for Softbuffer's optional dependencies.
89

910
# 0.4.7
1011

Cargo.toml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ default = ["wayland", "wayland-dlopen", "x11", "x11-dlopen", "kms"]
1919

2020
# Enable the Wayland backend.
2121
wayland = [
22-
"wayland-backend",
23-
"wayland-client",
24-
"wayland-sys",
25-
"memmap2",
26-
"rustix",
27-
"fastrand",
22+
"dep:wayland-backend",
23+
"dep:wayland-client",
24+
"dep:wayland-sys",
25+
"dep:memmap2",
26+
"dep:rustix",
27+
"dep:fastrand",
2828
# Only used as a dev-dependency.
2929
"winit/wayland",
3030
"winit/wayland-csd-adwaita",
@@ -33,19 +33,19 @@ wayland-dlopen = ["wayland-sys/dlopen", "winit/wayland-dlopen"]
3333

3434
# Enable the X11 backend.
3535
x11 = [
36-
"as-raw-xcb-connection",
37-
"bytemuck",
38-
"fastrand",
39-
"rustix",
40-
"tiny-xlib",
41-
"x11rb",
36+
"dep:as-raw-xcb-connection",
37+
"dep:bytemuck",
38+
"dep:fastrand",
39+
"dep:rustix",
40+
"dep:tiny-xlib",
41+
"dep:x11rb",
4242
# Only used as a dev-dependency.
4343
"winit/x11",
4444
]
4545
x11-dlopen = ["tiny-xlib/dlopen", "x11rb/dl-libxcb"]
4646

4747
# Enable the KMS/DRM backend.
48-
kms = ["bytemuck", "drm", "rustix"]
48+
kms = ["dep:bytemuck", "dep:drm", "dep:rustix"]
4949

5050
# Common dependencies.
5151
[dependencies]

0 commit comments

Comments
 (0)