Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
systemd: Empty crate when target OS is not Linux
Archived lorenz opened 8 months ago

This is a quick fix for build errors on macOS.

2 files changed +4 -4 efa7efac 53002689
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;