1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-04-19 11:24:24 +02:00

feat: networkmanager module is now an optional Cargo feature

This commit is contained in:
Reinout Meliesie 2024-02-15 15:18:18 +01:00
parent 3e9cf85c2c
commit 33d367cdf4
Signed by: zedfrigg
GPG key ID: 3AFCC06481308BC6
2 changed files with 7 additions and 3 deletions

View file

@ -19,6 +19,7 @@ default = [
"ipc",
"launcher",
"music+all",
"networkmanager",
"sys_info",
"tray",
"upower",
@ -56,6 +57,8 @@ music = ["regex"]
"music+mpris" = ["music", "mpris"]
"music+mpd" = ["music", "mpd-utils"]
networkmanager = ["futures-lite", "zbus"]
sys_info = ["sysinfo", "regex"]
tray = ["system-tray"]
@ -129,8 +132,6 @@ system-tray = { version = "0.1.5", optional = true }
# upower
upower_dbus = { version = "0.3.2", optional = true }
futures-lite = { version = "2.2.0", optional = true }
zbus = { version = "3.15.0", optional = true }
# workspaces
swayipc-async = { version = "2.0.1", optional = true }
@ -140,4 +141,6 @@ futures-util = { version = "0.3.30", optional = true }
# shared
regex = { version = "1.10.3", default-features = false, features = [
"std",
], optional = true } # music, sys_info
], optional = true } # music, sys_info
futures-lite = { version = "2.2.0", optional = true } # networkmanager, upower
zbus = { version = "3.15.0", optional = true } # networkmanager, upower

View file

@ -35,6 +35,7 @@ pub mod label;
pub mod launcher;
#[cfg(feature = "music")]
pub mod music;
#[cfg(feature = "networkmanager")]
pub mod networkmanager;
pub mod script;
#[cfg(feature = "sys_info")]