Skip to content

Commit 192b70d

Browse files
committed
Rename linux to unix to support BSDs/Linux
We now use feature flags to control X11/Wayland exporting.
1 parent fcdd692 commit 192b70d

5 files changed

Lines changed: 13 additions & 23 deletions

File tree

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ keywords = ["display", "settings", "cli"]
1313
categories = ["command-line-utilities", "config"]
1414

1515
[features]
16-
linux-wayland = [ "wayland-client", "wayland-protocols-wlr" ]
17-
linux-x11 = []
16+
unix-wayland = [ "wayland-client", "wayland-protocols-wlr" ]
17+
unix-x11 = []
1818

1919
[dependencies]
2020
color-eyre = "0.6.2"

src/platforms/linux/mod.rs

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/platforms/unix/mod.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#[cfg(feature = "unix-x11")]
2+
mod x11;
3+
4+
#[cfg(feature = "unix-x11")]
5+
pub use x11::*;
6+
7+
#[cfg(feature = "unix-wayland")]
8+
mod wayland;
9+
10+
#[cfg(feature = "unix-wayland")]
11+
pub use wayland::*;

0 commit comments

Comments
 (0)