Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
systemd: Empty crate when target OS is not Linux
◌ CI pending Lorenz Leutgeb committed 10 months ago
commit 530026891e16d34e4015e50f9ad78c27dd20f447
parent efa7efacc401243e309cef37d90e8cd023381c2e
1 passed 1 pending (2 total) View logs
2 files changed +4 -4
modified crates/radicle-systemd/Cargo.toml
@@ -8,11 +8,11 @@ edition.workspace = true
version = "0.10.0"
rust-version.workspace = true

-
[dependencies]
+
[target.'cfg(target_os = "linux")'.dependencies]
log = { workspace = true, optional = true }
systemd-journal-logger = { version = "2.2.2", optional = true }

[features]
default = ["journal", "listen"]
journal = ["dep:log", "dep:systemd-journal-logger"]
-
listen = []

\ No newline at end of file
+
listen = []
modified crates/radicle-systemd/src/lib.rs
@@ -1,7 +1,7 @@
//! Library for interaction with systemd, specialized for Radicle.

-
#[cfg(feature = "journal")]
+
#[cfg(all(feature = "journal", target_os = "linux"))]
pub mod journal;

-
#[cfg(feature = "listen")]
+
#[cfg(all(feature = "listen", target_os = "linux"))]
pub mod listen;