Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
REVIEW: Use conventional feature flag
Lorenz Leutgeb committed 7 months ago
commit 46b59382caab4b9a0cb2e34dfdbcc79f80883c5d
parent 632a9164feadf24ac7c5cbd6befabff7e16622e9
2 files changed +3 -4
modified crates/radicle-node/Cargo.toml
@@ -10,10 +10,9 @@ build = "build.rs"
rust-version.workspace = true

[features]
-
default = ["systemd", "structured_logger"]
+
default = ["systemd", "structured-logger"]
systemd = ["dep:radicle-systemd"]
test = ["radicle/test", "radicle-crypto/test", "radicle-crypto/cyphernet", "radicle-protocol/test", "qcheck", "snapbox"]
-
structured_logger = ["dep:structured-logger"]

[dependencies]
amplify = { workspace = true }
modified crates/radicle-node/src/main.rs
@@ -228,7 +228,7 @@ fn initialize_logging(log_format: LogFormat) {
            radicle_systemd::journal::logger::<&str, &str, _>("radicle-node".to_string(), [])
                .map_err(|err| Box::new(JournalError(err)) as Error)
        }
-
        #[cfg(feature = "structured_logger")]
+
        #[cfg(feature = "structured-logger")]
        {
            use structured_logger::{json, Builder};

@@ -242,7 +242,7 @@ fn initialize_logging(log_format: LogFormat) {
            }
        }
        #[cfg(not(any(
-
            feature = "structured_logger",
+
            feature = "structured-logger",
            all(feature = "systemd", target_os = "linux")
        )))]
        {