Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
Exclude radicle-systemd from non-linux builds
Merged yorgos-laptop opened 7 months ago

This conditionally enables the journal feature on linux only, in order to improve the out of the box experience on other platforms (e.g. on macOS) where cargo build --workspace currently fails.

Signed-off-by: Yorgos Saslis yorgos.work@proton.me

2 files changed +2 -2 e70850cb 9793b4e7
modified crates/radicle-node/Cargo.toml
@@ -48,7 +48,7 @@ tempfile = { workspace = true }
thiserror = { workspace = true }

[target.'cfg(target_os = "linux")'.dependencies]
-
radicle-systemd = { workspace = true, optional = true }
+
radicle-systemd = { workspace = true, optional = true, features = ["journal"] }

[target.'cfg(windows)'.dependencies]
winpipe = { workspace = true }
modified crates/radicle-systemd/Cargo.toml
@@ -13,6 +13,6 @@ log = { workspace = true, optional = true }
systemd-journal-logger = { version = "2.2.2", optional = true }

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

\ No newline at end of file