Support systemd only on unix
[valheim_web.git] / backend / Cargo.toml
index 1b5f3d0..351f710 100644 (file)
@@ -14,7 +14,8 @@ ron = "0.6" # Rust object notation, to load configuration files.
 itertools = "0.10"
 
 sysinfo = "0.16"
-systemd = "0.8"
+
+cached = "0.23"
 
 futures = "0.3" # Needed by askam with the feature 'with-actix-web'.
 
@@ -24,3 +25,6 @@ common = { path = "../common" }
 [dependencies.askama]
 version = "0.9"
 features = ["with-actix-web"]
+
+[target.'cfg(unix)'.dependencies]
+systemd = "0.8"
\ No newline at end of file