rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5 heartwood23f782f34388dad282a7516aa93731d8f3ca8889
{
"request": "trigger",
"version": 1,
"event_type": "patch",
"repository": {
"id": "rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5",
"name": "heartwood",
"description": "Radicle Heartwood Protocol & Stack",
"private": false,
"default_branch": "master",
"delegates": [
"did:key:z6MksFqXN3Yhqk8pTJdUGLwATkRfQvwZXPqR2qMEhbS9wzpT",
"did:key:z6MktaNvN1KVFMkSRAiN4qK5yvX1zuEEaseeX5sffhzPZRZW",
"did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
"did:key:z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz"
]
},
"action": "Updated",
"patch": {
"id": "90a185bcf984e548d631a84457e27efbe3e4ba97",
"author": {
"id": "did:key:z6MkwGoyYxt6A2VE3fvZyH2rgiWdsXHBeV7jm7GSByS2aagA",
"alias": "ade"
},
"title": "radicle-log: enhanced log highlighting",
"state": {
"status": "open",
"conflicts": []
},
"before": "b937a93892db3d80833b3cdde3bc37935151e274",
"after": "23f782f34388dad282a7516aa93731d8f3ca8889",
"commits": [
"23f782f34388dad282a7516aa93731d8f3ca8889",
"9385868f9769726c09895f04fb3848ec93487466",
"6164b59f2917001c2e256a63ac92c794afdc347a",
"e72c4cff0c10274f68d91fb5be9cc457848b937e"
],
"target": "91eb6fc078727337449c203b8cf54aba4f40d816",
"labels": [],
"assignees": [],
"revisions": [
{
"id": "90a185bcf984e548d631a84457e27efbe3e4ba97",
"author": {
"id": "did:key:z6MkwGoyYxt6A2VE3fvZyH2rgiWdsXHBeV7jm7GSByS2aagA",
"alias": "ade"
},
"description": "Refactor out `radicle::Logger` and `radicle::logger::Logger` to `radicle-log` crate.\n\nEnhance the test logger to highlight:\n\n1. Any `base58` strings with a deterministic colour\n2. Any git refs to be boldened and underlined\n a. Any `base58` strings inside refs to adhere to 1.\n3. Any git OIDs (short and long) first 6 characters mapped to a hex colour with light and dark background adjustments\n4. ... any timestamps also coloured as per 3. \ud83d\udc40\n5. error level logs are all red and underlined (with rules 1 - 4 applied)\n6. warning level logs are all yellow and underlined (witith rules 1 - 4 applied)\n\nI /think/ I managed to preserve the existing feature toggles, but worth double checking!",
"base": "b937a93892db3d80833b3cdde3bc37935151e274",
"oid": "ae7481b53a591d107ee9ee8bd9f276d3bce6ed02",
"timestamp": 1769103378
},
{
"id": "8a0b020ea5e8054adb5e3ef15bb26012d7face68",
"author": {
"id": "did:key:z6MkwGoyYxt6A2VE3fvZyH2rgiWdsXHBeV7jm7GSByS2aagA",
"alias": "ade"
},
"description": "Distill",
"base": "b937a93892db3d80833b3cdde3bc37935151e274",
"oid": "044320dbff6f6dc97e5fdadf7b99bb693ab88b7f",
"timestamp": 1769173294
},
{
"id": "af22c124cbbccb919a75b00971c14f06233c9311",
"author": {
"id": "did:key:z6MkwGoyYxt6A2VE3fvZyH2rgiWdsXHBeV7jm7GSByS2aagA",
"alias": "ade"
},
"description": "Fix:\n - Corretly account for rename while moving files from `radicle` to `radicle-log`.\n - Fix feature flags.",
"base": "b937a93892db3d80833b3cdde3bc37935151e274",
"oid": "6164b59f2917001c2e256a63ac92c794afdc347a",
"timestamp": 1769174438
},
{
"id": "f366079ccd104722f1c26d0d2b966d1b33551b2d",
"author": {
"id": "did:key:z6MkwGoyYxt6A2VE3fvZyH2rgiWdsXHBeV7jm7GSByS2aagA",
"alias": "ade"
},
"description": "Honour `NO_COLOR` environment variable: https://no-color.org/",
"base": "b937a93892db3d80833b3cdde3bc37935151e274",
"oid": "9385868f9769726c09895f04fb3848ec93487466",
"timestamp": 1769442040
},
{
"id": "d9f963450760a0f3a4d89105776896247ea8b120",
"author": {
"id": "did:key:z6MkwGoyYxt6A2VE3fvZyH2rgiWdsXHBeV7jm7GSByS2aagA",
"alias": "ade"
},
"description": "log: add aliase support for base58 strings via RAD_ALIASES env var\n\nAs an example, you can set the following to shorten `alice`, `bob`, `eve` and the repo OID in the logs:\n\n```console\n$ RAD_ALIASES=\"z6Mkt67GdsW7715MEfRuP4pSZxJRJh6kj6Y48WRqVv4N1tRk=bob,z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi=alice,z6Mkux1aUQD2voWWukVb5nNUR7thrHveQG4pDQua8nVhib7Z=eve,z42hL2jL4XNk6K8oHQaSWfMgCL7ji=test-repo\" cargo nextest run --no-capture\n```",
"base": "b937a93892db3d80833b3cdde3bc37935151e274",
"oid": "23f782f34388dad282a7516aa93731d8f3ca8889",
"timestamp": 1769603416
}
]
}
}
{
"response": "triggered",
"run_id": {
"id": "63dc03da-c32e-449f-9e7d-69145d0024b9"
},
"info_url": "https://cci.rad.levitte.org//63dc03da-c32e-449f-9e7d-69145d0024b9.html"
}
Started at: 2026-01-28 13:30:21.921549+01:00
Commands:
$ rad clone rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5 .
✓ Creating checkout in ./...
✓ Remote cloudhead@z6MksFqXN3Yhqk8pTJdUGLwATkRfQvwZXPqR2qMEhbS9wzpT added
✓ Remote-tracking branch cloudhead@z6MksFqXN3Yhqk8pTJdUGLwATkRfQvwZXPqR2qMEhbS9wzpT/master created for z6MksFqXN3Yhqk8pTJdUGLwATkRfQvwZXPqR2qMEhbS9wzpT
✓ Remote cloudhead@z6MktaNvN1KVFMkSRAiN4qK5yvX1zuEEaseeX5sffhzPZRZW added
✓ Remote-tracking branch cloudhead@z6MktaNvN1KVFMkSRAiN4qK5yvX1zuEEaseeX5sffhzPZRZW/master created for z6MktaNvN1KVFMkSRAiN4qK5yvX1zuEEaseeX5sffhzPZRZW
✓ Remote fintohaps@z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM added
✓ Remote-tracking branch fintohaps@z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM/master created for z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM
✓ Remote lorenz@z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz added
✓ Remote-tracking branch lorenz@z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz/master created for z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz
✓ Repository successfully cloned under /opt/radcis/ci.rad.levitte.org/cci/state/63dc03da-c32e-449f-9e7d-69145d0024b9/w/
╭────────────────────────────────────╮
│ heartwood │
│ Radicle Heartwood Protocol & Stack │
│ 136 issues · 19 patches │
╰────────────────────────────────────╯
Run `cd ./.` to go to the repository directory.
Exit code: 0
$ rad patch checkout 90a185bcf984e548d631a84457e27efbe3e4ba97
✓ Switched to branch patch/90a185b at revision d9f9634
✓ Branch patch/90a185b setup to track rad/patches/90a185bcf984e548d631a84457e27efbe3e4ba97
Exit code: 0
$ git config advice.detachedHead false
Exit code: 0
$ git checkout 23f782f34388dad282a7516aa93731d8f3ca8889
HEAD is now at 23f782f3 log: add aliases support for base58 strings via RAD_ALIASES env var
Exit code: 0
$ rad patch show 90a185bcf984e548d631a84457e27efbe3e4ba97 -p
╭──────────────────────────────────────────────────────────────────────────────────╮
│ Title radicle-log: enhanced log highlighting │
│ Patch 90a185bcf984e548d631a84457e27efbe3e4ba97 │
│ Author ade z6MkwGo…yS2aagA │
│ Head 23f782f34388dad282a7516aa93731d8f3ca8889 │
│ Base b937a93892db3d80833b3cdde3bc37935151e274 │
│ Branches patch/90a185b │
│ Commits ahead 4, behind 8 │
│ Status open │
│ │
│ Refactor out `radicle::Logger` and `radicle::logger::Logger` to `radicle-log` │
│ crate. │
│ │
│ Enhance the test logger to highlight: │
│ │
│ 1. Any `base58` strings with a deterministic colour │
│ 2. Any git refs to be boldened and underlined │
│ a. Any `base58` strings inside refs to adhere to 1. │
│ 3. Any git OIDs (short and long) first 6 characters mapped to a hex colour with │
│ light and dark background adjustments │
│ 4. ... any timestamps also coloured as per 3. 👀 │
│ 5. error level logs are all red and underlined (with rules 1 - 4 applied) │
│ 6. warning level logs are all yellow and underlined (witith rules 1 - 4 applied) │
│ │
│ I /think/ I managed to preserve the existing feature toggles, but worth double │
│ checking! │
├──────────────────────────────────────────────────────────────────────────────────┤
│ 23f782f log: add aliases support for base58 strings via RAD_ALIASES env var │
│ 9385868 cli-test: ensure we honour NO_COLOR env var │
│ 6164b59 log: Add regex-based highlighting to test logger │
│ e72c4cf log: New crate for logger implementations │
├──────────────────────────────────────────────────────────────────────────────────┤
│ ● Revision 90a185b @ ae7481b by ade z6MkwGo…yS2aagA 5 days ago │
│ ↑ Revision 8a0b020 @ 044320d by lorenz z6MkkPv…WX5sTEz 4 days ago │
│ ↑ Revision af22c12 @ 6164b59 by lorenz z6MkkPv…WX5sTEz 4 days ago │
│ ↑ Revision f366079 @ 9385868 by ade z6MkwGo…yS2aagA 1 day ago │
│ ↑ Revision d9f9634 @ 23f782f by ade z6MkwGo…yS2aagA 7 seconds ago │
╰──────────────────────────────────────────────────────────────────────────────────╯
commit 23f782f34388dad282a7516aa93731d8f3ca8889
Author: Adrian Duke <adrian.duke@gmail.com>
Date: Tue Jan 27 16:35:16 2026 +0000
log: add aliases support for base58 strings via RAD_ALIASES env var
diff --git a/crates/radicle-log/src/test.rs b/crates/radicle-log/src/test.rs
index b16d91e2d..b452035af 100644
--- a/crates/radicle-log/src/test.rs
+++ b/crates/radicle-log/src/test.rs
@@ -1,3 +1,4 @@
+use std::collections::HashMap;
use std::io::{self, Write};
use std::sync::{Arc, Mutex};
@@ -17,6 +18,7 @@ pub struct Logger {
pub base58_ref_oid_re: Regex,
pub base58_re: Regex,
writer: SharedWriter,
+ aliases: HashMap<String, String>,
}
/// The Base58 pattern used for Radicle IDs.
@@ -24,6 +26,15 @@ const BASE58_REGEX: &str = r"z[1-9A-HJ-NP-Za-km-z]{10,}";
impl Logger {
pub fn new(level: Level) -> Self {
+ let mut aliases = HashMap::new();
+ if let Ok(s) = std::env::var("RAD_ALIASES") {
+ for pair in s.split(',') {
+ if let Some((k, v)) = pair.split_once('=') {
+ aliases.insert(k.to_owned(), v.to_owned());
+ }
+ }
+ }
+
Self {
level,
// base58: Starts with 'z', base58 chars, 10+ length.
@@ -35,6 +46,7 @@ impl Logger {
).expect("invalid regex"),
base58_re: Regex::new(BASE58_REGEX).expect("invalid id regex"),
writer: Arc::new(Mutex::new(io::stdout())),
+ aliases,
}
}
@@ -51,40 +63,20 @@ impl Logger {
log::set_max_level(level.to_level_filter());
Ok(())
}
-}
-
-impl Log for Logger {
- fn enabled(&self, metadata: &Metadata) -> bool {
- metadata.level() <= self.level
- }
- fn log(&self, record: &Record) {
- if !self.enabled(record.metadata()) {
- return;
- }
+ fn paint_base58_with_aliases<'a>(&'a self, s: &'a str) -> Paint<&'a str> {
+ let alias_or_match_str = self.aliases.get(s).map(|x| x.as_str()).unwrap_or(s);
+ let colour = colour_for_base58(s);
- let target = record.target();
- let level = record.level();
-
- // Helper to paint the "plain" parts of the message based on the target/level.
- let paint_plain = |s: &str| -> String {
- match target {
- "test" => Paint::cyan(s).to_string(),
- "sim" => Paint::new(s).bold().to_string(),
- _ => match level {
- Level::Warn => Paint::yellow(s).underline().to_string(),
- Level::Error => Paint::red(s).underline().to_string(),
- _ => Paint::new(s).dim().to_string(),
- },
- }
- };
+ colour.paint(alias_or_match_str).bold()
+ }
- let msg = record.args().to_string();
+ fn format_message(&self, msg: &str, paint_plain: impl Fn(&str) -> String) -> String {
let mut coloured_msg = String::new();
let mut last_match = 0;
// Iterate over the main composite matches
- for caps in self.base58_ref_oid_re.captures_iter(&msg) {
+ for caps in self.base58_ref_oid_re.captures_iter(msg) {
let whole_match = caps.get(0).unwrap();
// Paint text BEFORE the match (Plain style)
@@ -94,7 +86,8 @@ impl Log for Logger {
if let Some(m) = caps.name("base58") {
// Standard Base58 match (not inside a ref)
let match_str = m.as_str();
- coloured_msg.push_str(&paint_base58(match_str).to_string());
+
+ coloured_msg.push_str(&self.paint_base58_with_aliases(match_str).to_string());
} else if let Some(m) = caps.name("oid") {
// Git OID match (RGB from hex with contrast check)
let oid = m.as_str();
@@ -111,13 +104,8 @@ impl Log for Logger {
// Paint the ID itself (Deterministic Colour + Bold)
let id = id_match.as_str();
- coloured_msg.push_str(
- &colour_for_base58(id)
- .paint(id)
- .bold()
- .underline()
- .to_string(),
- );
+ coloured_msg
+ .push_str(&self.paint_base58_with_aliases(id).underline().to_string());
last_ref_idx = id_match.end();
}
@@ -132,6 +120,39 @@ impl Log for Logger {
// Paint the remaining text
coloured_msg.push_str(&paint_plain(&msg[last_match..]));
+ coloured_msg
+ }
+}
+
+impl Log for Logger {
+ fn enabled(&self, metadata: &Metadata) -> bool {
+ metadata.level() <= self.level
+ }
+
+ fn log(&self, record: &Record) {
+ if !self.enabled(record.metadata()) {
+ return;
+ }
+
+ let target = record.target();
+ let level = record.level();
+
+ // Helper to paint the "plain" parts of the message based on the target/level.
+ let paint_plain = |s: &str| -> String {
+ match target {
+ "test" => Paint::cyan(s).to_string(),
+ "sim" => Paint::new(s).bold().to_string(),
+ _ => match level {
+ Level::Warn => Paint::yellow(s).underline().to_string(),
+ Level::Error => Paint::red(s).underline().to_string(),
+ _ => Paint::new(s).dim().to_string(),
+ },
+ }
+ };
+
+ let msg = record.args().to_string();
+ let coloured_msg = self.format_message(&msg, &paint_plain);
+
let time = LocalTime::now().as_secs();
let mut writer = self.writer.lock().unwrap_or_else(|e| e.into_inner());
@@ -152,13 +173,22 @@ impl Log for Logger {
let current = std::thread::current();
let target_str = format!("{}:", target);
- let prefix = if let Some(name) = current.name() {
- format!("{} {:<16} {:>10}", time, name, target_str)
+ // We format the timestamp separately to avoid it being colored as an OID.
+ let time_display = paint_plain(&format!("{} ", time));
+
+ let rest_of_prefix = if let Some(name) = current.name() {
+ format!("{:<16} {:>10}", name, target_str)
} else {
- format!("{} {:>10}", time, target_str)
+ format!("{:>10}", target_str)
};
- let _ = writeln!(writer, "{} {}", paint_plain(&prefix), coloured_msg);
+ let coloured_rest = self.format_message(&rest_of_prefix, &paint_plain);
+
+ let _ = writeln!(
+ writer,
+ "{}\t{} {}",
+ time_display, coloured_rest, coloured_msg
+ );
}
}
}
@@ -166,11 +196,6 @@ impl Log for Logger {
fn flush(&self) {}
}
-fn paint_base58(s: &str) -> Paint<&str> {
- let colour = colour_for_base58(s);
- colour.paint(s).bold()
-}
-
/// Deterministically pick a colour for a base58 string.
/// NOTE: If the output contains more than base58 strings than the number of colours below,
/// consider switching to the `paint_oid` system.
@@ -212,9 +237,9 @@ pub fn paint_oid(oid: &str) -> Paint<&str> {
let paint = colour.paint(oid);
// Thresholds: < 40 is very dark, > 215 is very bright.
- if luminance < 40.0 {
+ if luminance < 50.0 {
paint.bg(Color::White)
- } else if luminance > 215.0 {
+ } else if luminance > 205.0 {
paint.bg(Color::Black)
} else {
paint
commit 9385868f9769726c09895f04fb3848ec93487466
Author: Adrian Duke <adrian.duke@gmail.com>
Date: Mon Jan 26 15:40:00 2026 +0000
cli-test: ensure we honour NO_COLOR env var
diff --git a/crates/radicle-cli-test/src/lib.rs b/crates/radicle-cli-test/src/lib.rs
index 4ab17e57c..f04855869 100644
--- a/crates/radicle-cli-test/src/lib.rs
+++ b/crates/radicle-cli-test/src/lib.rs
@@ -211,14 +211,20 @@ impl TestFormula {
use radicle_log::test::Logger;
use radicle_term::Paint;
- Paint::force(true);
-
let level = env_level().unwrap_or(log::Level::Debug);
let logger = Box::new(Logger::new(level));
log::set_boxed_logger(logger).expect("no other logger should have been set already");
log::set_max_level(level.to_level_filter());
+ // `NO_COLOR` is supported by [`radicle-term::Paint`] - however when using `force()` we
+ // override it. Because `cargo nextest` runs tests in a PTY and [`radicle-term::Paint`]
+ // detects that (disabling colours), we need to use `force()` to ensure colours are painted.
+ match env::var("NO_COLOR") {
+ Err(_) => Paint::force(true),
+ Ok(_) => log::info!(target: "test", "NO_COLOR detected, disabling colours."),
+ }
+
for (package, binary) in binaries {
log::debug!(target: "test", "Building binaries for package `{package}`..");
commit 6164b59f2917001c2e256a63ac92c794afdc347a
Author: Adrian Duke <adrian.duke@gmail.com>
Date: Thu Jan 22 17:28:37 2026 +0000
log: Add regex-based highlighting to test logger
Enhance the test logger to highlight:
1. Base58 strings have a deterministic colour.
2. Git references are bold and underlined.
3. Base58 substrings within Git references keep their deterministic
color.
4. Git OIDs (short and long) have their first 6 characters mapped to
a hex colour with light and dark background adjustments.
5. Timestamps are accidentally often times captured by (3.).
6. Logs at the error level are red and underlined (in addition to 1.-4.).
7. Logs at the warning level are yellow and underlined (in addition to 1.-4.).
This might give some false postives, but that's accepted for faster
recognition when skimming test logs.
Co-authored-by: Lorenz Leutgeb <lorenz.leutgeb@radicle.xyz>
diff --git a/crates/radicle-log/src/lib.rs b/crates/radicle-log/src/lib.rs
index 15d444424..ea1340f67 100644
--- a/crates/radicle-log/src/lib.rs
+++ b/crates/radicle-log/src/lib.rs
@@ -5,6 +5,9 @@
#[cfg(feature = "test")]
pub mod test;
+#[cfg(test)]
+mod tests;
+
use std::io::{self, Write};
use chrono::prelude::*;
diff --git a/crates/radicle-log/src/test.rs b/crates/radicle-log/src/test.rs
index f924d5056..b16d91e2d 100644
--- a/crates/radicle-log/src/test.rs
+++ b/crates/radicle-log/src/test.rs
@@ -1,13 +1,55 @@
-use log::*;
+use std::io::{self, Write};
+use std::sync::{Arc, Mutex};
+
+use log::{Level, Log, Metadata, Record, SetLoggerError};
+use regex::Regex;
+
use radicle_localtime::LocalTime;
+use radicle_term::{Color, Paint};
+
+/// A writer that can be shared across threads.
+pub type SharedWriter = Arc<Mutex<dyn Write + Send + Sync>>;
+/// The Test Logger
+/// Logs with Epoch timestamps, "test"/"sim" formatting and regex highlighting
pub struct Logger {
level: Level,
+ pub base58_ref_oid_re: Regex,
+ pub base58_re: Regex,
+ writer: SharedWriter,
}
+/// The Base58 pattern used for Radicle IDs.
+const BASE58_REGEX: &str = r"z[1-9A-HJ-NP-Za-km-z]{10,}";
+
impl Logger {
pub fn new(level: Level) -> Self {
- Self { level }
+ Self {
+ level,
+ // base58: Starts with 'z', base58 chars, 10+ length.
+ // ref: Starts with 'refs/', followed by valid ref chars.
+ // oid: Hex characters, between 6 and 40 length, with word boundaries. (currently
+ // matching timestamps too e.g. `1769096403171`)
+ base58_ref_oid_re: Regex::new(&format!(
+ r"(?P<base58>{BASE58_REGEX})|(?P<ref>refs/[a-zA-Z0-9/*._-]+)|(?P<oid>\b[0-9a-f]{{6,40}}\b)")
+ ).expect("invalid regex"),
+ base58_re: Regex::new(BASE58_REGEX).expect("invalid id regex"),
+ writer: Arc::new(Mutex::new(io::stdout())),
+ }
+ }
+
+ /// Create a new logger with a custom writer.
+ pub fn with_writer(level: Level, writer: SharedWriter) -> Self {
+ let mut logger = Self::new(level);
+ logger.writer = writer;
+ logger
+ }
+
+ pub fn init(self) -> Result<(), SetLoggerError> {
+ let level = self.level;
+ log::set_boxed_logger(Box::new(self))?;
+ log::set_max_level(level.to_level_filter());
+ Ok(())
}
}
@@ -17,49 +59,169 @@ impl Log for Logger {
}
fn log(&self, record: &Record) {
- use colored::Colorize;
+ if !self.enabled(record.metadata()) {
+ return;
+ }
+
+ let target = record.target();
+ let level = record.level();
+
+ // Helper to paint the "plain" parts of the message based on the target/level.
+ let paint_plain = |s: &str| -> String {
+ match target {
+ "test" => Paint::cyan(s).to_string(),
+ "sim" => Paint::new(s).bold().to_string(),
+ _ => match level {
+ Level::Warn => Paint::yellow(s).underline().to_string(),
+ Level::Error => Paint::red(s).underline().to_string(),
+ _ => Paint::new(s).dim().to_string(),
+ },
+ }
+ };
+
+ let msg = record.args().to_string();
+ let mut coloured_msg = String::new();
+ let mut last_match = 0;
+
+ // Iterate over the main composite matches
+ for caps in self.base58_ref_oid_re.captures_iter(&msg) {
+ let whole_match = caps.get(0).unwrap();
+
+ // Paint text BEFORE the match (Plain style)
+ coloured_msg.push_str(&paint_plain(&msg[last_match..whole_match.start()]));
+
+ // Handle the match based on which group captured it
+ if let Some(m) = caps.name("base58") {
+ // Standard Base58 match (not inside a ref)
+ let match_str = m.as_str();
+ coloured_msg.push_str(&paint_base58(match_str).to_string());
+ } else if let Some(m) = caps.name("oid") {
+ // Git OID match (RGB from hex with contrast check)
+ let oid = m.as_str();
+ coloured_msg.push_str(&paint_oid(oid).to_string());
+ } else if let Some(m) = caps.name("ref") {
+ // Git Ref match
+ let ref_str = m.as_str();
+ let mut last_ref_idx = 0;
+
+ // Search for Base58 IDs *inside* this ref string
+ for id_match in self.base58_re.find_iter(ref_str) {
+ let prefix = &ref_str[last_ref_idx..id_match.start()];
+ coloured_msg.push_str(&Paint::new(prefix).bold().underline().to_string());
+
+ // Paint the ID itself (Deterministic Colour + Bold)
+ let id = id_match.as_str();
+ coloured_msg.push_str(
+ &colour_for_base58(id)
+ .paint(id)
+ .bold()
+ .underline()
+ .to_string(),
+ );
+
+ last_ref_idx = id_match.end();
+ }
+
+ let suffix = &ref_str[last_ref_idx..];
+ coloured_msg.push_str(&Paint::new(suffix).bold().underline().to_string());
+ }
+
+ last_match = whole_match.end();
+ }
+
+ // Paint the remaining text
+ coloured_msg.push_str(&paint_plain(&msg[last_match..]));
+
let time = LocalTime::now().as_secs();
+ let mut writer = self.writer.lock().unwrap_or_else(|e| e.into_inner());
- match record.target() {
+ match target {
"test" => {
- println!(
- "{time} {} {}",
- "test:".cyan(),
- record.args().to_string().cyan()
- )
+ let _ = writeln!(writer, "{} {} {}", time, Paint::cyan("test:"), coloured_msg);
}
"sim" => {
- println!(
- "{time} {} {}",
- "sim:".bold(),
- record.args().to_string().bold()
- )
+ let _ = writeln!(
+ writer,
+ "{} {} {}",
+ time,
+ Paint::new("sim:").bold(),
+ coloured_msg
+ );
}
- target => {
- if self.enabled(record.metadata()) {
- let current = std::thread::current();
- let msg = format!("{:>10} {}", format!("{target}:"), record.args());
- let time = LocalTime::now().as_secs();
- let s = if let Some(name) = current.name() {
- format!("{time} {name:<16} {msg}")
- } else {
- format!("{time} {msg}")
- };
- match record.level() {
- log::Level::Warn => {
- println!("{}", s.yellow());
- }
- log::Level::Error => {
- println!("{}", s.red());
- }
- _ => {
- println!("{}", s.dimmed());
- }
- }
- }
+ _ => {
+ let current = std::thread::current();
+ let target_str = format!("{}:", target);
+
+ let prefix = if let Some(name) = current.name() {
+ format!("{} {:<16} {:>10}", time, name, target_str)
+ } else {
+ format!("{} {:>10}", time, target_str)
+ };
+
+ let _ = writeln!(writer, "{} {}", paint_plain(&prefix), coloured_msg);
}
}
}
fn flush(&self) {}
}
+
+fn paint_base58(s: &str) -> Paint<&str> {
+ let colour = colour_for_base58(s);
+ colour.paint(s).bold()
+}
+
+/// Deterministically pick a colour for a base58 string.
+/// NOTE: If the output contains more than base58 strings than the number of colours below,
+/// consider switching to the `paint_oid` system.
+pub fn colour_for_base58(s: &str) -> Color {
+ let mut hash: u32 = 0;
+ for b in s.bytes() {
+ hash = hash.wrapping_add(b as u32);
+ }
+
+ let colours = [
+ Color::Red,
+ Color::Green,
+ Color::Yellow,
+ Color::Blue,
+ Color::Magenta,
+ Color::Cyan,
+ Color::White,
+ ];
+
+ colours[(hash as usize) % colours.len()]
+}
+
+/// Paint an OID using its first 6 characters as an RGB hex code.
+/// Automatically applies a contrasting background if the colour is too bright or too dark.
+pub fn paint_oid(oid: &str) -> Paint<&str> {
+ if oid.len() < 6 {
+ return Paint::yellow(oid);
+ }
+
+ let r = u8::from_str_radix(&oid[0..2], 16).unwrap_or(128);
+ let g = u8::from_str_radix(&oid[2..4], 16).unwrap_or(128);
+ let b = u8::from_str_radix(&oid[4..6], 16).unwrap_or(128);
+
+ // Calculate relative luminance (0.0 to 255.0)
+ // Formula: 0.299*R + 0.587*G + 0.114*B
+ let luminance = (0.299 * r as f32) + (0.587 * g as f32) + (0.114 * b as f32);
+
+ let colour = Color::RGB(r, g, b);
+ let paint = colour.paint(oid);
+
+ // Thresholds: < 40 is very dark, > 215 is very bright.
+ if luminance < 40.0 {
+ paint.bg(Color::White)
+ } else if luminance > 215.0 {
+ paint.bg(Color::Black)
+ } else {
+ paint
+ }
+}
+
+/// Initialize the logger with the given level.
+pub fn init(level: Level) -> Result<(), SetLoggerError> {
+ Logger::new(level).init()
+}
diff --git a/crates/radicle-log/src/tests.rs b/crates/radicle-log/src/tests.rs
new file mode 100644
index 000000000..e6319d621
--- /dev/null
+++ b/crates/radicle-log/src/tests.rs
@@ -0,0 +1,196 @@
+use crate::test::{colour_for_base58, Logger};
+use log::{Level, Log, Record};
+use radicle_term::{Color, Paint};
+use std::io::{self, Write};
+use std::sync::{Arc, Mutex};
+
+#[derive(Clone)]
+struct TestWriter {
+ data: Arc<Mutex<Vec<u8>>>,
+}
+
+impl Write for TestWriter {
+ fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
+ self.data.lock().unwrap().write(buf)
+ }
+
+ fn flush(&mut self) -> io::Result<()> {
+ Ok(())
+ }
+}
+
+#[test]
+fn test_colour_for() {
+ let s = "z6Mkt67GdsW7715MEfRuP4pSZxJRJh6kj6Y48WRqVv4N1tRk";
+ let color = colour_for_base58(s);
+ assert_eq!(color, Color::Red);
+
+ let s = "z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi";
+ let color = colour_for_base58(s);
+ assert_eq!(color, Color::Blue);
+}
+
+#[test]
+fn test_base58_ref_oid_regex_matching() {
+ let logger = Logger::new(Level::Debug);
+
+ let cases = vec![
+ (
+ "fetched rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji from z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi",
+ vec![
+ "z42hL2jL4XNk6K8oHQaSWfMgCL7ji",
+ "z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi",
+ ],
+ ),
+ (
+ "Setting ref: refs/rad/id -> 3143236b2e40338f5574ec04e935a5ab80a6868a",
+ vec!["refs/rad/id", "3143236b2e40338f5574ec04e935a5ab80a6868a"],
+ ),
+ (
+ "Syncing z6Mkt67GdsW7715MEfRuP4pSZxJRJh6kj6Y48WRqVv4N1tRk with z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi",
+ vec![
+ "z6Mkt67GdsW7715MEfRuP4pSZxJRJh6kj6Y48WRqVv4N1tRk",
+ "z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi",
+ ],
+ ),
+ (
+ "Multiple refs: refs/heads/master and refs/tags/v1.0.0",
+ vec!["refs/heads/master", "refs/tags/v1.0.0"],
+ ),
+ (
+ "Mixed content: z6Mkt67GdsW7715MEfRuP4pSZxJRJh6kj6Y48WRqVv4N1tRk and refs/remotes/origin/main",
+ vec![
+ "z6Mkt67GdsW7715MEfRuP4pSZxJRJh6kj6Y48WRqVv4N1tRk",
+ "refs/remotes/origin/main",
+ ],
+ ),
+ (
+ "No matches here",
+ vec![],
+ ),
+ (
+ "Short z123 is not matched",
+ vec![],
+ ),
+ (
+ "Timestamp 1769096403171 is matched by regex but filtered in log",
+ vec!["1769096403171"],
+ ),
+ ];
+
+ for (msg, expected) in cases {
+ let matches: Vec<_> = logger
+ .base58_ref_oid_re
+ .find_iter(msg)
+ .map(|m| m.as_str())
+ .collect();
+ assert_eq!(matches, expected, "Failed matching for input: '{}'", msg);
+ }
+}
+
+#[test]
+fn test_log_output() {
+ Paint::force(true);
+
+ let cases = vec![
+ (
+ "Hello z6Mkt67GdsW7715MEfRuP4pSZxJRJh6kj6Y48WRqVv4N1tRk world",
+ "test",
+ vec![
+ "\x1b[36mtest:\x1b[0m", // Target
+ "\x1b[36mHello \x1b[0m", // Plain text (Cyan for test)
+ "\x1b[1;31mz6Mkt67GdsW7715MEfRuP4pSZxJRJh6kj6Y48WRqVv4N1tRk\x1b[0m", // ID (Red + Bold)
+ "\x1b[36m world\x1b[0m", // Plain text (Cyan)
+ ],
+ ),
+ (
+ "Syncing z6Mkt67GdsW7715MEfRuP4pSZxJRJh6kj6Y48WRqVv4N1tRk with z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi",
+ "test",
+ vec![
+ "\x1b[36mtest:\x1b[0m",
+ "\x1b[36mSyncing \x1b[0m",
+ "\x1b[1;31mz6Mkt67GdsW7715MEfRuP4pSZxJRJh6kj6Y48WRqVv4N1tRk\x1b[0m", // Red + Bold
+ "\x1b[36m with \x1b[0m",
+ "\x1b[1;34mz6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi\x1b[0m", // Blue + Bold
+ ],
+ ),
+ (
+ "Updated refs/heads/master",
+ "sim",
+ vec![
+ "\x1b[1msim:\x1b[0m", // Target (Bold)
+ "\x1b[1mUpdated \x1b[0m", // Plain text (Bold for sim)
+ "\x1b[1;4mrefs/heads/master\x1b[0m", // Ref (Bold + Underline)
+ ],
+ ),
+ (
+ "No matches here",
+ "test",
+ vec![
+ "\x1b[36mtest:\x1b[0m",
+ "\x1b[36mNo matches here\x1b[0m",
+ ],
+ ),
+ (
+ "Timestamp 1769096403171 is matched as OID and given RGB colour",
+ "test",
+ vec![
+ "\x1b[36mtest:\x1b[0m",
+ "\x1b[36mTimestamp \x1b[0m",
+ "\x1b[38;2;23;105;9m1769096403171\x1b[0m",
+ "\x1b[36m is matched as OID and given RGB colour\x1b[0m",
+ ]
+ ),
+ (
+ "Commit 3143236b2e40338f5574ec04e935a5ab80a6868a",
+ "test",
+ vec![
+ "\x1b[36mtest:\x1b[0m",
+ "\x1b[36mCommit \x1b[0m",
+ // OID painting: 314323 -> R=49, G=67, B=35.
+ // No background.
+ "\x1b[38;2;49;67;35m3143236b2e40338f5574ec04e935a5ab80a6868a\x1b[0m",
+ ]
+ ),
+ (
+ "Ref with ID refs/namespaces/z6Mkux1aUQD2voWWukVb5nNUR7thrHveQG4pDQua8nVhib7Z/refs/rad/sigrefs",
+ "test",
+ vec![
+ "\x1b[36mRef with ID \x1b[0m",
+ "\x1b[1;4mrefs/namespaces/\x1b[0m", // Prefix (Bold + Underline)
+ // ID: z6Mkux...
+ // We check for the ID string being present.
+ "z6Mkux1aUQD2voWWukVb5nNUR7thrHveQG4pDQua8nVhib7Z",
+ "\x1b[1;4m/refs/rad/sigrefs\x1b[0m", // Suffix (Bold + Underline)
+ ]
+ )
+ ];
+
+ for (msg, target, expected_parts) in cases {
+ let data = Arc::new(Mutex::new(Vec::new()));
+ let writer = TestWriter { data: data.clone() };
+ let logger = Logger::with_writer(Level::Debug, Arc::new(Mutex::new(writer)));
+
+ let args = format_args!("{}", msg);
+ let record = Record::builder()
+ .args(args)
+ .level(Level::Info)
+ .target(target)
+ .build();
+
+ logger.log(&record);
+
+ let output = String::from_utf8(data.lock().unwrap().clone()).unwrap();
+
+ for part in expected_parts {
+ assert!(
+ output.contains(part),
+ "Output did not contain expected part: {:?}\nFull output: {:?}",
+ part,
+ output
+ );
+ }
+ }
+
+ Paint::force(false);
+}
commit e72c4cff0c10274f68d91fb5be9cc457848b937e
Author: Adrian Duke <adrian.duke@gmail.com>
Date: Thu Jan 22 17:28:37 2026 +0000
log: New crate for logger implementations
Move logging-related module `radicle::logging` into its own crate.
While at it, remove the "logger" feature flag from `radicle`.
Co-authored-by: Lorenz Leutgeb <lorenz.leutgeb@radicle.xyz>
diff --git a/Cargo.lock b/Cargo.lock
index ebe36335f..cdab9fab6 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2806,8 +2806,6 @@ dependencies = [
"amplify",
"base64 0.21.7",
"bytesize",
- "chrono",
- "colored",
"crossbeam-channel",
"cyphernet",
"dunce",
@@ -2864,6 +2862,7 @@ dependencies = [
"radicle-crypto",
"radicle-git-ref-format",
"radicle-localtime",
+ "radicle-log",
"radicle-node",
"radicle-surf",
"radicle-term",
@@ -2899,6 +2898,8 @@ dependencies = [
"log",
"pretty_assertions",
"radicle",
+ "radicle-log",
+ "radicle-term",
"shlex",
"snapbox",
"thiserror 2.0.17",
@@ -3032,6 +3033,18 @@ dependencies = [
"serde_json",
]
+[[package]]
+name = "radicle-log"
+version = "0.1.0"
+dependencies = [
+ "chrono",
+ "colored",
+ "log",
+ "radicle-localtime",
+ "radicle-term",
+ "regex",
+]
+
[[package]]
name = "radicle-node"
version = "0.16.0"
@@ -3054,6 +3067,7 @@ dependencies = [
"radicle-crypto",
"radicle-fetch",
"radicle-localtime",
+ "radicle-log",
"radicle-protocol",
"radicle-signals",
"radicle-systemd",
@@ -3117,6 +3131,7 @@ dependencies = [
"radicle",
"radicle-cli",
"radicle-crypto",
+ "radicle-log",
"thiserror 2.0.17",
]
diff --git a/Cargo.toml b/Cargo.toml
index e4a84362b..a3b1a8ad0 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -52,6 +52,7 @@ radicle-fetch = { version = "0.16", path = "crates/radicle-fetch" }
radicle-git-metadata = { version = "0.1.0", path = "crates/radicle-git-metadata", default-features = false }
radicle-git-ref-format = { version = "0.1.0", path = "crates/radicle-git-ref-format", default-features = false }
radicle-localtime = { version = "0.1", path = "crates/radicle-localtime" }
+radicle-log = { version = "0.1", path = "crates/radicle-log" }
radicle-node = { version = "0.16", path = "crates/radicle-node" }
radicle-oid = { version = "0.1.0", path = "crates/radicle-oid", default-features = false }
radicle-protocol = { version = "0.4", path = "crates/radicle-protocol" }
diff --git a/crates/radicle-cli-test/Cargo.toml b/crates/radicle-cli-test/Cargo.toml
index 60c15811c..0a3e19ad0 100644
--- a/crates/radicle-cli-test/Cargo.toml
+++ b/crates/radicle-cli-test/Cargo.toml
@@ -15,7 +15,10 @@ rust-version.workspace = true
escargot = "0.5.7"
log = { workspace = true, features = ["std"] }
pretty_assertions = { workspace = true }
-radicle = { workspace = true, features = ["logger", "test"]}
+radicle = { workspace = true, features = ["test"] }
+radicle-log = { workspace = true, features = ["test"] }
+radicle-term = { workspace = true }
shlex = { workspace = true }
snapbox = { workspace = true }
-thiserror = { workspace = true, default-features = true }
\ No newline at end of file
+thiserror = { workspace = true, default-features = true }
+
diff --git a/crates/radicle-cli-test/src/lib.rs b/crates/radicle-cli-test/src/lib.rs
index fafe944bb..4ab17e57c 100644
--- a/crates/radicle-cli-test/src/lib.rs
+++ b/crates/radicle-cli-test/src/lib.rs
@@ -207,8 +207,11 @@ impl TestFormula {
// We don't need to re-build every time the `build` function is called. Once is enough.
BUILD.call_once(|| {
use escargot::format::Message;
- use radicle::logger::env_level;
- use radicle::logger::test::Logger;
+ use radicle_log::env_level;
+ use radicle_log::test::Logger;
+ use radicle_term::Paint;
+
+ Paint::force(true);
let level = env_level().unwrap_or(log::Level::Debug);
let logger = Box::new(Logger::new(level));
diff --git a/crates/radicle-cli/Cargo.toml b/crates/radicle-cli/Cargo.toml
index e147155d2..499b86bce 100644
--- a/crates/radicle-cli/Cargo.toml
+++ b/crates/radicle-cli/Cargo.toml
@@ -23,13 +23,14 @@ human-panic.workspace = true
itertools.workspace = true
log = { workspace = true, features = ["std"] }
nonempty = { workspace = true }
-radicle = { workspace = true, features = ["logger", "schemars"] }
+radicle = { workspace = true, features = ["schemars"] }
radicle-cob = { workspace = true }
radicle-crypto = { workspace = true }
radicle-git-ref-format = { workspace = true, features = ["macro"] }
radicle-localtime = { workspace = true }
radicle-surf = { workspace = true }
radicle-term = { workspace = true }
+radicle-log = { workspace = true }
schemars = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
@@ -59,6 +60,7 @@ radicle = { workspace = true, features = ["test"] }
radicle-cli-test = { workspace = true }
radicle-localtime = { workspace = true }
radicle-node = { workspace = true, features = ["test"] }
+radicle-log = { workspace = true, features = ["test"] }
[lints]
workspace = true
diff --git a/crates/radicle-cli/src/main.rs b/crates/radicle-cli/src/main.rs
index 3aa59e471..31995d489 100644
--- a/crates/radicle-cli/src/main.rs
+++ b/crates/radicle-cli/src/main.rs
@@ -117,8 +117,8 @@ fn main() {
.homepage(env!("CARGO_PKG_HOMEPAGE"))
.support("Open a support request at https://radicle.zulipchat.com/ or file an issue via Radicle itself, or e-mail to team@radicle.xyz"));
- if let Some(lvl) = radicle::logger::env_level() {
- let logger = Box::new(radicle::logger::Logger::new(lvl));
+ if let Some(lvl) = radicle_log::env_level() {
+ let logger = Box::new(radicle_log::Logger::new(lvl));
log::set_boxed_logger(logger).expect("no other logger should have been set already");
log::set_max_level(lvl.to_level_filter());
}
diff --git a/crates/radicle-cli/tests/commands.rs b/crates/radicle-cli/tests/commands.rs
index 73f0638a7..8c5610edb 100644
--- a/crates/radicle-cli/tests/commands.rs
+++ b/crates/radicle-cli/tests/commands.rs
@@ -22,7 +22,7 @@ use radicle::test::fixtures;
use radicle_localtime::LocalTime;
#[allow(unused_imports)]
-use radicle_node::test::logger;
+use radicle_log::test::Logger;
use radicle_node::test::node::Node;
use radicle_node::PROTOCOL_VERSION;
diff --git a/crates/radicle-log/Cargo.toml b/crates/radicle-log/Cargo.toml
new file mode 100644
index 000000000..353da011e
--- /dev/null
+++ b/crates/radicle-log/Cargo.toml
@@ -0,0 +1,20 @@
+[package]
+name = "radicle-log"
+description = "Radicle loggers"
+homepage.workspace = true
+repository.workspace = true
+license.workspace = true
+version = "0.1.0"
+edition.workspace = true
+rust-version.workspace = true
+
+[features]
+test = []
+
+[dependencies]
+chrono = { workspace = true, features = ["clock"] }
+colored = { workspace = true }
+radicle-localtime = { workspace = true, features = ["serde"] }
+log = { version = "0.4", features = ["std"] }
+radicle-term = { workspace = true }
+regex = "1"
diff --git a/crates/radicle/src/logger.rs b/crates/radicle-log/src/lib.rs
similarity index 98%
rename from crates/radicle/src/logger.rs
rename to crates/radicle-log/src/lib.rs
index 7e74696d2..15d444424 100644
--- a/crates/radicle/src/logger.rs
+++ b/crates/radicle-log/src/lib.rs
@@ -5,8 +5,7 @@
#[cfg(feature = "test")]
pub mod test;
-use std::io;
-use std::io::Write;
+use std::io::{self, Write};
use chrono::prelude::*;
use colored::*;
diff --git a/crates/radicle/src/logger/test.rs b/crates/radicle-log/src/test.rs
similarity index 98%
rename from crates/radicle/src/logger/test.rs
rename to crates/radicle-log/src/test.rs
index fc8d81b20..f924d5056 100644
--- a/crates/radicle/src/logger/test.rs
+++ b/crates/radicle-log/src/test.rs
@@ -1,5 +1,5 @@
-use localtime::LocalTime;
use log::*;
+use radicle_localtime::LocalTime;
pub struct Logger {
level: Level,
diff --git a/crates/radicle-node/Cargo.toml b/crates/radicle-node/Cargo.toml
index 1ff3e2132..ae3593872 100644
--- a/crates/radicle-node/Cargo.toml
+++ b/crates/radicle-node/Cargo.toml
@@ -28,11 +28,12 @@ log = { workspace = true, features = ["kv", "std"] }
mio = { version = "1", features = ["net", "os-poll"] }
nonempty = { workspace = true, features = ["serialize"] }
qcheck = { workspace = true, optional = true }
-radicle = { workspace = true, features = ["logger"] }
+radicle = { workspace = true }
radicle-fetch = { workspace = true }
radicle-localtime = { workspace = true }
radicle-protocol = { workspace = true }
radicle-signals = { workspace = true }
+radicle-log = { workspace = true }
sqlite = { workspace = true, features = ["bundled"] }
scrypt = { version = "0.11.0", default-features = false }
serde = { workspace = true, features = ["derive"] }
@@ -54,6 +55,7 @@ mio = { version = "1", features = ["os-ext"] }
qcheck = { workspace = true }
qcheck-macros = { workspace = true }
radicle = { workspace = true, features = ["test"] }
+radicle-log = { workspace = true, features = ["test"] }
radicle-protocol = { workspace = true, features = ["test"] }
radicle-crypto = { workspace = true, features = ["test", "cyphernet"] }
snapbox = { workspace = true }
diff --git a/crates/radicle-node/src/main.rs b/crates/radicle-node/src/main.rs
index ddc3edf0d..476c2bb2a 100644
--- a/crates/radicle-node/src/main.rs
+++ b/crates/radicle-node/src/main.rs
@@ -378,7 +378,7 @@ fn initialize_logging(options: &LogOptions) -> Result<(), Box<dyn std::error::Er
const SYSLOG_IDENTIFIER: &str = "radicle-node";
logger::<&str, &str, _>(SYSLOG_IDENTIFIER.to_string(), []).map_err(Box::new)?
}
- Logger::Radicle => Box::new(radicle::logger::Logger::new(level)),
+ Logger::Radicle => Box::new(radicle_log::Logger::new(level)),
}
};
diff --git a/crates/radicle-node/src/test.rs b/crates/radicle-node/src/test.rs
index 87500a360..7a828f570 100644
--- a/crates/radicle-node/src/test.rs
+++ b/crates/radicle-node/src/test.rs
@@ -5,5 +5,5 @@ pub mod peer;
pub mod simulator;
pub use radicle::assert_matches;
-pub use radicle::logger::test as logger;
pub use radicle::test::*;
+pub use radicle_log::test as logger;
diff --git a/crates/radicle-protocol/Cargo.toml b/crates/radicle-protocol/Cargo.toml
index 40cc183cb..e3b9c0ec3 100644
--- a/crates/radicle-protocol/Cargo.toml
+++ b/crates/radicle-protocol/Cargo.toml
@@ -20,7 +20,7 @@ fastrand = { workspace = true }
log = { workspace = true, features = ["std"] }
nonempty = { workspace = true, features = ["serialize"] }
qcheck = { workspace = true, optional = true }
-radicle = { workspace = true, features = ["logger"] }
+radicle = { workspace = true }
radicle-fetch = { workspace = true }
radicle-localtime = { workspace = true }
sqlite = { workspace = true, features = ["bundled"] }
diff --git a/crates/radicle-remote-helper/Cargo.toml b/crates/radicle-remote-helper/Cargo.toml
index 411c005fb..4131ef713 100644
--- a/crates/radicle-remote-helper/Cargo.toml
+++ b/crates/radicle-remote-helper/Cargo.toml
@@ -19,4 +19,6 @@ log = { workspace = true }
radicle = { workspace = true }
radicle-cli = { workspace = true }
radicle-crypto = { workspace = true }
-thiserror = { workspace = true, default-features = true }
\ No newline at end of file
+radicle-log = { workspace = true }
+thiserror = { workspace = true, default-features = true }
+
diff --git a/crates/radicle-remote-helper/src/main.rs b/crates/radicle-remote-helper/src/main.rs
index 525b5255e..7389d7b1e 100644
--- a/crates/radicle-remote-helper/src/main.rs
+++ b/crates/radicle-remote-helper/src/main.rs
@@ -45,8 +45,8 @@ pub const VERSION: Version = Version {
fn main() {
let mut args = env::args();
- if let Some(lvl) = radicle::logger::env_level() {
- let logger = radicle::logger::StderrLogger::new(lvl);
+ if let Some(lvl) = radicle_log::env_level() {
+ let logger = radicle_log::StderrLogger::new(lvl);
log::set_boxed_logger(Box::new(logger))
.expect("no other logger should have been set already");
log::set_max_level(lvl.to_level_filter());
diff --git a/crates/radicle/Cargo.toml b/crates/radicle/Cargo.toml
index d7dab0072..07d0aece1 100644
--- a/crates/radicle/Cargo.toml
+++ b/crates/radicle/Cargo.toml
@@ -12,7 +12,6 @@ rust-version.workspace = true
[features]
default = []
test = ["tempfile", "qcheck", "radicle-crypto/test", "radicle-cob/test"]
-logger = ["colored", "chrono"]
qcheck = [
"radicle-core/qcheck",
"dep:qcheck"
@@ -28,8 +27,6 @@ schemars = [
amplify = { workspace = true, features = ["std"] }
base64 = "0.21.3"
bytesize = { version = "2", features = ["serde"] }
-chrono = { workspace = true, features = ["clock"], optional = true }
-colored = { workspace = true, optional = true }
crossbeam-channel = { workspace = true }
cyphernet = { workspace = true, features = ["tor", "dns", "p2p-ed25519"] }
dunce = { workspace = true }
diff --git a/crates/radicle/src/lib.rs b/crates/radicle/src/lib.rs
index b6698be4c..96f677382 100644
--- a/crates/radicle/src/lib.rs
+++ b/crates/radicle/src/lib.rs
@@ -19,8 +19,6 @@ pub mod explorer;
pub mod git;
pub mod identity;
pub mod io;
-#[cfg(feature = "logger")]
-pub mod logger;
pub mod node;
pub mod profile;
pub mod rad;
Exit code: 0
shell: 'export RUSTDOCFLAGS=''-D warnings'' cargo --version rustc --version cargo fmt --check cargo clippy --all-targets --workspace -- --deny warnings cargo build --all-targets --workspace cargo doc --workspace --no-deps --all-features cargo test --workspace --no-fail-fast '
Commands:
$ podman run --name 63dc03da-c32e-449f-9e7d-69145d0024b9 -v /opt/radcis/ci.rad.levitte.org/cci/state/63dc03da-c32e-449f-9e7d-69145d0024b9/s:/63dc03da-c32e-449f-9e7d-69145d0024b9/s:ro -v /opt/radcis/ci.rad.levitte.org/cci/state/63dc03da-c32e-449f-9e7d-69145d0024b9/w:/63dc03da-c32e-449f-9e7d-69145d0024b9/w -w /63dc03da-c32e-449f-9e7d-69145d0024b9/w -v /opt/radcis/ci.rad.levitte.org/.radicle:/${id}/.radicle:ro -e RAD_HOME=/${id}/.radicle rust:trixie bash /63dc03da-c32e-449f-9e7d-69145d0024b9/s/script.sh
+ export 'RUSTDOCFLAGS=-D warnings'
+ RUSTDOCFLAGS='-D warnings'
+ cargo --version
info: syncing channel updates for '1.90-x86_64-unknown-linux-gnu'
info: latest update on 2025-09-18, rust version 1.90.0 (1159e78c4 2025-09-14)
info: downloading component 'cargo'
info: downloading component 'clippy'
info: downloading component 'rust-docs'
info: downloading component 'rust-src'
info: downloading component 'rust-std'
info: downloading component 'rustc'
info: downloading component 'rustfmt'
info: installing component 'cargo'
info: installing component 'clippy'
info: installing component 'rust-docs'
info: installing component 'rust-src'
info: installing component 'rust-std'
info: installing component 'rustc'
info: installing component 'rustfmt'
cargo 1.90.0 (840b83a10 2025-07-30)
+ rustc --version
rustc 1.90.0 (1159e78c4 2025-09-14)
+ cargo fmt --check
+ cargo clippy --all-targets --workspace -- --deny warnings
Updating crates.io index
Downloading crates ...
Downloaded anstyle v1.0.11
Downloaded amplify_num v0.5.2
Downloaded amplify_syn v2.0.1
Downloaded fxhash v0.2.1
Downloaded addr2line v0.24.2
Downloaded icu_collections v1.5.0
Downloaded anstream v0.6.13
Downloaded aes v0.8.4
Downloaded ff v0.13.0
Downloaded aes-gcm v0.10.3
Downloaded adler2 v2.0.0
Downloaded gix-refspec v0.31.0
Downloaded gix-protocol v0.51.0
Downloaded gix-features v0.43.1
Downloaded data-encoding-macro-internal v0.1.12
Downloaded cbc v0.1.2
Downloaded gix-packetline v0.19.1
Downloaded gix-validate v0.10.0
Downloaded icu_provider_macros v1.5.0
Downloaded human-panic v2.0.3
Downloaded itoa v1.0.11
Downloaded icu_normalizer v1.5.0
Downloaded hash32 v0.3.1
Downloaded maybe-async v0.2.10
Downloaded lexopt v0.3.0
Downloaded gix-sec v0.12.0
Downloaded pin-project-lite v0.2.16
Downloaded inout v0.1.3
Downloaded litemap v0.7.5
Downloaded keccak v0.1.5
Downloaded proc-macro2 v1.0.101
Downloaded fast-glob v0.3.3
Downloaded multibase v0.9.1
Downloaded gix-tempfile v18.0.0
Downloaded icu_provider v1.5.0
Downloaded lazy_static v1.5.0
Downloaded escargot v0.5.10
Downloaded lock_api v0.4.14
Downloaded matchers v0.1.0
Downloaded erased-serde v0.4.6
Downloaded log v0.4.27
Downloaded gix-ref v0.53.1
Downloaded serde_spanned v1.0.0
Downloaded siphasher v1.0.1
Downloaded emojis v0.6.4
Downloaded memmap2 v0.9.8
Downloaded outref v0.5.2
Downloaded mio v1.0.4
Downloaded hashbrown v0.14.3
Downloaded tracing-subscriber v0.3.19
Downloaded thiserror v2.0.17
Downloaded signal-hook-mio v0.2.4
Downloaded rusty-fork v0.3.1
Downloaded strsim v0.11.1
Downloaded sqlite v0.32.0
Downloaded sval_json v2.14.1
Downloaded percent-encoding v2.3.1
Downloaded value-bag-sval2 v1.11.1
Downloaded tree-sitter-highlight v0.24.4
Downloaded sval_nested v2.14.1
Downloaded ryu v1.0.17
Downloaded unicode-display-width v0.3.0
Downloaded rand_chacha v0.3.1
Downloaded prodash v30.0.1
Downloaded unicode-width v0.1.11
Downloaded tree-sitter-css v0.23.1
Downloaded tracing-log v0.2.0
Downloaded rand v0.8.5
Downloaded thiserror-impl v2.0.17
Downloaded same-file v1.0.6
Downloaded rfc6979 v0.4.0
Downloaded serde v1.0.219
Downloaded utf8parse v0.2.1
Downloaded serde_derive_internals v0.29.1
Downloaded tracing-core v0.1.34
Downloaded value-bag-serde1 v1.11.1
Downloaded regex-automata v0.1.10
Downloaded version_check v0.9.4
Downloaded signal-hook v0.3.18
Downloaded universal-hash v0.5.1
Downloaded socks5-client v0.4.1
Downloaded uuid-simd v0.8.0
Downloaded snapbox-macros v0.3.8
Downloaded signals_receipts v0.2.0
Downloaded zerofrom-derive v0.1.6
Downloaded rustix v1.0.7
Downloaded zerovec-derive v0.10.3
Downloaded value-bag v1.11.1
Downloaded uuid v1.16.0
Downloaded tree-sitter-toml-ng v0.6.0
Downloaded tree-sitter-go v0.23.4
Downloaded typenum v1.17.0
Downloaded tinyvec v1.6.0
Downloaded toml v0.9.5
Downloaded proptest v1.9.0
Downloaded zerovec v0.10.4
Downloaded url v2.5.4
Downloaded zerocopy v0.7.35
Downloaded unicode-segmentation v1.11.0
Downloaded winnow v0.7.13
Downloaded zlib-rs v0.5.2
Downloaded tree-sitter-python v0.23.4
Downloaded vcpkg v0.2.15
Downloaded tree-sitter-rust v0.23.2
Downloaded syn v2.0.106
Downloaded unicode-width v0.2.1
Downloaded tree-sitter-c v0.23.2
Downloaded tree-sitter v0.24.4
Downloaded syn v1.0.109
Downloaded object v0.36.7
Downloaded unicode-normalization v0.1.23
Downloaded tree-sitter-md v0.3.2
Downloaded regex-syntax v0.6.29
Downloaded tree-sitter-ruby v0.23.1
Downloaded ssh-key v0.6.6
Downloaded rustix v0.38.34
Downloaded tree-sitter-bash v0.23.3
Downloaded tar v0.4.40
Downloaded regex-automata v0.4.9
Downloaded serde_json v1.0.140
Downloaded jiff v0.2.15
Downloaded libc v0.2.174
Downloaded p384 v0.13.0
Downloaded socket2 v0.5.7
Downloaded toml_writer v1.0.2
Downloaded thread_local v1.1.9
Downloaded icu_properties_data v1.5.1
Downloaded typeid v1.0.3
Downloaded stable_deref_trait v1.2.0
Downloaded similar v2.5.0
Downloaded sha3 v0.10.8
Downloaded utf16_iter v1.0.5
Downloaded sha1-checked v0.10.0
Downloaded unarray v0.1.4
Downloaded tree-sitter-json v0.24.8
Downloaded tree-sitter-typescript v0.23.2
Downloaded tokio v1.47.1
Downloaded toml_datetime v0.7.0
Downloaded tinystr v0.7.6
Downloaded timeago v0.4.2
Downloaded thiserror v1.0.69
Downloaded test-log-macros v0.2.18
Downloaded tempfile v3.23.0
Downloaded systemd-journal-logger v2.2.2
Downloaded synstructure v0.13.1
Downloaded sval_serde v2.14.1
Downloaded sval_ref v2.14.1
Downloaded sval_buffer v2.14.1
Downloaded sval v2.14.1
Downloaded subtle v2.5.0
Downloaded streaming-iterator v0.1.9
Downloaded ssh-encoding v0.2.0
Downloaded spin v0.9.8
Downloaded signature v1.6.4
Downloaded serde_derive v1.0.219
Downloaded portable-atomic v1.11.0
Downloaded zeroize v1.7.0
Downloaded yoke v0.7.5
Downloaded yansi v0.5.1
Downloaded linux-raw-sys v0.4.13
Downloaded writeable v0.5.5
Downloaded write16 v1.0.0
Downloaded walkdir v2.5.0
Downloaded vsimd v0.8.0
Downloaded tree-sitter-language v0.1.2
Downloaded test-log v0.2.18
Downloaded sval_fmt v2.14.1
Downloaded sval_dynamic v2.14.1
Downloaded ssh-cipher v0.2.0
Downloaded sqlite3-sys v0.15.2
Downloaded sha1 v0.10.6
Downloaded serde_fmt v1.0.3
Downloaded radicle-surf v0.26.0
Downloaded zerofrom v0.1.6
Downloaded yoke-derive v0.7.5
Downloaded xattr v1.3.1
Downloaded wait-timeout v0.2.1
Downloaded libgit2-sys v0.17.0+1.8.1
Downloaded tracing v0.1.41
Downloaded regex-syntax v0.8.5
Downloaded schemars v1.0.4
Downloaded unicode-ident v1.0.12
Downloaded spki v0.7.3
Downloaded signal-hook-registry v1.4.5
Downloaded siphasher v0.3.11
Downloaded signature v2.2.0
Downloaded utf8_iter v1.0.4
Downloaded num-bigint-dig v0.8.4
Downloaded sec1 v0.7.3
Downloaded rand v0.9.2
Downloaded itertools v0.14.0
Downloaded unit-prefix v0.5.1
Downloaded scrypt v0.11.0
Downloaded schemars_derive v1.0.4
Downloaded rsa v0.9.6
Downloaded regex v1.11.1
Downloaded qcheck v1.0.0
Downloaded idna v1.0.3
Downloaded pretty_assertions v1.4.0
Downloaded num-bigint v0.4.6
Downloaded sharded-slab v0.1.7
Downloaded linux-raw-sys v0.9.4
Downloaded referencing v0.30.0
Downloaded proc-macro-error2 v2.0.1
Downloaded polyval v0.6.2
Downloaded jsonschema v0.30.0
Downloaded tree-sitter-html v0.23.2
Downloaded structured-logger v1.0.4
Downloaded snapbox v0.4.17
Downloaded thiserror-impl v1.0.69
Downloaded smallvec v1.15.1
Downloaded sha2 v0.10.8
Downloaded quick-error v1.2.3
Downloaded qcheck-macros v1.0.0
Downloaded proc-macro-error-attr2 v2.0.0
Downloaded phf v0.11.3
Downloaded num-traits v0.2.19
Downloaded poly1305 v0.8.0
Downloaded phf_shared v0.11.3
Downloaded num-rational v0.4.2
Downloaded pkg-config v0.3.30
Downloaded fraction v0.15.3
Downloaded tinyvec_macros v0.1.1
Downloaded p256 v0.13.2
Downloaded pbkdf2 v0.12.2
Downloaded shlex v1.3.0
Downloaded sqlite3-src v0.5.1
Downloaded p521 v0.13.3
Downloaded num-integer v0.1.46
Downloaded libm v0.2.8
Downloaded rand_chacha v0.9.0
Downloaded parking_lot_core v0.9.12
Downloaded overload v0.1.1
Downloaded serde-untagged v0.1.7
Downloaded sem_safe v0.2.0
Downloaded rustc-demangle v0.1.26
Downloaded num-complex v0.4.6
Downloaded mio v0.8.11
Downloaded num-iter v0.1.45
Downloaded heapless v0.8.0
Downloaded hashbrown v0.15.5
Downloaded flate2 v1.1.1
Downloaded shell-words v1.1.0
Downloaded scopeguard v1.2.0
Downloaded salsa20 v0.10.2
Downloaded rand_core v0.9.3
Downloaded num-cmp v0.1.0
Downloaded inquire v0.7.5
Downloaded indicatif v0.18.0
Downloaded icu_locid v1.5.0
Downloaded ref-cast-impl v1.0.24
Downloaded ref-cast v1.0.24
Downloaded rand_core v0.6.4
Downloaded radicle-std-ext v0.2.0
Downloaded quote v1.0.41
Downloaded primeorder v0.13.6
Downloaded ppv-lite86 v0.2.17
Downloaded pkcs1 v0.7.5
Downloaded pem-rfc7468 v0.7.0
Downloaded paste v1.0.15
Downloaded parking_lot v0.12.5
Downloaded os_info v3.12.0
Downloaded once_cell v1.21.3
Downloaded indexmap v2.2.6
Downloaded gix-path v0.10.20
Downloaded gix-object v0.50.2
Downloaded rand_xorshift v0.4.0
Downloaded radicle-git-ext v0.11.0
Downloaded pkcs8 v0.10.2
Downloaded opaque-debug v0.3.1
Downloaded num v0.4.3
Downloaded nu-ansi-term v0.46.0
Downloaded gix-traverse v0.47.0
Downloaded gix-odb v0.70.0
Downloaded getrandom v0.3.3
Downloaded getrandom v0.2.15
Downloaded gix-transport v0.48.0
Downloaded miniz_oxide v0.8.8
Downloaded litrs v0.4.1
Downloaded icu_locid_transform v1.5.0
Downloaded normalize-line-endings v0.3.0
Downloaded nonempty v0.9.0
Downloaded noise-framework v0.4.0
Downloaded newline-converter v0.3.0
Downloaded memchr v2.7.2
Downloaded clap_builder v4.5.44
Downloaded hmac v0.12.1
Downloaded gix-shallow v0.5.0
Downloaded aho-corasick v1.1.3
Downloaded chacha20poly1305 v0.10.1
Downloaded libz-rs-sys v0.5.2
Downloaded icu_normalizer_data v1.5.1
Downloaded gix-fs v0.16.1
Downloaded gix-diff v0.53.0
Downloaded der v0.7.9
Downloaded bit-vec v0.8.0
Downloaded base64 v0.21.7
Downloaded gix-revwalk v0.21.0
Downloaded gix-prompt v0.11.1
Downloaded gix-chunk v0.4.11
Downloaded libz-sys v1.1.16
Downloaded console v0.16.0
Downloaded cc v1.2.2
Downloaded anyhow v1.0.82
Downloaded digest v0.10.7
Downloaded derive_more-impl v2.0.1
Downloaded base64 v0.22.1
Downloaded backtrace v0.3.75
Downloaded icu_properties v1.5.1
Downloaded icu_locid_transform_data v1.5.1
Downloaded env_filter v0.1.3
Downloaded crc32fast v1.5.0
Downloaded colored v2.1.0
Downloaded bcrypt-pbkdf v0.10.0
Downloaded base64ct v1.6.0
Downloaded amplify_derive v4.0.0
Downloaded either v1.11.0
Downloaded ctr v0.9.2
Downloaded clap v4.5.44
Downloaded anstyle-parse v0.2.3
Downloaded jobserver v0.1.31
Downloaded faster-hex v0.10.0
Downloaded cpufeatures v0.2.12
Downloaded block-buffer v0.10.4
Downloaded base32 v0.4.0
Downloaded base-x v0.2.11
Downloaded gix-credentials v0.30.0
Downloaded ed25519 v1.5.3
Downloaded chacha20 v0.9.1
Downloaded ec25519 v0.1.0
Downloaded cyphergraphy v0.3.0
Downloaded ahash v0.8.11
Downloaded git-ref-format v0.6.0
Downloaded env_logger v0.11.8
Downloaded dyn-clone v1.0.17
Downloaded diff v0.1.13
Downloaded bitflags v2.9.1
Downloaded base16ct v0.2.0
Downloaded home v0.5.9
Downloaded convert_case v0.7.1
Downloaded const-oid v0.9.6
Downloaded clap_derive v4.5.41
Downloaded clap_complete v4.5.60
Downloaded cipher v0.4.4
Downloaded bstr v1.12.0
Downloaded bitflags v1.3.2
Downloaded errno v0.3.13
Downloaded iana-time-zone v0.1.60
Downloaded gix-utils v0.3.0
Downloaded gix-trace v0.1.13
Downloaded gix-commitgraph v0.29.0
Downloaded email_address v0.2.9
Downloaded cypheraddr v0.4.0
Downloaded bytesize v2.0.1
Downloaded byteorder v1.5.0
Downloaded bit-set v0.8.0
Downloaded autocfg v1.2.0
Downloaded gix-actor v0.35.4
Downloaded form_urlencoded v1.2.1
Downloaded filetime v0.2.23
Downloaded anstyle-query v1.0.2
Downloaded displaydoc v0.2.5
Downloaded clap_lex v0.7.5
Downloaded cfg-if v1.0.0
Downloaded generic-array v0.14.7
Downloaded fnv v1.0.7
Downloaded elliptic-curve v0.13.8
Downloaded cyphernet v0.5.2
Downloaded data-encoding v2.5.0
Downloaded chrono v0.4.38
Downloaded amplify v4.6.0
Downloaded group v0.13.0
Downloaded gix-url v0.32.0
Downloaded fluent-uri v0.3.2
Downloaded bloomy v1.2.0
Downloaded git-ref-format-macro v0.6.0
Downloaded jiff-static v0.2.15
Downloaded idna_adapter v1.2.0
Downloaded gix-hash v0.19.0
Downloaded fancy-regex v0.14.0
Downloaded crossbeam-channel v0.5.15
Downloaded aead v0.5.2
Downloaded heck v0.5.0
Downloaded gix-quote v0.6.0
Downloaded gix-pack v0.60.0
Downloaded document-features v0.2.11
Downloaded bytecount v0.6.8
Downloaded arc-swap v1.7.1
Downloaded gix-hashtable v0.9.0
Downloaded equivalent v1.0.1
Downloaded ecdsa v0.16.9
Downloaded derive_more v2.0.1
Downloaded crossterm v0.25.0
Downloaded gix-config-value v0.15.1
Downloaded ct-codecs v1.1.1
Downloaded crypto-common v0.1.6
Downloaded crypto-bigint v0.5.5
Downloaded gix-revision v0.35.0
Downloaded dunce v1.0.5
Downloaded blowfish v0.9.1
Downloaded block-padding v0.3.3
Downloaded ascii v1.1.0
Downloaded crossterm v0.29.0
Downloaded gix-negotiate v0.21.0
Downloaded gix-lock v18.0.0
Downloaded gix-command v0.6.2
Downloaded gimli v0.31.1
Downloaded fastrand v2.3.0
Downloaded borrow-or-share v0.2.2
Downloaded gix-date v0.10.5
Downloaded git2 v0.19.0
Downloaded git-ref-format-core v0.6.0
Downloaded ghash v0.5.1
Downloaded colorchoice v1.0.0
Downloaded bytes v1.10.1
Downloaded data-encoding-macro v0.1.14
Downloaded crossbeam-utils v0.8.19
Compiling libc v0.2.174
Compiling proc-macro2 v1.0.101
Compiling unicode-ident v1.0.12
Compiling quote v1.0.41
Checking cfg-if v1.0.0
Compiling shlex v1.3.0
Checking memchr v2.7.2
Compiling version_check v0.9.4
Compiling jobserver v0.1.31
Checking getrandom v0.2.15
Compiling typenum v1.17.0
Compiling syn v2.0.106
Compiling cc v1.2.2
Compiling generic-array v0.14.7
Compiling serde v1.0.219
Checking rand_core v0.6.4
Checking regex-syntax v0.8.5
Checking aho-corasick v1.1.3
Checking crypto-common v0.1.6
Checking smallvec v1.15.1
Compiling thiserror v2.0.17
Checking once_cell v1.21.3
Checking stable_deref_trait v1.2.0
Checking subtle v2.5.0
Checking fastrand v2.3.0
Checking regex-automata v0.4.9
Compiling parking_lot_core v0.9.12
Checking scopeguard v1.2.0
Checking cpufeatures v0.2.12
Checking lock_api v0.4.14
Checking block-buffer v0.10.4
Checking parking_lot v0.12.5
Checking digest v0.10.7
Checking bitflags v2.9.1
Checking byteorder v1.5.0
Compiling typeid v1.0.3
Compiling crc32fast v1.5.0
Checking tinyvec_macros v0.1.1
Checking tinyvec v1.6.0
Checking gix-trace v0.1.13
Checking home v0.5.9
Checking zlib-rs v0.5.2
Checking unicode-normalization v0.1.23
Compiling synstructure v0.13.1
Checking gix-utils v0.3.0
Checking itoa v1.0.11
Checking bstr v1.12.0
Checking libz-rs-sys v0.5.2
Checking same-file v1.0.6
Checking walkdir v2.5.0
Checking flate2 v1.1.1
Checking prodash v30.0.1
Compiling getrandom v0.3.3
Checking zeroize v1.7.0
Compiling serde_derive v1.0.219
Compiling thiserror-impl v2.0.17
Compiling zerofrom-derive v0.1.6
Compiling yoke-derive v0.7.5
Compiling zerovec-derive v0.10.3
Checking zerofrom v0.1.6
Checking gix-validate v0.10.0
Checking yoke v0.7.5
Compiling displaydoc v0.2.5
Checking gix-path v0.10.20
Checking gix-features v0.43.1
Checking litemap v0.7.5
Compiling icu_locid_transform_data v1.5.1
Checking zerovec v0.10.4
Compiling heapless v0.8.0
Checking writeable v0.5.5
Compiling rustix v1.0.7
Compiling pkg-config v0.3.30
Compiling icu_provider_macros v1.5.0
Checking tinystr v0.7.6
Checking hash32 v0.3.1
Compiling icu_properties_data v1.5.1
Checking icu_locid v1.5.0
Checking linux-raw-sys v0.9.4
Checking icu_provider v1.5.0
Compiling icu_normalizer_data v1.5.1
Checking faster-hex v0.10.0
Checking icu_locid_transform v1.5.0
Checking icu_collections v1.5.0
Checking sha1 v0.10.6
Checking icu_properties v1.5.1
Checking block-padding v0.3.3
Checking utf16_iter v1.0.5
Checking write16 v1.0.0
Checking utf8_iter v1.0.4
Checking inout v0.1.3
Checking sha1-checked v0.10.0
Compiling syn v1.0.109
Checking percent-encoding v2.3.1
Checking erased-serde v0.4.6
Checking serde_fmt v1.0.3
Checking gix-hash v0.19.0
Checking cipher v0.4.4
Checking value-bag-serde1 v1.11.1
Checking value-bag v1.11.1
Checking log v0.4.27
Checking icu_normalizer v1.5.0
Checking form_urlencoded v1.2.1
Compiling vcpkg v0.2.15
Checking idna_adapter v1.2.0
Checking idna v1.0.3
Compiling thiserror v1.0.69
Checking url v2.5.4
Checking tempfile v3.23.0
Compiling libz-sys v1.1.16
Compiling thiserror-impl v1.0.69
Checking equivalent v1.0.1
Compiling serde_json v1.0.140
Checking hashbrown v0.14.3
Checking sha2 v0.10.8
Checking indexmap v2.2.6
Checking ryu v1.0.17
Compiling ref-cast v1.0.24
Compiling libgit2-sys v0.17.0+1.8.1
Compiling ref-cast-impl v1.0.24
Checking universal-hash v0.5.1
Checking opaque-debug v0.3.1
Checking dyn-clone v1.0.17
Compiling amplify_syn v2.0.1
Checking signature v1.6.4
Checking ed25519 v1.5.3
Compiling serde_derive_internals v0.29.1
Checking aead v0.5.2
Checking ascii v1.1.0
Compiling amplify_derive v4.0.0
Checking ct-codecs v1.1.1
Checking amplify_num v0.5.2
Compiling schemars_derive v1.0.4
Checking ec25519 v0.1.0
Checking git-ref-format-core v0.6.0
Checking amplify v4.6.0
Checking poly1305 v0.8.0
Checking chacha20 v0.9.1
Checking schemars v1.0.4
Checking cyphergraphy v0.3.0
Checking polyval v0.6.2
Compiling sqlite3-src v0.5.1
Checking hmac v0.12.1
Checking keccak v0.1.5
Checking base64ct v1.6.0
Checking sha3 v0.10.8
Checking pem-rfc7468 v0.7.0
Checking pbkdf2 v0.12.2
Checking ghash v0.5.1
Checking aes v0.8.4
Checking ctr v0.9.2
Checking rand v0.8.5
Compiling data-encoding v2.5.0
Compiling crossbeam-utils v0.8.19
Checking base32 v0.4.0
Compiling autocfg v1.2.0
Compiling data-encoding-macro-internal v0.1.12
Compiling num-traits v0.2.19
Checking cypheraddr v0.4.0
Checking qcheck v1.0.0
Checking aes-gcm v0.10.3
Checking ssh-encoding v0.2.0
Checking chacha20poly1305 v0.10.1
Checking cbc v0.1.2
Checking blowfish v0.9.1
Checking bcrypt-pbkdf v0.10.0
Checking ssh-cipher v0.2.0
Checking data-encoding-macro v0.1.14
Checking noise-framework v0.4.0
Checking socks5-client v0.4.1
Checking base-x v0.2.11
Checking signature v2.2.0
Checking crossbeam-channel v0.5.15
Checking ssh-key v0.6.6
Checking multibase v0.9.1
Checking cyphernet v0.5.2
Checking radicle-ssh v0.10.0 (/63dc03da-c32e-449f-9e7d-69145d0024b9/w/crates/radicle-ssh)
Checking anstyle-query v1.0.2
Checking jiff v0.2.15
Checking nonempty v0.9.0
Checking siphasher v1.0.1
Checking radicle-localtime v0.1.0 (/63dc03da-c32e-449f-9e7d-69145d0024b9/w/crates/radicle-localtime)
Checking radicle-git-metadata v0.1.0 (/63dc03da-c32e-449f-9e7d-69145d0024b9/w/crates/radicle-git-metadata)
Checking radicle-dag v0.10.0 (/63dc03da-c32e-449f-9e7d-69145d0024b9/w/crates/radicle-dag)
Checking winnow v0.7.13
Checking utf8parse v0.2.1
Checking hashbrown v0.15.5
Compiling signal-hook v0.3.18
Checking gix-hashtable v0.9.0
Checking anstyle-parse v0.2.3
Checking radicle-git-ref-format v0.1.0 (/63dc03da-c32e-449f-9e7d-69145d0024b9/w/crates/radicle-git-ref-format)
Checking gix-date v0.10.5
Checking signal-hook-registry v1.4.5
Checking gix-actor v0.35.4
Checking base64 v0.21.7
Checking colorchoice v1.0.0
Checking anstyle v1.0.11
Checking gix-object v0.50.2
Checking anstream v0.6.13
Checking mio v0.8.11
Checking mio v1.0.4
Checking serde-untagged v0.1.7
Checking bytesize v2.0.1
Checking memmap2 v0.9.8
Checking fast-glob v0.3.3
Checking dunce v1.0.5
Compiling unicode-segmentation v1.11.0
Checking tree-sitter-language v0.1.2
Checking signal-hook-mio v0.2.4
Checking gix-chunk v0.4.11
Checking regex v1.11.1
Compiling convert_case v0.7.1
Checking errno v0.3.13
Checking sem_safe v0.2.0
Checking lazy_static v1.5.0
Compiling portable-atomic v1.11.0
Checking signals_receipts v0.2.0
Compiling derive_more-impl v2.0.1
Checking gix-commitgraph v0.29.0
Checking unicode-width v0.2.1
Checking bitflags v1.3.2
Compiling litrs v0.4.1
Checking derive_more v2.0.1
Checking crossterm v0.25.0
Compiling document-features v0.2.11
Checking console v0.16.0
Checking gix-revwalk v0.21.0
Checking newline-converter v0.3.0
Checking gix-fs v0.16.1
Checking fxhash v0.2.1
Checking unit-prefix v0.5.1
Checking unicode-width v0.1.11
Checking inquire v0.7.5
Checking indicatif v0.18.0
Checking gix-tempfile v18.0.0
Checking crossterm v0.29.0
Checking radicle-signals v0.11.0 (/63dc03da-c32e-449f-9e7d-69145d0024b9/w/crates/radicle-signals)
Checking unicode-display-width v0.3.0
Checking gix-quote v0.6.0
Checking iana-time-zone v0.1.60
Checking shell-words v1.1.0
Checking either v1.11.0
Checking gix-command v0.6.2
Checking chrono v0.4.38
Checking colored v2.1.0
Compiling object v0.36.7
Checking gix-lock v18.0.0
Checking gix-url v0.32.0
Checking gix-config-value v0.15.1
Checking gix-sec v0.12.0
Checking gimli v0.31.1
Compiling rustix v0.38.34
Checking adler2 v2.0.0
Checking miniz_oxide v0.8.8
Checking gix-prompt v0.11.1
Checking addr2line v0.24.2
Checking gix-traverse v0.47.0
Checking gix-revision v0.35.0
Checking gix-diff v0.53.0
Checking gix-packetline v0.19.1
Compiling tree-sitter v0.24.4
Checking rustc-demangle v0.1.26
Compiling anyhow v1.0.82
Compiling linux-raw-sys v0.4.13
Checking backtrace v0.3.75
Checking gix-transport v0.48.0
Checking gix-pack v0.60.0
Checking gix-refspec v0.31.0
Checking gix-credentials v0.30.0
Checking gix-shallow v0.5.0
Checking gix-ref v0.53.1
Checking gix-negotiate v0.21.0
Compiling maybe-async v0.2.10
Compiling proc-macro-error-attr2 v2.0.0
Checking arc-swap v1.7.1
Checking gix-protocol v0.51.0
Checking gix-odb v0.70.0
Compiling proc-macro-error2 v2.0.1
Compiling xattr v1.3.1
Compiling filetime v0.2.23
Checking uuid v1.16.0
Checking bytes v1.10.1
Compiling tar v0.4.40
Compiling git-ref-format-macro v0.6.0
Checking snapbox-macros v0.3.8
Checking salsa20 v0.10.2
Compiling heck v0.5.0
Checking siphasher v0.3.11
Checking strsim v0.11.1
Checking streaming-iterator v0.1.9
Checking similar v2.5.0
Checking normalize-line-endings v0.3.0
Checking clap_lex v0.7.5
Checking clap_builder v4.5.44
Checking snapbox v0.4.17
Compiling clap_derive v4.5.41
Checking sqlite3-sys v0.15.2
Checking sqlite v0.32.0
Checking radicle-crypto v0.14.0 (/63dc03da-c32e-449f-9e7d-69145d0024b9/w/crates/radicle-crypto)
Checking bloomy v1.2.0
Compiling radicle-surf v0.26.0
Checking scrypt v0.11.0
Checking git-ref-format v0.6.0
Checking systemd-journal-logger v2.2.2
Checking toml_datetime v0.7.0
Checking serde_spanned v1.0.0
Compiling tree-sitter-ruby v0.23.1
Compiling tree-sitter-bash v0.23.3
Compiling tree-sitter-rust v0.23.2
Compiling tree-sitter-go v0.23.4
Compiling tree-sitter-md v0.3.2
Compiling tree-sitter-python v0.23.4
Compiling tree-sitter-toml-ng v0.6.0
Compiling tree-sitter-css v0.23.1
Compiling tree-sitter-typescript v0.23.2
Compiling tree-sitter-json v0.24.8
Compiling tree-sitter-c v0.23.2
Compiling tree-sitter-html v0.23.2
Checking pin-project-lite v0.2.16
Checking toml_writer v1.0.2
Checking radicle-std-ext v0.2.0
Checking tokio v1.47.1
Checking toml v0.9.5
Checking clap v4.5.44
Checking os_info v3.12.0
Compiling radicle-cli v0.17.0 (/63dc03da-c32e-449f-9e7d-69145d0024b9/w/crates/radicle-cli)
Compiling radicle-node v0.16.0 (/63dc03da-c32e-449f-9e7d-69145d0024b9/w/crates/radicle-node)
Checking yansi v0.5.1
Checking diff v0.1.13
Checking pretty_assertions v1.4.0
Checking human-panic v2.0.3
Checking clap_complete v4.5.60
Checking structured-logger v1.0.4
Checking radicle-systemd v0.11.0 (/63dc03da-c32e-449f-9e7d-69145d0024b9/w/crates/radicle-systemd)
Checking tree-sitter-highlight v0.24.4
Checking itertools v0.14.0
Checking num-integer v0.1.46
Compiling qcheck-macros v1.0.0
Checking socket2 v0.5.7
Compiling escargot v0.5.10
Checking timeago v0.4.2
Checking lexopt v0.3.0
Checking bit-vec v0.8.0
Checking bit-set v0.8.0
Checking num-bigint v0.4.6
Checking rand_core v0.9.3
Compiling ahash v0.8.11
Checking num-iter v0.1.45
Checking num-complex v0.4.6
Checking env_filter v0.1.3
Checking zerocopy v0.7.35
Checking num-rational v0.4.2
Checking borrow-or-share v0.2.2
Checking fluent-uri v0.3.2
Checking num v0.4.3
Checking env_logger v0.11.8
Checking phf_shared v0.11.3
Compiling test-log-macros v0.2.18
Checking wait-timeout v0.2.1
Compiling paste v1.0.15
Checking ppv-lite86 v0.2.17
Compiling radicle-remote-helper v0.14.0 (/63dc03da-c32e-449f-9e7d-69145d0024b9/w/crates/radicle-remote-helper)
Checking vsimd v0.8.0
Checking outref v0.5.2
Checking fnv v1.0.7
Checking quick-error v1.2.3
Checking rusty-fork v0.3.1
Checking uuid-simd v0.8.0
Checking rand_chacha v0.9.0
Checking test-log v0.2.18
Checking referencing v0.30.0
Checking phf v0.11.3
Checking fraction v0.15.3
Checking rand v0.9.2
Checking rand_xorshift v0.4.0
Checking fancy-regex v0.14.0
Checking email_address v0.2.9
Checking base64 v0.22.1
Checking bytecount v0.6.8
Checking unarray v0.1.4
Checking num-cmp v0.1.0
Checking proptest v1.9.0
Checking emojis v0.6.4
Checking jsonschema v0.30.0
Checking git2 v0.19.0
Checking radicle-oid v0.1.0 (/63dc03da-c32e-449f-9e7d-69145d0024b9/w/crates/radicle-oid)
Checking radicle-term v0.16.0 (/63dc03da-c32e-449f-9e7d-69145d0024b9/w/crates/radicle-term)
Checking radicle-git-ext v0.11.0
Checking radicle-core v0.1.0 (/63dc03da-c32e-449f-9e7d-69145d0024b9/w/crates/radicle-core)
Checking radicle-cob v0.17.0 (/63dc03da-c32e-449f-9e7d-69145d0024b9/w/crates/radicle-cob)
Checking radicle-log v0.1.0 (/63dc03da-c32e-449f-9e7d-69145d0024b9/w/crates/radicle-log)
error: the borrowed expression implements the required traits
--> crates/radicle-log/src/test.rs:154:54
|
154 | let coloured_msg = self.format_message(&msg, &paint_plain);
| ^^^^^^^^^^^^ help: change this to: `paint_plain`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
= note: `-D clippy::needless-borrows-for-generic-args` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_borrows_for_generic_args)]`
error: the borrowed expression implements the required traits
--> crates/radicle-log/src/test.rs:185:74
|
185 | let coloured_rest = self.format_message(&rest_of_prefix, &paint_plain);
| ^^^^^^^^^^^^ help: change this to: `paint_plain`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
error: could not compile `radicle-log` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: could not compile `radicle-log` (lib test) due to 2 previous errors
Exit code: 101
{
"response": "finished",
"result": "failure"
}