GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.
feat: add cargo feature flag for building with a windows subsystem
Lars Berger4533e87bc0a0
diff --git a/packages/wm/Cargo.toml b/packages/wm/Cargo.tomlindex 194adeab..513d1438 100644--- a/packages/wm/Cargo.toml+++ b/packages/wm/Cargo.toml@@ -14,6 +14,9 @@ path = "src/lib.rs"name = "wm"path = "src/main.rs"+[features]+windows_subsystem = []+[dependencies]anyhow = { workspace = true }clap = { version = "4", features = ["derive"] }diff --git a/packages/wm/src/main.rs b/packages/wm/src/main.rsindex 332189cf..92b96901 100644--- a/packages/wm/src/main.rs+++ b/packages/wm/src/main.rs@@ -1,3 +1,7 @@+// Conditionally build the application with either a `windows` or `console`+// subsystem (default is `console`). This determines whether a console+// window is spawned on launch, if not already ran through a console.+#![cfg_attr(feature = "windows_subsystem", windows_subsystem = "windows")]#![feature(iterator_try_collect)]#![feature(once_cell_try)]