mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-08-17 06:41:03 +02:00
build: fix compilation for many feature combinations (#932)
* Fix compilation for many feature combinations * fix: keep Mpris as the default music player type * fix: update futures-lite comment * fix: remove redundant "clap" feature dependency from "cli" * fix: don't make IPC a dependency of sysinfo module * refactor: move serde_json feature to "shared" section * refactor: avoid cfgs inside listen_workspace_events by splitting list_keyboards_events out of it, which manages its own connection to the Hyprland IPC socket. * refactor: sort multiline cfg any's * Revert "refactor: avoid cfgs inside listen_workspace_events" This reverts commit 1b4202ed80c9483c609ada8c4436e0fec26a9eef. * refactor: split listen_workspace_events in more functions * style: fix broken identation Not sure why rustfmt didn't catch this.
This commit is contained in:
parent
5744929931
commit
cff6b1fc83
11 changed files with 363 additions and 265 deletions
18
Cargo.toml
18
Cargo.toml
|
@ -30,11 +30,11 @@ default = [
|
|||
"tray",
|
||||
"upower",
|
||||
"volume",
|
||||
"workspaces+all"
|
||||
"workspaces+all",
|
||||
]
|
||||
|
||||
cli = ["dep:clap", "ipc"]
|
||||
ipc = ["dep:serde_json"]
|
||||
cli = ["ipc"]
|
||||
ipc = ["dep:serde_json", "dep:clap"]
|
||||
|
||||
http = ["dep:reqwest"]
|
||||
|
||||
|
@ -61,7 +61,7 @@ custom = []
|
|||
|
||||
focused = []
|
||||
|
||||
keyboard = ["dep:colpetto", "dep:evdev-rs", "dep:rustix"]
|
||||
keyboard = ["dep:colpetto", "dep:evdev-rs", "dep:rustix", "futures-lite"]
|
||||
"keyboard+all" = ["keyboard", "keyboard+sway", "keyboard+hyprland"]
|
||||
"keyboard+sway" = ["keyboard", "sway"]
|
||||
"keyboard+hyprland" = ["keyboard", "hyprland"]
|
||||
|
@ -93,10 +93,12 @@ workspaces = ["futures-lite"]
|
|||
"workspaces+all" = ["workspaces", "workspaces+sway", "workspaces+hyprland", "workspaces+niri"]
|
||||
"workspaces+sway" = ["workspaces", "sway"]
|
||||
"workspaces+hyprland" = ["workspaces", "hyprland"]
|
||||
"workspaces+niri" = ["workspaces"]
|
||||
"workspaces+niri" = ["workspaces", "niri"]
|
||||
|
||||
sway = ["swayipc-async", "futures-lite"]
|
||||
|
||||
niri = ["dep:serde_json"]
|
||||
|
||||
schema = ["dep:schemars"]
|
||||
|
||||
[dependencies]
|
||||
|
@ -136,9 +138,6 @@ cfg-if = "1.0.0"
|
|||
# cli
|
||||
clap = { version = "4.5.36", optional = true, features = ["derive"] }
|
||||
|
||||
# ipc
|
||||
serde_json = { version = "1.0.140", optional = true }
|
||||
|
||||
# http
|
||||
reqwest = { version = "0.12.15", default-features = false, features = ["default-tls", "http2"], optional = true }
|
||||
|
||||
|
@ -174,11 +173,12 @@ system-tray = { version = "0.7.0", features = ["dbusmenu-gtk3"], optional = true
|
|||
libpulse-binding = { version = "2.29.0", optional = true }
|
||||
|
||||
# shared
|
||||
futures-lite = { version = "2.6.0", optional = true } # network_manager, upower, workspaces
|
||||
futures-lite = { version = "2.6.0", optional = true } # network_manager, upower, workspaces, keyboard
|
||||
zbus = { version = "5.5.0", default-features = false, features = ["tokio"], optional = true } # network_manager, notifications, upower
|
||||
swayipc-async = { version = "2.0.4", optional = true } # workspaces, keyboard
|
||||
hyprland = { version = "0.4.0-alpha.3", features = ["silent"], optional = true } # workspaces, keyboard
|
||||
rustix = { version = "1.0.5", default-features = false, features = ["std", "fs", "pipe", "event"], optional = true } # clipboard, input
|
||||
serde_json = { version = "1.0.140", optional = true } # ipc, niri
|
||||
|
||||
# schema
|
||||
schemars = { version = "0.8.22", optional = true }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue