aboutsummaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml9
1 files changed, 8 insertions, 1 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 82f4e99..733e2fb 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -45,9 +45,13 @@ jsonfeed = { path = "./lib/jsonfeed" }
mi = { path = "./lib/mi" }
patreon = { path = "./lib/patreon" }
+[dependencies.listenfd]
+version = "0.3"
+optional = true
+
# os-specific dependencies
[target.'cfg(target_os = "linux")'.dependencies]
-sdnotify = { version = "0.1", default-features = false }
+sdnotify = { path = "./lib/sdnotify", optional = true }
[build-dependencies]
ructe = { version = "0.13", features = ["warp02"] }
@@ -62,3 +66,6 @@ pretty_env_logger = "0"
members = [
"./lib/*",
]
+
+[features]
+systemd = ["sdnotify", "listenfd"]