rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5 heartwood97f12120f397243a8bdcf9ab947c5b80f3303a59
{
"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:z6MkgFq6z5fkF2hioLLSNu1zP2qEL1aHXHZzGH1FLFGAnBGz",
"did:key:z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz"
]
},
"action": "Updated",
"patch": {
"id": "8ca194cefb5ee4b52b3ce306e8d882e02b5f3ff2",
"author": {
"id": "did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
"alias": "fintohaps"
},
"title": "Abstract Git Traits",
"state": {
"status": "open",
"conflicts": []
},
"before": "9158df5067429282cbec60292316c13b3d965c5a",
"after": "97f12120f397243a8bdcf9ab947c5b80f3303a59",
"commits": [
"97f12120f397243a8bdcf9ab947c5b80f3303a59",
"8c0be1e77e38bbb762799a1c38a71394a19454d6",
"3ef22cf4efe5a39bb1e62d47a05fc1881ab81474",
"ce38b1c5868e0994707eb89cd84ac86be0fcc339",
"56f023496f4d8cafe7ffb378a93fe41c4c411cb4",
"9f07fdef369a6d6f6751869e17fcfe2d21e0d226",
"e6a563b42ea2955c95cefc1b6bd26c227695d2e6",
"99705f51a901c4b268881af76512ee5be76c6466"
],
"target": "09b1f1f77cdec025f8f92f7395a38f76a11a0d85",
"labels": [],
"assignees": [],
"revisions": [
{
"id": "8ca194cefb5ee4b52b3ce306e8d882e02b5f3ff2",
"author": {
"id": "did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
"alias": "fintohaps"
},
"description": "This patch captures a set of abstract traits for Git operations.\nThe idea is that these traits capture the basic capabilities that are\nrequired to interact with Radicle storage repositories.\n\nFor now, the traits are defined in `radicle` so that the internals can\nbe refactored within the crate itself.\nOnce they are proven to be stable and useful, then they can be placed\nin their own crate, `radicle-git-repository`.",
"base": "a2de55cbb99ae178f09af61e3acf21192ee62097",
"oid": "e1867632fb03a1a75b73087e8ce5fb5d0846187c",
"timestamp": 1776164678
},
{
"id": "333699cc17ce59739d163a541696a85db3e991bc",
"author": {
"id": "did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
"alias": "fintohaps"
},
"description": "REVIEW: Renames and minor refactor",
"base": "a2de55cbb99ae178f09af61e3acf21192ee62097",
"oid": "832d377d58c273c26e07b7f75b14723663a413b5",
"timestamp": 1776178986
},
{
"id": "6569ca7666020b3ed8dd4d147cec5e32babd541e",
"author": {
"id": "did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
"alias": "fintohaps"
},
"description": "REVIEW: Take 2!",
"base": "a2de55cbb99ae178f09af61e3acf21192ee62097",
"oid": "46d916fac0a6cb4a877c41768217607a10a2ccd9",
"timestamp": 1776182648
},
{
"id": "48bf8e27f452a340c63c10789384996e5a5fc723",
"author": {
"id": "did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
"alias": "fintohaps"
},
"description": "Reworked the initial draft into a stable state",
"base": "9158df5067429282cbec60292316c13b3d965c5a",
"oid": "8494b9d6f7456e34e7da1f0ca005239987dd8ee0",
"timestamp": 1778758126
},
{
"id": "d0d31c49477619537b8f75fa162cb1a44c9e958d",
"author": {
"id": "did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
"alias": "fintohaps"
},
"description": "Changes:\n- Reword commits",
"base": "9158df5067429282cbec60292316c13b3d965c5a",
"oid": "97f12120f397243a8bdcf9ab947c5b80f3303a59",
"timestamp": 1778944622
}
]
}
}
{
"response": "triggered",
"run_id": {
"id": "90da1e6f-1a63-4230-99aa-aad4c7a37b31"
},
"info_url": "https://cci.rad.levitte.org//90da1e6f-1a63-4230-99aa-aad4c7a37b31.html"
}
Started at: 2026-05-20 10:30:01.314330+02: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 erikli@z6MkgFq6z5fkF2hioLLSNu1zP2qEL1aHXHZzGH1FLFGAnBGz added
✓ Remote-tracking branch erikli@z6MkgFq6z5fkF2hioLLSNu1zP2qEL1aHXHZzGH1FLFGAnBGz/master created for z6MkgFq6z5fkF2hioLLSNu1zP2qEL1aHXHZzGH1FLFGAnBGz
✓ 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/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/
╭────────────────────────────────────╮
│ heartwood │
│ Radicle Heartwood Protocol & Stack │
│ 168 issues · 46 patches │
╰────────────────────────────────────╯
Run `cd ./.` to go to the repository directory.
Exit code: 0
$ rad patch checkout 8ca194cefb5ee4b52b3ce306e8d882e02b5f3ff2
✓ Switched to branch patch/8ca194c at revision d0d31c4
✓ Branch patch/8ca194c setup to track rad/patches/8ca194cefb5ee4b52b3ce306e8d882e02b5f3ff2
Exit code: 0
$ git config advice.detachedHead false
Exit code: 0
$ git checkout 97f12120f397243a8bdcf9ab947c5b80f3303a59
HEAD is now at 97f12120 storage/git: Implement git::repository traits for Repository
Exit code: 0
$ rad patch show 8ca194cefb5ee4b52b3ce306e8d882e02b5f3ff2 -p
╭───────────────────────────────────────────────────────────────────────────────────────────────╮
│ Title Abstract Git Traits │
│ Patch 8ca194cefb5ee4b52b3ce306e8d882e02b5f3ff2 │
│ Author fintohaps z6Mkire…SQZ3voM │
│ Head 97f12120f397243a8bdcf9ab947c5b80f3303a59 │
│ Base 9158df5067429282cbec60292316c13b3d965c5a │
│ Branches patch/8ca194c │
│ Commits ahead 8, behind 5 │
│ Status open │
│ │
│ This patch captures a set of abstract traits for Git operations. │
│ The idea is that these traits capture the basic capabilities that are │
│ required to interact with Radicle storage repositories. │
│ │
│ For now, the traits are defined in `radicle` so that the internals can │
│ be refactored within the crate itself. │
│ Once they are proven to be stable and useful, then they can be placed │
│ in their own crate, `radicle-git-repository`. │
├───────────────────────────────────────────────────────────────────────────────────────────────┤
│ 97f1212 storage/git: Implement git::repository traits for Repository │
│ 8c0be1e radicle/git/repository: Implement git2 adapter for all traits │
│ 3ef22cf radicle/git/repository: Define Revwalk trait │
│ ce38b1c radicle/git/repository: Define Ancestry trait │
│ 56f0234 radicle/git/repository: Define reference::Reader, reference::Writer, symbolic::Writer │
│ 9f07fde radicle/git/repository: Define object::Reader and object::Writer traits │
│ e6a563b radicle/git/repository: Define Git domain types │
│ 99705f5 sigrefs/git: Remove doc link of `Committer::stable` │
├───────────────────────────────────────────────────────────────────────────────────────────────┤
│ ● Revision 8ca194c @ a2de55c..e186763 by fintohaps z6Mkire…SQZ3voM 1 month ago │
│ ↑ Revision 333699c @ a2de55c..832d377 by ade z6MkwGo…yS2aagA 1 month ago │
│ ↑ Revision 6569ca7 @ a2de55c..46d916f by ade z6MkwGo…yS2aagA 1 month ago │
│ ↑ Revision 48bf8e2 @ 9158df5..8494b9d by fintohaps z6Mkire…SQZ3voM 5 days ago │
│ ↑ Revision d0d31c4 @ 9158df5..97f1212 by fintohaps z6Mkire…SQZ3voM 3 days ago │
╰───────────────────────────────────────────────────────────────────────────────────────────────╯
commit 97f12120f397243a8bdcf9ab947c5b80f3303a59
Author: Fintan Halpenny <fintan.halpenny@gmail.com>
Date: Tue Apr 14 12:43:49 2026 +0000
storage/git: Implement git::repository traits for Repository
diff --git a/crates/radicle/src/storage/git.rs b/crates/radicle/src/storage/git.rs
index 56b185435..23495324a 100644
--- a/crates/radicle/src/storage/git.rs
+++ b/crates/radicle/src/storage/git.rs
@@ -13,6 +13,8 @@ use std::{fs, io};
use crate::git::canonical::Quorum;
use crate::git::raw::ErrorExt as _;
+use crate::git::repository;
+use crate::git::repository::{ancestry, object, reference, revwalk};
use crate::identity::doc::DocError;
use crate::identity::{Doc, DocAt, RepoId};
use crate::identity::{Identity, Project};
@@ -1134,6 +1136,151 @@ impl sigrefs::git::reference::Writer for Repository {
}
}
+impl object::Reader for Repository {
+ fn blob(&self, oid: Oid) -> Result<Option<git::repository::Blob>, object::error::read::Blob> {
+ object::Reader::blob(&self.backend, oid)
+ }
+
+ fn blob_at<P>(
+ &self,
+ commit: Oid,
+ path: &P,
+ ) -> Result<Option<git::repository::Blob>, object::error::read::BlobAt>
+ where
+ P: AsRef<Path>,
+ {
+ object::Reader::blob_at(&self.backend, commit, path)
+ }
+
+ fn commit(
+ &self,
+ oid: Oid,
+ ) -> Result<Option<git::repository::Commit>, object::error::read::Commit> {
+ object::Reader::commit(&self.backend, oid)
+ }
+
+ fn exists(&self, oid: Oid) -> Result<bool, object::error::read::Exists> {
+ object::Reader::exists(&self.backend, oid)
+ }
+}
+
+impl object::Writer for Repository {
+ fn write_blob(&self, content: &[u8]) -> Result<Oid, object::error::write::Blob> {
+ object::Writer::write_blob(&self.backend, content)
+ }
+
+ fn write_tree(
+ &self,
+ entries: &[repository::types::TreeEntry],
+ ) -> Result<Oid, object::error::write::Tree> {
+ object::Writer::write_tree(&self.backend, entries)
+ }
+
+ fn write_commit(&self, bytes: &[u8]) -> Result<Oid, object::error::write::Commit> {
+ object::Writer::write_commit(&self.backend, bytes)
+ }
+}
+
+impl reference::Reader for Repository {
+ type References<'a> = <git::raw::Repository as reference::Reader>::References<'a>;
+
+ fn ref_target<R>(&self, name: &R) -> Result<Option<Oid>, reference::error::read::RefTarget>
+ where
+ R: AsRef<git::fmt::RefStr>,
+ {
+ reference::Reader::ref_target(&self.backend, name)
+ }
+
+ fn list_refs<'a, P>(
+ &'a self,
+ pattern: &P,
+ ) -> Result<Self::References<'a>, reference::error::read::ListRefs>
+ where
+ P: AsRef<git::fmt::refspec::PatternStr>,
+ {
+ reference::Reader::list_refs(&self.backend, pattern)
+ }
+}
+
+impl reference::Writer for Repository {
+ fn write_ref<R>(
+ &self,
+ name: &R,
+ target: reference::Target,
+ reflog: &str,
+ ) -> Result<(), reference::error::write::WriteRef>
+ where
+ R: AsRef<git::fmt::RefStr>,
+ {
+ reference::Writer::write_ref(&self.backend, name, target, reflog)
+ }
+
+ fn delete_ref<R>(&self, name: &R) -> Result<(), reference::error::write::DeleteRef>
+ where
+ R: AsRef<git::fmt::RefStr>,
+ {
+ reference::Writer::delete_ref(&self.backend, name)
+ }
+}
+
+impl reference::symbolic::Writer for Repository {
+ fn write_symbolic_ref<R>(
+ &self,
+ name: &R,
+ target: reference::symbolic::Target,
+ reflog: &str,
+ ) -> Result<(), reference::error::write::WriteSymbolicRef>
+ where
+ R: AsRef<radicle_git_ref_format::RefStr>,
+ {
+ reference::symbolic::Writer::write_symbolic_ref(&self.backend, name, target, reflog)
+ }
+}
+
+impl repository::Ancestry for Repository {
+ fn merge_base(&self, a: Oid, b: Oid) -> Result<Option<Oid>, ancestry::error::MergeBase> {
+ repository::Ancestry::merge_base(&self.backend, a, b)
+ }
+
+ fn is_ancestor(&self, ancestor: Oid, head: Oid) -> Result<bool, ancestry::error::IsAncestor> {
+ repository::Ancestry::is_ancestor(&self.backend, ancestor, head)
+ }
+
+ fn ahead_behind(
+ &self,
+ commit: Oid,
+ upstream: Oid,
+ ) -> Result<repository::AheadBehind, ancestry::error::AheadBehind> {
+ repository::Ancestry::ahead_behind(&self.backend, commit, upstream)
+ }
+}
+
+impl repository::Revwalk for Repository {
+ type RevwalkOids<'a>
+ = <git::raw::Repository as repository::Revwalk>::RevwalkOids<'a>
+ where
+ Self: 'a;
+
+ type RevwalkCommits<'a>
+ = <git::raw::Repository as repository::Revwalk>::RevwalkCommits<'a>
+ where
+ Self: 'a;
+
+ fn revwalk_oids<'a>(
+ &'a self,
+ plan: &repository::RevwalkPlan,
+ ) -> Result<Self::RevwalkOids<'a>, revwalk::error::Init> {
+ repository::Revwalk::revwalk_oids(&self.backend, plan)
+ }
+
+ fn revwalk_commits<'a>(
+ &'a self,
+ plan: &repository::RevwalkPlan,
+ ) -> Result<Self::RevwalkCommits<'a>, revwalk::error::Init> {
+ repository::Revwalk::revwalk_commits(&self.backend, plan)
+ }
+}
+
pub mod trailers {
use std::str::FromStr;
commit 8c0be1e77e38bbb762799a1c38a71394a19454d6
Author: Fintan Halpenny <fintan.halpenny@gmail.com>
Date: Sun Apr 12 07:22:56 2026 +0000
radicle/git/repository: Implement git2 adapter for all traits
Implement the git repository abstraction traits for
`git::raw::Repository`, adapting git2 to the domain types.
diff --git a/crates/radicle/src/git/raw.rs b/crates/radicle/src/git/raw.rs
index 68f589ed0..8508b5487 100644
--- a/crates/radicle/src/git/raw.rs
+++ b/crates/radicle/src/git/raw.rs
@@ -6,7 +6,8 @@
// Re-exports that are only used within this crate.
pub(crate) use git2::{
- AutotagOption, Blob, FetchOptions, FetchPrune, Object, Revwalk, Sort, message_trailers_strs,
+ AutotagOption, Blob, FetchOptions, FetchPrune, Object, Revwalk, Sort, TreeEntry,
+ message_trailers_strs,
};
#[cfg(unix)]
@@ -19,8 +20,8 @@ pub(crate) use git2::RemoteCallbacks;
// Re-exports that are used by other crates in the workspace, including this crate.
pub use git2::{
Branch, BranchType, Commit, Direction, Error, ErrorClass, ErrorCode, FileMode, ObjectType, Oid,
- Reference, Remote, Repository, RepositoryInitOptions, RepositoryOpenFlags, Signature, Time,
- Tree,
+ Reference, References, Remote, Repository, RepositoryInitOptions, RepositoryOpenFlags,
+ Signature, Time, Tree,
};
// Re-exports that are used by other crates in the workspace, but *not* this crate.
@@ -32,7 +33,6 @@ pub mod build {
// Re-exports for `radicle-cli`.
pub use git2::build::CheckoutBuilder;
- #[cfg(test)]
pub(crate) use git2::build::TreeUpdateBuilder;
}
diff --git a/crates/radicle/src/git/repository.rs b/crates/radicle/src/git/repository.rs
index aa7f2d7ce..73423a00f 100644
--- a/crates/radicle/src/git/repository.rs
+++ b/crates/radicle/src/git/repository.rs
@@ -17,6 +17,8 @@ pub mod reference;
pub mod revwalk;
pub mod types;
+mod adapter;
+
pub use ancestry::{AheadBehind, Ancestry};
pub use revwalk::{Revwalk, RevwalkPlan, SortOrder};
pub use types::{Blob, Commit, ObjectKind, TreeEntry};
diff --git a/crates/radicle/src/git/repository/adapter.rs b/crates/radicle/src/git/repository/adapter.rs
new file mode 100644
index 000000000..523ee2d4b
--- /dev/null
+++ b/crates/radicle/src/git/repository/adapter.rs
@@ -0,0 +1,5 @@
+//! Adapters for the traits defined in [`git::repository`].
+//!
+//! [`git::repository`]: crate::git::repository
+
+mod git2;
diff --git a/crates/radicle/src/git/repository/adapter/git2.rs b/crates/radicle/src/git/repository/adapter/git2.rs
new file mode 100644
index 000000000..56c8a078b
--- /dev/null
+++ b/crates/radicle/src/git/repository/adapter/git2.rs
@@ -0,0 +1,44 @@
+//! The [`Repository`] adapters for the various repository traits.
+//!
+//! [`Repository`]: crate::git::raw::Repository
+
+use crate::git;
+use crate::git::raw;
+
+use crate::git::repository::ObjectKind;
+
+mod ancestry;
+mod object;
+mod reference;
+mod revwalk;
+
+/// Helper trait to enable method chaining to return `None` when the error
+/// matches [`ErrorCode::NotFound`].
+///
+/// [`ErrorCode::NotFound`]: crate::git::raw::ErrorCode::NotFound
+trait NotFound<T> {
+ fn or_is_not_found(self) -> Result<Option<T>, raw::Error>;
+}
+
+impl<T> NotFound<T> for Result<T, raw::Error> {
+ fn or_is_not_found(self) -> Result<Option<T>, git::raw::Error> {
+ self.map(|t| Ok(Some(t))).unwrap_or_else(|e| {
+ if matches!(e.code(), raw::ErrorCode::NotFound) {
+ Ok(None)
+ } else {
+ Err(e)
+ }
+ })
+ }
+}
+
+/// Map a [`raw::ObjectType`] to an [`ObjectKind`].
+fn object_kind(kind: raw::ObjectType) -> ObjectKind {
+ match kind {
+ raw::ObjectType::Blob => ObjectKind::Blob,
+ raw::ObjectType::Tree => ObjectKind::Tree,
+ raw::ObjectType::Commit => ObjectKind::Commit,
+ raw::ObjectType::Tag => ObjectKind::Tag,
+ raw::ObjectType::Any => unreachable!("git2 does not expose other object types"),
+ }
+}
diff --git a/crates/radicle/src/git/repository/adapter/git2/ancestry.rs b/crates/radicle/src/git/repository/adapter/git2/ancestry.rs
new file mode 100644
index 000000000..87b3af00d
--- /dev/null
+++ b/crates/radicle/src/git/repository/adapter/git2/ancestry.rs
@@ -0,0 +1,62 @@
+use radicle_oid::Oid;
+
+use crate::git::raw;
+use crate::git::repository::ancestry;
+use crate::git::repository::ancestry::{AheadBehind, Ancestry};
+
+use super::NotFound as _;
+
+impl Ancestry for raw::Repository {
+ fn merge_base(&self, a: Oid, b: Oid) -> Result<Option<Oid>, ancestry::error::MergeBase> {
+ let odb = self.odb().map_err(ancestry::error::MergeBase::backend)?;
+
+ if !odb.exists(a.into()) {
+ return Err(ancestry::error::MergeBase::CommitNotFound { oid: a });
+ }
+
+ if !odb.exists(b.into()) {
+ return Err(ancestry::error::MergeBase::CommitNotFound { oid: b });
+ }
+
+ self.merge_base(a.into(), b.into())
+ .map(Oid::from)
+ .or_is_not_found()
+ .map_err(ancestry::error::MergeBase::backend)
+ }
+
+ fn is_ancestor(&self, ancestor: Oid, head: Oid) -> Result<bool, ancestry::error::IsAncestor> {
+ let odb = self.odb().map_err(ancestry::error::IsAncestor::backend)?;
+
+ if !odb.exists(ancestor.into()) {
+ return Err(ancestry::error::IsAncestor::CommitNotFound { oid: ancestor });
+ }
+
+ if !odb.exists(head.into()) {
+ return Err(ancestry::error::IsAncestor::CommitNotFound { oid: head });
+ }
+
+ self.graph_descendant_of(head.into(), ancestor.into())
+ .map_err(ancestry::error::IsAncestor::backend)
+ }
+
+ fn ahead_behind(
+ &self,
+ commit: Oid,
+ upstream: Oid,
+ ) -> Result<AheadBehind, ancestry::error::AheadBehind> {
+ let odb = self.odb().map_err(ancestry::error::AheadBehind::backend)?;
+
+ if !odb.exists(commit.into()) {
+ return Err(ancestry::error::AheadBehind::CommitNotFound { oid: commit });
+ }
+
+ if !odb.exists(upstream.into()) {
+ return Err(ancestry::error::AheadBehind::CommitNotFound { oid: upstream });
+ }
+
+ let (ahead, behind) = self
+ .graph_ahead_behind(commit.into(), upstream.into())
+ .map_err(ancestry::error::AheadBehind::backend)?;
+ Ok(AheadBehind { ahead, behind })
+ }
+}
diff --git a/crates/radicle/src/git/repository/adapter/git2/object.rs b/crates/radicle/src/git/repository/adapter/git2/object.rs
new file mode 100644
index 000000000..30b90b353
--- /dev/null
+++ b/crates/radicle/src/git/repository/adapter/git2/object.rs
@@ -0,0 +1,167 @@
+use std::path::Path;
+
+use radicle_oid::Oid;
+
+use crate::git;
+use crate::git::raw;
+use crate::git::repository::object;
+use crate::git::repository::object::error::{read, write};
+use crate::git::repository::types::{Blob, Commit, ObjectKind, TreeEntry};
+
+use super::NotFound as _;
+use super::object_kind;
+
+impl object::Reader for raw::Repository {
+ fn blob(&self, oid: Oid) -> Result<Option<Blob>, read::Blob> {
+ self.find_blob(oid.into())
+ .map(|blob| Blob {
+ oid,
+ content: blob.content().to_vec(),
+ })
+ .or_is_not_found()
+ .map_err(read::Blob::backend)
+ }
+
+ fn blob_at<P: AsRef<Path>>(&self, oid: Oid, path: &P) -> Result<Option<Blob>, read::BlobAt> {
+ let path = path.as_ref();
+ let commit = find_commit(self, oid, &path)?;
+ let tree = commit.tree().map_err(|e| read::BlobAt::Tree {
+ commit: oid,
+ source: Box::new(e),
+ })?;
+ let entry = tree
+ .get_path(path)
+ .or_is_not_found()
+ .map_err(|e| read::BlobAt::TreeEntry {
+ commit: oid,
+ path: path.to_path_buf(),
+ source: Box::new(e),
+ })?;
+ entry
+ .map(|entry| try_entry_to_blob(self, oid, path, entry))
+ .transpose()
+ }
+
+ fn commit(&self, oid: Oid) -> Result<Option<Commit>, read::Commit> {
+ let odb = self.odb().map_err(read::Commit::backend)?;
+ let commit = odb
+ .read(oid.into())
+ .or_is_not_found()
+ .map_err(read::Commit::backend)?;
+ commit
+ .map(|obj| {
+ Commit::from_bytes(obj.data()).map_err(|e| read::Commit::Parse { oid, source: e })
+ })
+ .transpose()
+ }
+
+ fn exists(&self, oid: Oid) -> Result<bool, read::Exists> {
+ self.odb()
+ .map(|odb| odb.exists(oid.into()))
+ .map_err(read::Exists::backend)
+ }
+}
+
+impl object::Writer for raw::Repository {
+ fn write_blob(&self, content: &[u8]) -> Result<Oid, write::Blob> {
+ self.blob(content)
+ .map(Oid::from)
+ .map_err(write::Blob::backend)
+ }
+
+ fn write_tree(&self, entries: &[TreeEntry]) -> Result<Oid, write::Tree> {
+ let empty_tree = empty_tree(self)?;
+ let mut builder = raw::build::TreeUpdateBuilder::new();
+ let odb = self.odb().map_err(write::Tree::backend)?;
+ for entry in entries {
+ match entry {
+ TreeEntry::Blob { path, content } => {
+ let oid = self.blob(content).map_err(|e| write::Tree::WriteBlob {
+ path: path.to_path_buf(),
+ source: Box::new(e),
+ })?;
+ builder.upsert(path, oid, raw::FileMode::Blob);
+ }
+ TreeEntry::BlobRef { path, oid } => {
+ if !odb.exists(oid.into()) {
+ return Err(write::Tree::MissingBlob { oid: *oid });
+ }
+ builder.upsert(path, (*oid).into(), raw::FileMode::Blob);
+ }
+ }
+ }
+
+ builder
+ .create_updated(self, &empty_tree)
+ .map(Oid::from)
+ .map_err(write::Tree::backend)
+ }
+
+ fn write_commit(&self, bytes: &[u8]) -> Result<Oid, write::Commit> {
+ let odb = self.odb().map_err(write::Commit::backend)?;
+ odb.write(raw::ObjectType::Commit, bytes)
+ .map(Oid::from)
+ .map_err(write::Commit::backend)
+ }
+}
+
+/// Get or create the empty tree for use as a baseline.
+fn empty_tree(repo: &raw::Repository) -> Result<git::raw::Tree<'_>, write::Tree> {
+ let empty_oid = repo
+ .treebuilder(None)
+ .map_err(write::Tree::backend)?
+ .write()
+ .map_err(write::Tree::backend)?;
+ repo.find_tree(empty_oid).map_err(write::Tree::backend)
+}
+
+fn find_commit<'a, P: AsRef<Path>>(
+ repository: &'a git::raw::Repository,
+ commit: Oid,
+ path: &P,
+) -> Result<git::raw::Commit<'a>, read::BlobAt> {
+ match repository.find_commit(commit.into()) {
+ Ok(c) => Ok(c),
+ Err(e) if matches!(e.code(), git::raw::ErrorCode::NotFound) => {
+ Err(read::BlobAt::CommitNotFound {
+ commit,
+ path: path.as_ref().to_path_buf(),
+ })
+ }
+ Err(e) => Err(read::BlobAt::backend(e)),
+ }
+}
+
+fn try_object_to_blob(obj: git::raw::Object) -> Result<Blob, read::BlobAt> {
+ let blob = obj.into_blob().map_err(|obj| {
+ let actual = obj
+ .kind()
+ .map(|k| object_kind(k).to_string())
+ .unwrap_or_else(|| "unknown".to_string());
+ read::BlobAt::TypeMismatch {
+ oid: Oid::from(obj.id()),
+ expected: ObjectKind::Blob,
+ actual,
+ }
+ })?;
+ Ok(Blob {
+ oid: Oid::from(blob.id()),
+ content: blob.content().to_vec(),
+ })
+}
+
+fn try_entry_to_blob(
+ repository: &git::raw::Repository,
+ oid: Oid,
+ path: &Path,
+ entry: raw::TreeEntry<'_>,
+) -> Result<Blob, read::BlobAt> {
+ let obj = entry
+ .to_object(repository)
+ .map_err(|e| read::BlobAt::Object {
+ commit: oid,
+ path: path.to_path_buf(),
+ source: Box::new(e),
+ })?;
+ try_object_to_blob(obj)
+}
diff --git a/crates/radicle/src/git/repository/adapter/git2/reference.rs b/crates/radicle/src/git/repository/adapter/git2/reference.rs
new file mode 100644
index 000000000..fb89e29c9
--- /dev/null
+++ b/crates/radicle/src/git/repository/adapter/git2/reference.rs
@@ -0,0 +1,294 @@
+use radicle_git_ref_format::{Qualified, RefStr, refspec};
+use radicle_oid::Oid;
+
+use crate::git;
+use crate::git::raw;
+use crate::git::repository::reference::error::{read, write};
+use crate::git::repository::reference::{self, symbolic};
+
+use super::NotFound as _;
+
+/// Iterator adapter for [`reference::Reader::list_refs`].
+pub struct References<'a> {
+ inner: git::raw::References<'a>,
+}
+
+impl Iterator for References<'_> {
+ type Item = Result<(Qualified<'static>, Oid), read::ListReference>;
+
+ fn next(&mut self) -> Option<Self::Item> {
+ loop {
+ let r = match self.inner.next()? {
+ Ok(r) => r,
+ Err(e) => {
+ return Some(Err(read::ListReference::backend(e)));
+ }
+ };
+
+ let name = match r.name() {
+ Some(n) => n,
+ None => continue,
+ };
+
+ let refstr = match RefStr::try_from_str(name) {
+ Ok(r) => r,
+ Err(e) => {
+ return Some(Err(read::ListReference::Parse {
+ name: name.to_string(),
+ source: e,
+ }));
+ }
+ };
+
+ let qualified = match Qualified::from_refstr(refstr) {
+ Some(q) => q.to_owned(),
+ None => continue,
+ };
+
+ let oid = match r.resolve().map(|r| r.target()) {
+ Ok(Some(oid)) => Oid::from(oid),
+ Ok(None) => continue,
+ Err(e) => {
+ return Some(Err(read::ListReference::Peel {
+ name: qualified,
+ source: Box::new(e),
+ }));
+ }
+ };
+
+ return Some(Ok((qualified, oid)));
+ }
+ }
+}
+
+impl reference::Reader for raw::Repository {
+ type References<'a> = References<'a>;
+
+ fn ref_target<R: AsRef<RefStr>>(&self, name: &R) -> Result<Option<Oid>, read::RefTarget> {
+ self.refname_to_id(name.as_ref().as_str())
+ .map(Oid::from)
+ .or_is_not_found()
+ .map_err(read::RefTarget::backend)
+ }
+
+ fn list_refs<'a, P>(&'a self, pattern: &P) -> Result<Self::References<'a>, read::ListRefs>
+ where
+ P: AsRef<refspec::PatternStr>,
+ {
+ let inner = self
+ .references_glob(pattern.as_ref().as_str())
+ .map_err(read::ListRefs::backend)?;
+ Ok(References { inner })
+ }
+}
+
+impl reference::Writer for raw::Repository {
+ fn write_ref<R>(
+ &self,
+ name: &R,
+ target: reference::Target,
+ reflog: &str,
+ ) -> Result<(), write::WriteRef>
+ where
+ R: AsRef<RefStr>,
+ {
+ let name = name.as_ref();
+
+ // Verify the target object exists.
+ {
+ let odb = self.odb().map_err(write::WriteRef::backend)?;
+ let target_oid = target.target();
+ if !odb.exists(target_oid.into()) {
+ return Err(write::WriteRef::MissingTarget {
+ name: name.to_string(),
+ target: target_oid,
+ });
+ }
+ }
+
+ match target {
+ reference::Target::Create { target } => {
+ create_reference(self, reflog, name, target)?;
+ }
+ reference::Target::Upsert { target } => {
+ upsert_reference(self, reflog, name, target)?;
+ }
+ reference::Target::Cas { target, expected } => {
+ cas_reference(self, reflog, name, target, expected)?;
+ }
+ }
+
+ Ok(())
+ }
+
+ fn delete_ref<R>(&self, name: &R) -> Result<(), write::DeleteRef>
+ where
+ R: AsRef<RefStr>,
+ {
+ match self.find_reference(name.as_ref().as_str()) {
+ Ok(mut r) => r.delete().map_err(write::DeleteRef::backend),
+ Err(e) if matches!(e.code(), git::raw::ErrorCode::NotFound) => Ok(()),
+ Err(e) => Err(write::DeleteRef::backend(e)),
+ }
+ }
+}
+
+fn create_reference(
+ repository: &git::raw::Repository,
+ reflog: &str,
+ name: &RefStr,
+ target: Oid,
+) -> Result<(), write::WriteRef> {
+ repository
+ .reference(name, target.into(), false, reflog)
+ .map_err(|e| {
+ if matches!(e.code(), raw::ErrorCode::Exists) {
+ write::WriteRef::ReferenceExists {
+ name: name.to_string(),
+ }
+ } else {
+ write::WriteRef::backend(e)
+ }
+ })?;
+ Ok(())
+}
+
+fn upsert_reference(
+ repository: &git::raw::Repository,
+ reflog: &str,
+ name: &RefStr,
+ target: Oid,
+) -> Result<(), write::WriteRef> {
+ repository
+ .reference(name, target.into(), true, reflog)
+ .map_err(write::WriteRef::backend)?;
+ Ok(())
+}
+
+fn cas_reference(
+ repository: &git::raw::Repository,
+ reflog: &str,
+ name: &RefStr,
+ target: Oid,
+ expected: Oid,
+) -> Result<(), write::WriteRef> {
+ // CAS requires `force=true` so that libgit2 skips the existence
+ // check in `reference_path_available` and instead compares the
+ // current value via `cmp_old_ref`. With `force=false`, an existing
+ // reference would always fail with `GIT_EEXISTS` before the old
+ // value is ever compared.
+ repository
+ .reference_matching(name, target.into(), true, expected.into(), reflog)
+ .map_err(|e| {
+ if matches!(e.code(), raw::ErrorCode::Modified) {
+ write::WriteRef::CasFailed {
+ name: name.to_string(),
+ expected,
+ }
+ } else {
+ write::WriteRef::backend(e)
+ }
+ })?;
+ Ok(())
+}
+
+impl symbolic::Writer for raw::Repository {
+ fn write_symbolic_ref<R>(
+ &self,
+ name: &R,
+ target: symbolic::Target,
+ reflog: &str,
+ ) -> Result<(), write::WriteSymbolicRef>
+ where
+ R: AsRef<RefStr>,
+ {
+ let name = name.as_ref();
+
+ // Ensure the target reference exists.
+ {
+ let target = target.target();
+ match self.find_reference(target) {
+ Ok(_) => {}
+ Err(e) if matches!(e.code(), git::raw::ErrorCode::NotFound) => {
+ return Err(write::WriteSymbolicRef::MissingTarget {
+ name: name.to_ref_string(),
+ target: target.to_owned(),
+ });
+ }
+ Err(e) => {
+ return Err(write::WriteSymbolicRef::backend(e));
+ }
+ }
+ }
+
+ match target {
+ symbolic::Target::Create { target } => {
+ create_symbolic_reference(self, reflog, name, &target)?;
+ }
+ symbolic::Target::Upsert { target } => {
+ upsert_symbolic_reference(self, reflog, name, &target)?;
+ }
+ symbolic::Target::Cas { target, expected } => {
+ cas_symbolic_reference(self, reflog, name, &target, &expected)?;
+ }
+ }
+
+ Ok(())
+ }
+}
+
+fn create_symbolic_reference(
+ repository: &git::raw::Repository,
+ reflog: &str,
+ name: &RefStr,
+ target: &RefStr,
+) -> Result<(), write::WriteSymbolicRef> {
+ repository
+ .reference_symbolic(name, target, false, reflog)
+ .map_err(|e| {
+ if matches!(e.code(), raw::ErrorCode::Exists) {
+ write::WriteSymbolicRef::ReferenceExists {
+ name: name.to_ref_string(),
+ target: target.to_ref_string(),
+ }
+ } else {
+ write::WriteSymbolicRef::backend(e)
+ }
+ })?;
+ Ok(())
+}
+
+fn upsert_symbolic_reference(
+ repository: &git::raw::Repository,
+ reflog: &str,
+ name: &RefStr,
+ target: &RefStr,
+) -> Result<(), write::WriteSymbolicRef> {
+ repository
+ .reference_symbolic(name, target, true, reflog)
+ .map_err(write::WriteSymbolicRef::backend)?;
+ Ok(())
+}
+
+fn cas_symbolic_reference(
+ repository: &git::raw::Repository,
+ reflog: &str,
+ name: &RefStr,
+ target: &RefStr,
+ expected: &RefStr,
+) -> Result<(), write::WriteSymbolicRef> {
+ // See `cas_reference` for why `force=true` is required for CAS.
+ repository
+ .reference_symbolic_matching(name, target, true, expected, reflog)
+ .map_err(|e| {
+ if matches!(e.code(), raw::ErrorCode::Modified) {
+ write::WriteSymbolicRef::CasFailed {
+ name: name.to_ref_string(),
+ expected: expected.to_ref_string(),
+ }
+ } else {
+ write::WriteSymbolicRef::backend(e)
+ }
+ })?;
+ Ok(())
+}
diff --git a/crates/radicle/src/git/repository/adapter/git2/revwalk.rs b/crates/radicle/src/git/repository/adapter/git2/revwalk.rs
new file mode 100644
index 000000000..1b8500a03
--- /dev/null
+++ b/crates/radicle/src/git/repository/adapter/git2/revwalk.rs
@@ -0,0 +1,113 @@
+use radicle_oid::Oid;
+
+use crate::git;
+use crate::git::raw;
+
+use crate::git::repository::revwalk::error;
+use crate::git::repository::revwalk::{Revwalk, RevwalkPlan, SortOrder};
+use crate::git::repository::types::Commit;
+
+/// [`Revwalk::RevwalkOids`] iterator using [`raw::Revwalk`].
+pub struct RevwalkOids<'a> {
+ inner: raw::Revwalk<'a>,
+}
+
+impl<'a> RevwalkOids<'a> {
+ pub fn hide(&mut self, oid: Oid) -> Result<(), error::Oids> {
+ self.inner.hide(oid.into()).map_err(error::Oids::backend)
+ }
+}
+
+impl Iterator for RevwalkOids<'_> {
+ type Item = Result<Oid, error::Oids>;
+
+ fn next(&mut self) -> Option<Self::Item> {
+ self.inner
+ .next()
+ .map(|r| r.map(Oid::from).map_err(error::Oids::backend))
+ }
+}
+
+/// [`Revwalk::RevwalkCommits`] iterator using [`raw::Revwalk`].
+pub struct RevwalkCommits<'a> {
+ oids: RevwalkOids<'a>,
+ backend: &'a raw::Repository,
+}
+
+impl<'a> RevwalkCommits<'a> {
+ pub fn hide(&mut self, oid: Oid) -> Result<(), error::Oids> {
+ self.oids.hide(oid)
+ }
+
+ fn read(backend: &raw::Repository, oid: Oid) -> Result<Commit, error::Commit> {
+ let odb = backend.odb().map_err(error::Commit::backend)?;
+ let obj = odb.read(oid.into()).map_err(error::Commit::backend)?;
+ Commit::from_bytes(obj.data()).map_err(|e| error::Commit::Parse { oid, source: e })
+ }
+}
+
+impl Iterator for RevwalkCommits<'_> {
+ type Item = Result<Commit, error::Commit>;
+
+ fn next(&mut self) -> Option<Self::Item> {
+ let oid = match self.oids.next()? {
+ Ok(oid) => oid,
+ Err(e) => return Some(Err(error::Commit::backend(e))),
+ };
+ Some(Self::read(self.backend, oid))
+ }
+}
+
+/// Configure a [`raw::Revwalk`] from a [`RevwalkPlan`].
+fn configure_revwalk(walk: &mut raw::Revwalk<'_>, plan: &RevwalkPlan) -> Result<(), error::Init> {
+ let sort = match plan.sort_order() {
+ SortOrder::Chronological { reverse: false } => git::raw::Sort::TIME,
+ SortOrder::Topological { reverse: false } => git::raw::Sort::TOPOLOGICAL,
+ SortOrder::Chronological { reverse: true } => git::raw::Sort::REVERSE,
+ SortOrder::Topological { reverse: true } => {
+ git::raw::Sort::TOPOLOGICAL | git::raw::Sort::REVERSE
+ }
+ };
+ walk.set_sorting(sort).map_err(error::Init::backend)?;
+
+ if let Some((from, to)) = plan.range_bounds() {
+ walk.push_range(&format!("{from}..{to}"))
+ .map_err(error::Init::backend)?;
+ }
+
+ for oid in plan.starts() {
+ walk.push((*oid).into()).map_err(error::Init::backend)?;
+ }
+
+ for oid in plan.hidden() {
+ walk.hide((*oid).into()).map_err(error::Init::backend)?;
+ }
+
+ Ok(())
+}
+
+impl Revwalk for raw::Repository {
+ type RevwalkOids<'a> = RevwalkOids<'a>;
+ type RevwalkCommits<'a> = RevwalkCommits<'a>;
+
+ fn revwalk_oids<'a>(
+ &'a self,
+ plan: &RevwalkPlan,
+ ) -> Result<Self::RevwalkOids<'a>, error::Init> {
+ let mut walk = self.revwalk().map_err(error::Init::backend)?;
+ configure_revwalk(&mut walk, plan)?;
+ Ok(RevwalkOids { inner: walk })
+ }
+
+ fn revwalk_commits<'a>(
+ &'a self,
+ plan: &RevwalkPlan,
+ ) -> Result<Self::RevwalkCommits<'a>, error::Init> {
+ let mut walk = self.revwalk().map_err(error::Init::backend)?;
+ configure_revwalk(&mut walk, plan)?;
+ Ok(RevwalkCommits {
+ oids: RevwalkOids { inner: walk },
+ backend: self,
+ })
+ }
+}
commit 3ef22cf4efe5a39bb1e62d47a05fc1881ab81474
Author: Fintan Halpenny <fintan.halpenny@gmail.com>
Date: Sun Apr 12 07:21:55 2026 +0000
radicle/git/repository: Define Revwalk trait
Provides revision walk operations for walking over a commit graph.
There are two methods:
- `revwalk_oids`: returns an iterator of `Oid`s of the commit graph,
- `revwalk_commits`: returns an iterator of `CommitData` of the commit graph.
The `RevwalkPlan` describes a builder for translating into the
adapters revision walk builder.
diff --git a/crates/radicle/src/git/repository.rs b/crates/radicle/src/git/repository.rs
index aedd59005..aa7f2d7ce 100644
--- a/crates/radicle/src/git/repository.rs
+++ b/crates/radicle/src/git/repository.rs
@@ -7,13 +7,16 @@
//! - [`types`] — Git domain types, i.e. Blob, Commit, TreeEntry, etc.
//! - [`object`] — The Git object store; providing read and write capabilities of Git objects.
//! - [`reference`] — The Git reference store; providing read and write capabilities of Git references.
+//! - [`revwalk`] – Git commit graph walk operations, i.e. "revwalk".
//!
//! [`reference`]: self::reference
pub mod ancestry;
pub mod object;
pub mod reference;
+pub mod revwalk;
pub mod types;
pub use ancestry::{AheadBehind, Ancestry};
+pub use revwalk::{Revwalk, RevwalkPlan, SortOrder};
pub use types::{Blob, Commit, ObjectKind, TreeEntry};
diff --git a/crates/radicle/src/git/repository/revwalk.rs b/crates/radicle/src/git/repository/revwalk.rs
new file mode 100644
index 000000000..f7c8372d6
--- /dev/null
+++ b/crates/radicle/src/git/repository/revwalk.rs
@@ -0,0 +1,143 @@
+//! Git commit graph walk trait.
+//!
+//! [`Revwalk`] provides commit iterators, given a [`RevwalkPlan`].
+
+pub mod error;
+
+use radicle_oid::Oid;
+
+use super::types::Commit;
+
+/// The sort order for a [`RevwalkPlan`].
+#[derive(Clone, Copy, Debug, PartialEq, Eq)]
+pub enum SortOrder {
+ /// Chronological order (newest first, by commit time).
+ Chronological {
+ /// Setting `reverse` to `true` will sort in reverse-chronological
+ /// order (oldest first, by commit time).
+ reverse: bool,
+ },
+ /// Topological order (parents before children).
+ Topological {
+ /// Setting `reverse` to `true` will sort in reverse-topological order
+ /// (children before parents).
+ reverse: bool,
+ },
+}
+
+impl Default for SortOrder {
+ fn default() -> Self {
+ Self::Chronological { reverse: false }
+ }
+}
+
+/// A plan for walking the commit graph.
+///
+/// Accumulates configuration (start points, hidden commits, sort order)
+/// and is finalised by passing it to an [`Revwalk`] implementation.
+#[derive(Clone, Debug, Default)]
+pub struct RevwalkPlan {
+ start: Vec<Oid>,
+ hide: Vec<Oid>,
+ range: Option<(Oid, Oid)>,
+ sort: SortOrder,
+}
+
+impl RevwalkPlan {
+ /// Create a default walk, that walks all commits in chronological order.
+ pub fn new() -> Self {
+ Self::default()
+ }
+
+ /// Add a starting point for the walk.
+ pub fn push(mut self, oid: Oid) -> Self {
+ self.start.push(oid);
+ self
+ }
+
+ /// Exclude commits reachable from this [`Oid`].
+ pub fn hide(mut self, oid: Oid) -> Self {
+ self.hide.push(oid);
+ self
+ }
+
+ /// Walk only commits in the range `from..to` (commits reachable from
+ /// `to` but not from `from`).
+ pub fn range(mut self, from: Oid, to: Oid) -> Self {
+ self.range = Some((from, to));
+ self
+ }
+
+ /// Set the sort order for the walk.
+ pub fn sort(mut self, order: SortOrder) -> Self {
+ self.sort = order;
+ self
+ }
+
+ /// The starting points for the walk.
+ pub fn starts(&self) -> &[Oid] {
+ &self.start
+ }
+
+ /// The commits to hide (exclude reachable commits).
+ pub fn hidden(&self) -> &[Oid] {
+ &self.hide
+ }
+
+ /// The range, if set.
+ pub fn range_bounds(&self) -> Option<(Oid, Oid)> {
+ self.range
+ }
+
+ /// The sort order.
+ pub fn sort_order(&self) -> SortOrder {
+ self.sort
+ }
+}
+
+/// Git commit graph walks.
+pub trait Revwalk {
+ /// Iterator of commit [`Oid`]s.
+ type RevwalkOids<'a>: Iterator<Item = Result<Oid, error::Oids>> + 'a
+ where
+ Self: 'a;
+
+ /// Iterator of [`Commit`]s.
+ type RevwalkCommits<'a>: Iterator<Item = Result<Commit, error::Commit>> + 'a
+ where
+ Self: 'a;
+
+ /// Execute a revwalk plan, returning an iterator of commit [`Oid`]s.
+ ///
+ /// The returned iterator yields [`Oids`] for per-step failures:
+ /// - [`Oids::Backend`]: An unexpected error during iteration.
+ ///
+ /// # Errors
+ ///
+ /// - [`Backend`]: An unexpected error when initialising the walk.
+ ///
+ /// [`Backend`]: error::Init::Backend
+ /// [`Oids`]: error::Oids
+ /// [`Oids::Backend`]: error::Oids::Backend
+ fn revwalk_oids<'a>(&'a self, plan: &RevwalkPlan)
+ -> Result<Self::RevwalkOids<'a>, error::Init>;
+
+ /// Execute a revwalk plan, returning an iterator of full [`Commit`] data.
+ ///
+ /// More expensive than [`Self::revwalk_oids`] since each commit is fully
+ /// parsed during iteration.
+ ///
+ /// The returned iterator yields [`error::Commit`] for per-step failures:
+ /// - [`error::Commit::Parse`]: A commit's raw bytes could not be parsed.
+ /// - [`error::Commit::Backend`]: An unexpected error during iteration.
+ ///
+ /// # Errors
+ ///
+ /// - [`Backend`]: An unexpected error when initialising the walk.
+ ///
+ /// [`Backend`]: error::Init::Backend
+ fn revwalk_commits<'a>(
+ &'a self,
+ plan: &RevwalkPlan,
+ ) -> Result<Self::RevwalkCommits<'a>, error::Init>;
+}
diff --git a/crates/radicle/src/git/repository/revwalk/error.rs b/crates/radicle/src/git/repository/revwalk/error.rs
new file mode 100644
index 000000000..b9e087161
--- /dev/null
+++ b/crates/radicle/src/git/repository/revwalk/error.rs
@@ -0,0 +1,74 @@
+//! Errors returned by [`Revwalk`] methods and iterators.
+//!
+//! [`Revwalk`]: super::Revwalk
+
+use radicle_oid::Oid;
+use thiserror::Error;
+
+/// Error returned by [`Revwalk::revwalk_oids`] and
+/// [`Revwalk::revwalk_commits`] when initialising the walk.
+///
+/// [`Revwalk::revwalk_oids`]: super::Revwalk::revwalk_oids
+/// [`Revwalk::revwalk_commits`]: super::Revwalk::revwalk_commits
+#[derive(Debug, Error)]
+#[non_exhaustive]
+pub enum Init {
+ /// An error from the underlying git library.
+ #[error(transparent)]
+ Backend(Box<dyn std::error::Error + Send + Sync + 'static>),
+}
+
+impl Init {
+ pub fn backend<E>(err: E) -> Self
+ where
+ E: std::error::Error + Send + Sync + 'static,
+ {
+ Self::Backend(Box::new(err))
+ }
+}
+
+/// Error yielded by the [`Revwalk::RevwalkOids`] iterator.
+///
+/// [`Revwalk::RevwalkOids`]: super::Revwalk::RevwalkOids
+#[derive(Debug, Error)]
+#[non_exhaustive]
+pub enum Oids {
+ /// An error from the underlying git library.
+ #[error(transparent)]
+ Backend(Box<dyn std::error::Error + Send + Sync + 'static>),
+}
+
+impl Oids {
+ pub fn backend<E>(err: E) -> Self
+ where
+ E: std::error::Error + Send + Sync + 'static,
+ {
+ Self::Backend(Box::new(err))
+ }
+}
+
+/// Error yielded by the [`Revwalk::RevwalkCommits`] iterator.
+///
+/// [`Revwalk::RevwalkCommits`]: super::Revwalk::RevwalkCommits
+#[derive(Debug, Error)]
+#[non_exhaustive]
+pub enum Commit {
+ /// Failed to parse the raw commit bytes.
+ #[error("failed to parse commit '{oid}': {source}")]
+ Parse {
+ oid: Oid,
+ source: radicle_git_metadata::commit::ParseError,
+ },
+ /// An error from the underlying git library.
+ #[error(transparent)]
+ Backend(Box<dyn std::error::Error + Send + Sync + 'static>),
+}
+
+impl Commit {
+ pub fn backend<E>(err: E) -> Self
+ where
+ E: std::error::Error + Send + Sync + 'static,
+ {
+ Self::Backend(Box::new(err))
+ }
+}
commit ce38b1c5868e0994707eb89cd84ac86be0fcc339
Author: Fintan Halpenny <fintan.halpenny@gmail.com>
Date: Sun Apr 12 07:21:55 2026 +0000
radicle/git/repository: Define Ancestry trait
Provides ancestry operations for ancestry checks, merge base check.
diff --git a/crates/radicle/src/git/repository.rs b/crates/radicle/src/git/repository.rs
index 7f95a69f1..aedd59005 100644
--- a/crates/radicle/src/git/repository.rs
+++ b/crates/radicle/src/git/repository.rs
@@ -3,14 +3,17 @@
//! Provides a library-agnostic interface for git repository operations,
//! separating concerns into:
//!
+//! - [`ancestry`] – Git ancestry operations.
//! - [`types`] — Git domain types, i.e. Blob, Commit, TreeEntry, etc.
//! - [`object`] — The Git object store; providing read and write capabilities of Git objects.
//! - [`reference`] — The Git reference store; providing read and write capabilities of Git references.
//!
//! [`reference`]: self::reference
+pub mod ancestry;
pub mod object;
pub mod reference;
pub mod types;
+pub use ancestry::{AheadBehind, Ancestry};
pub use types::{Blob, Commit, ObjectKind, TreeEntry};
diff --git a/crates/radicle/src/git/repository/ancestry.rs b/crates/radicle/src/git/repository/ancestry.rs
new file mode 100644
index 000000000..ca5f353e5
--- /dev/null
+++ b/crates/radicle/src/git/repository/ancestry.rs
@@ -0,0 +1,56 @@
+//! Git commit graph ancestry trait.
+//!
+//! [`Ancestry`] provides merge-base, ancestor checks, and ahead/behind counts.
+
+pub mod error;
+
+use radicle_oid::Oid;
+
+/// The result of [`Ancestry::ahead_behind`].
+#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
+pub struct AheadBehind {
+ /// The given commit was ahead of the upstream by this many commits.
+ pub ahead: usize,
+ /// The given commit was behind the upstream by this many commits.
+ pub behind: usize,
+}
+
+/// Git commit graph operations.
+///
+/// Provides merge-base computation and ancestor checks.
+pub trait Ancestry {
+ /// Find the merge base (common ancestor) of two commits.
+ ///
+ /// Returns `Ok(None)` if there is no common ancestor.
+ ///
+ /// # Errors
+ ///
+ /// - [`CommitNotFound`]: One of the commits was not found.
+ /// - [`Backend`]: An unexpected error from the underlying git library.
+ ///
+ /// [`CommitNotFound`]: error::MergeBase::CommitNotFound
+ /// [`Backend`]: error::MergeBase::Backend
+ fn merge_base(&self, a: Oid, b: Oid) -> Result<Option<Oid>, error::MergeBase>;
+
+ /// Check whether `ancestor` is an ancestor of `head`.
+ ///
+ /// # Errors
+ ///
+ /// - [`CommitNotFound`]: One of the commits was not found.
+ /// - [`Backend`]: An unexpected error from the underlying git library.
+ ///
+ /// [`CommitNotFound`]: error::IsAncestor::CommitNotFound
+ /// [`Backend`]: error::IsAncestor::Backend
+ fn is_ancestor(&self, ancestor: Oid, head: Oid) -> Result<bool, error::IsAncestor>;
+
+ /// Count how many commits `commit` is ahead of and behind `upstream`.
+ ///
+ /// # Errors
+ ///
+ /// - [`CommitNotFound`]: One of the commits was not found.
+ /// - [`Backend`]: An unexpected error from the underlying git library.
+ ///
+ /// [`CommitNotFound`]: error::AheadBehind::CommitNotFound
+ /// [`Backend`]: error::AheadBehind::Backend
+ fn ahead_behind(&self, commit: Oid, upstream: Oid) -> Result<AheadBehind, error::AheadBehind>;
+}
diff --git a/crates/radicle/src/git/repository/ancestry/error.rs b/crates/radicle/src/git/repository/ancestry/error.rs
new file mode 100644
index 000000000..a04ccc9cd
--- /dev/null
+++ b/crates/radicle/src/git/repository/ancestry/error.rs
@@ -0,0 +1,75 @@
+//! Errors returned by [`Ancestry`] methods.
+//!
+//! [`Ancestry`]: super::Ancestry
+
+use radicle_oid::Oid;
+use thiserror::Error;
+
+/// Error returned by [`Ancestry::merge_base`].
+///
+/// [`Ancestry::merge_base`]: super::Ancestry::merge_base
+#[derive(Debug, Error)]
+#[non_exhaustive]
+pub enum MergeBase {
+ /// One of the commits could not be found
+ #[error("failed to find commit '{oid}' during merge base calculation")]
+ CommitNotFound { oid: Oid },
+ /// An error from the underlying git library.
+ #[error(transparent)]
+ Backend(Box<dyn std::error::Error + Send + Sync + 'static>),
+}
+
+impl MergeBase {
+ pub fn backend<E>(err: E) -> Self
+ where
+ E: std::error::Error + Send + Sync + 'static,
+ {
+ Self::Backend(Box::new(err))
+ }
+}
+
+/// Error returned by [`Ancestry::is_ancestor`].
+///
+/// [`Ancestry::is_ancestor`]: super::Ancestry::is_ancestor
+#[derive(Debug, Error)]
+#[non_exhaustive]
+pub enum IsAncestor {
+ /// One of the commits could not be found.
+ #[error("failed to find commit '{oid}'")]
+ CommitNotFound { oid: Oid },
+ /// An error from the underlying git library.
+ #[error(transparent)]
+ Backend(Box<dyn std::error::Error + Send + Sync + 'static>),
+}
+
+impl IsAncestor {
+ pub fn backend<E>(err: E) -> Self
+ where
+ E: std::error::Error + Send + Sync + 'static,
+ {
+ Self::Backend(Box::new(err))
+ }
+}
+
+/// Error returned by [`Ancestry::ahead_behind`].
+///
+/// [`Ancestry::ahead_behind`]: super::Ancestry::ahead_behind
+#[derive(Debug, Error)]
+#[non_exhaustive]
+pub enum AheadBehind {
+ /// One of the commits was not found.
+ #[error("commit '{oid}' was not found")]
+ CommitNotFound { oid: Oid },
+ /// An error from the underlying git library.
+ #[error(transparent)]
+ Backend(Box<dyn std::error::Error + Send + Sync + 'static>),
+}
+
+impl AheadBehind {
+ pub fn backend<E>(err: E) -> Self
+ where
+ E: std::error::Error + Send + Sync + 'static,
+ {
+ Self::Backend(Box::new(err))
+ }
+}
commit 56f023496f4d8cafe7ffb378a93fe41c4c411cb4
Author: Fintan Halpenny <fintan.halpenny@gmail.com>
Date: Sun Apr 12 07:19:50 2026 +0000
radicle/git/repository: Define reference::Reader, reference::Writer, symbolic::Writer
Introduce the reference reader, writer, and symbolic extension trait for Git
reference databases.
The reader captures resolving reference targets, and listing references.
The writers capture writing and deleting direct references, an
extension trait for writing a symbolic reference.
diff --git a/crates/radicle/src/git/repository/reference.rs b/crates/radicle/src/git/repository/reference.rs
index 439f52ac2..81f3fea8e 100644
--- a/crates/radicle/src/git/repository/reference.rs
+++ b/crates/radicle/src/git/repository/reference.rs
@@ -1 +1,187 @@
//! Git reference operations.
+//!
+//! The module provides the following traits:
+//! - [`Reader`] for reading references,
+//! - [`Writer`] for writing references, and
+//! - [`symbolic::Writer`], which extends [`Writer`], for writing symbolic references.
+
+pub mod error;
+pub mod symbolic;
+
+use radicle_oid::Oid;
+
+use radicle_git_ref_format::refspec::PatternStr;
+use radicle_git_ref_format::{Qualified, RefStr};
+
+/// Read Git references.
+///
+/// # Target Resolution
+///
+/// Direct references point to a target [`Oid`]. For most references, this is a
+/// commit object. In the case of annotated tags, this will be a tag object.
+/// In both cases, the target returned will be a commit [`Oid`]; where, in the
+/// case of an annotated tag, it is the commit of the tag itself.
+///
+/// Symbolic references point to another reference. These references are peeled
+/// until they find the target [`Oid`] of a direct reference.
+pub trait Reader {
+ type References<'a>: Iterator<Item = Result<(Qualified<'static>, Oid), error::read::ListReference>>
+ + 'a
+ where
+ Self: 'a;
+
+ /// Resolve a reference to its target [`Oid`].
+ ///
+ /// Returns `None` if the reference does not exist.
+ ///
+ /// # Errors
+ ///
+ /// - [`Backend`]: An unexpected error from the underlying git library.
+ ///
+ /// [`Backend`]: error::read::RefTarget::Backend
+ fn ref_target<R>(&self, name: &R) -> Result<Option<Oid>, error::read::RefTarget>
+ where
+ R: AsRef<RefStr>;
+
+ /// Resolve a reference to its target [`Oid`], returning an error if it does
+ /// not exist.
+ ///
+ /// # Errors
+ ///
+ /// - [`NotFound`]: The reference identified by `name` was not found.
+ /// - [`Backend`]: An unexpected error from the underlying git library.
+ ///
+ /// [`NotFound`]: error::read::RefTarget::NotFound
+ /// [`Backend`]: error::read::RefTarget::Backend
+ fn try_ref_target<R>(&self, name: &R) -> Result<Oid, error::read::RefTarget>
+ where
+ R: AsRef<RefStr>,
+ {
+ self.ref_target(name)?
+ .ok_or_else(|| error::read::RefTarget::NotFound(name.as_ref().to_ref_string()))
+ }
+
+ /// List all references matching a glob pattern.
+ ///
+ /// Each reference is parsed and peeled to its target commit. If either of
+ /// these operations fails, it is returned in the iterator. The caller may
+ /// choose to log these failures and skip the entry.
+ ///
+ /// # Errors
+ ///
+ /// - [`Backend`]: An unexpected error when initialising the reference
+ /// iterator.
+ ///
+ /// The iterator itself yields [`ListReference`] for per-reference
+ /// failures:
+ /// - [`Parse`]: A reference name could not be parsed as a [`Qualified`].
+ /// - [`Peel`]: A reference could not be peeled to a target commit.
+ /// - [`ListReference::Backend`]: An unexpected error during iteration.
+ ///
+ /// [`Backend`]: error::read::ListRefs::Backend
+ /// [`ListReference`]: error::read::ListReference
+ /// [`Parse`]: error::read::ListReference::Parse
+ /// [`Peel`]: error::read::ListReference::Peel
+ /// [`ListReference::Backend`]: error::read::ListReference::Backend
+ fn list_refs<'a, P>(
+ &'a self,
+ pattern: &P,
+ ) -> Result<Self::References<'a>, error::read::ListRefs>
+ where
+ P: AsRef<PatternStr>;
+}
+
+/// The mode of operation for writing a reference.
+#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
+pub enum Target {
+ /// Set the reference to the given `target`, only if the reference does not
+ /// already exist.
+ Create { target: Oid },
+ /// Set the reference to the given `target`, the reference may exist
+ /// already.
+ Upsert { target: Oid },
+ /// Set the reference to the given `target`, only if the reference's
+ /// current value matches `expected`.
+ Cas { target: Oid, expected: Oid },
+}
+
+impl Target {
+ /// Construct the [`Create`] variant, which creates a new reference pointing
+ /// to the `target`. This variant will only succeed if the reference
+ /// pointing to `target` does not already exist.
+ ///
+ /// [`Create`]: Target::Create
+ pub fn create(target: Oid) -> Self {
+ Self::Create { target }
+ }
+
+ /// Construct the [`Upsert`] variant, which creates a new reference pointing
+ /// to the `target`. This variant will succeed even if the reference
+ /// pointing to `target` already exists.
+ ///
+ /// [`Upsert`]: Target::Upsert
+ pub fn upsert<R>(target: Oid) -> Self
+ where
+ R: AsRef<RefStr>,
+ {
+ Self::Upsert { target }
+ }
+
+ /// Construct the [`Cas`] variant, which creates a new reference pointing to
+ /// the `target`. This variant will succeed only when the `expected` value
+ /// matches the previously existing target value.
+ ///
+ /// [`Cas`]: Target::Cas
+ pub fn cas(target: Oid, expected: Oid) -> Self {
+ Self::Cas { target, expected }
+ }
+
+ /// The target [`Oid`] that the reference should point to after the write.
+ pub fn target(&self) -> Oid {
+ match self {
+ Self::Create { target } | Self::Upsert { target } | Self::Cas { target, .. } => *target,
+ }
+ }
+}
+
+/// Write Git references.
+pub trait Writer {
+ /// Set a reference to the given [`Target`].
+ ///
+ /// # Errors
+ ///
+ /// - [`MissingTarget`]: The target [`Oid`] does not exist in the object
+ /// database.
+ /// - [`ReferenceExists`]: The reference already exists (for
+ /// [`Target::Create`]).
+ /// - [`CasFailed`]: The reference's current value did not match the
+ /// expected value (for [`Target::Cas`]).
+ /// - [`Backend`]: An unexpected error from the underlying git library.
+ ///
+ /// [`MissingTarget`]: error::write::WriteRef::MissingTarget
+ /// [`ReferenceExists`]: error::write::WriteRef::ReferenceExists
+ /// [`CasFailed`]: error::write::WriteRef::CasFailed
+ /// [`Backend`]: error::write::WriteRef::Backend
+ fn write_ref<R>(
+ &self,
+ name: &R,
+ target: Target,
+ reflog: &str,
+ ) -> Result<(), error::write::WriteRef>
+ where
+ R: AsRef<RefStr>;
+
+ /// Delete a reference from the Git repository.
+ ///
+ /// This operation must be idempotent, i.e. successive deletes of the same
+ /// reference name must succeed.
+ ///
+ /// # Errors
+ ///
+ /// - [`Backend`]: An unexpected error from the underlying git library.
+ ///
+ /// [`Backend`]: error::write::DeleteRef::Backend
+ fn delete_ref<R>(&self, name: &R) -> Result<(), error::write::DeleteRef>
+ where
+ R: AsRef<RefStr>;
+}
diff --git a/crates/radicle/src/git/repository/reference/error.rs b/crates/radicle/src/git/repository/reference/error.rs
new file mode 100644
index 000000000..fd3e27c15
--- /dev/null
+++ b/crates/radicle/src/git/repository/reference/error.rs
@@ -0,0 +1,4 @@
+//! Errors for Git reference operations, namespaced by read and write.
+
+pub mod read;
+pub mod write;
diff --git a/crates/radicle/src/git/repository/reference/error/read.rs b/crates/radicle/src/git/repository/reference/error/read.rs
new file mode 100644
index 000000000..ec8dfa78d
--- /dev/null
+++ b/crates/radicle/src/git/repository/reference/error/read.rs
@@ -0,0 +1,72 @@
+//! Errors returned by [`Reader`] methods.
+//!
+//! [`Reader`]: super::super::Reader
+
+use radicle_git_ref_format::RefString;
+use thiserror::Error;
+
+/// Error returned by [`Reader::ref_target`].
+///
+/// [`Reader::ref_target`]: super::super::Reader::ref_target
+#[derive(Debug, Error)]
+#[non_exhaustive]
+pub enum RefTarget {
+ /// The requested reference was not found.
+ #[error("failed to find reference '{0}'")]
+ NotFound(RefString),
+ /// An error from the underlying git library.
+ #[error(transparent)]
+ Backend(Box<dyn std::error::Error + Send + Sync + 'static>),
+}
+
+impl RefTarget {
+ pub fn backend<E: std::error::Error + Send + Sync + 'static>(err: E) -> Self {
+ Self::Backend(Box::new(err))
+ }
+}
+
+/// Error returned by [`Reader::list_refs`].
+///
+/// [`Reader::list_refs`]: super::super::Reader::list_refs
+#[derive(Debug, Error)]
+#[non_exhaustive]
+pub enum ListRefs {
+ /// An error from the underlying git library.
+ #[error(transparent)]
+ Backend(Box<dyn std::error::Error + Send + Sync + 'static>),
+}
+
+impl ListRefs {
+ pub fn backend<E: std::error::Error + Send + Sync + 'static>(err: E) -> Self {
+ Self::Backend(Box::new(err))
+ }
+}
+
+/// Error yielded by the [`Reader::list_refs`] iterator.
+///
+/// [`Reader::list_refs`]: super::super::Reader::list_refs
+#[derive(Debug, Error)]
+#[non_exhaustive]
+pub enum ListReference {
+ /// The reference database provided a malformed reference name.
+ #[error("failed to parse reference '{name}': {source}")]
+ Parse {
+ name: String,
+ source: radicle_git_ref_format::Error,
+ },
+ /// The reference could not be peeled to a target commit.
+ #[error("failed to peel '{name}' to target commit: {source}")]
+ Peel {
+ name: radicle_git_ref_format::Qualified<'static>,
+ source: Box<dyn std::error::Error + Send + Sync + 'static>,
+ },
+ /// An error from the underlying git library.
+ #[error(transparent)]
+ Backend(Box<dyn std::error::Error + Send + Sync + 'static>),
+}
+
+impl ListReference {
+ pub fn backend<E: std::error::Error + Send + Sync + 'static>(err: E) -> Self {
+ Self::Backend(Box::new(err))
+ }
+}
diff --git a/crates/radicle/src/git/repository/reference/error/write.rs b/crates/radicle/src/git/repository/reference/error/write.rs
new file mode 100644
index 000000000..a654e04c7
--- /dev/null
+++ b/crates/radicle/src/git/repository/reference/error/write.rs
@@ -0,0 +1,86 @@
+//! Errors returned by [`Writer`] and [`symbolic::Writer`] methods.
+//!
+//! [`Writer`]: super::super::Writer
+//! [`symbolic::Writer`]: super::super::symbolic::Writer
+
+use radicle_git_ref_format::RefString;
+use radicle_oid::Oid;
+use thiserror::Error;
+
+/// Error returned by [`Writer::write_ref`].
+///
+/// [`Writer::write_ref`]: super::super::Writer::write_ref
+#[derive(Debug, Error)]
+#[non_exhaustive]
+pub enum WriteRef {
+ /// Compare-and-swap failed.
+ #[error(
+ "failed to update reference '{name}' due to compare-and-swap failure with expected value {expected}"
+ )]
+ CasFailed { name: String, expected: Oid },
+ /// The target OID does not exist in the object database.
+ #[error("target object {target} not found when writing reference `{name}`")]
+ MissingTarget { name: String, target: Oid },
+ /// The reference already exists (for create-only writes).
+ #[error("reference '{name}' already exists")]
+ ReferenceExists { name: String },
+ /// An error from the underlying git library.
+ #[error(transparent)]
+ Backend(Box<dyn std::error::Error + Send + Sync + 'static>),
+}
+
+impl WriteRef {
+ pub fn backend<E: std::error::Error + Send + Sync + 'static>(err: E) -> Self {
+ Self::Backend(Box::new(err))
+ }
+}
+
+/// Error returned by [`Writer::delete_ref`].
+///
+/// [`Writer::delete_ref`]: super::super::Writer::delete_ref
+#[derive(Debug, Error)]
+#[non_exhaustive]
+pub enum DeleteRef {
+ /// An error from the underlying git library.
+ #[error(transparent)]
+ Backend(Box<dyn std::error::Error + Send + Sync + 'static>),
+}
+
+impl DeleteRef {
+ pub fn backend<E: std::error::Error + Send + Sync + 'static>(err: E) -> Self {
+ Self::Backend(Box::new(err))
+ }
+}
+
+/// Error returned by [`Writer::write_symbolic_ref`].
+///
+/// [`Writer::write_symbolic_ref`]: super::super::symbolic::Writer::write_symbolic_ref
+#[derive(Debug, Error)]
+#[non_exhaustive]
+pub enum WriteSymbolicRef {
+ /// The target reference does not exist.
+ #[error("could not create symbolic reference '{name}' due to missing target '{target}'")]
+ MissingTarget { name: RefString, target: RefString },
+ /// The named reference already exists.
+ #[error(
+ "could not create symbolic reference from '{name}' to '{target}', the reference already exists"
+ )]
+ ReferenceExists { name: RefString, target: RefString },
+ /// Compare-and-swap failed.
+ #[error(
+ "failed to update reference '{name}' due to compare-and-swap failure with expected value {expected}"
+ )]
+ CasFailed {
+ name: RefString,
+ expected: RefString,
+ },
+ /// An error from the underlying git library.
+ #[error(transparent)]
+ Backend(Box<dyn std::error::Error + Send + Sync + 'static>),
+}
+
+impl WriteSymbolicRef {
+ pub fn backend<E: std::error::Error + Send + Sync + 'static>(err: E) -> Self {
+ Self::Backend(Box::new(err))
+ }
+}
diff --git a/crates/radicle/src/git/repository/reference/symbolic.rs b/crates/radicle/src/git/repository/reference/symbolic.rs
new file mode 100644
index 000000000..0dbc41a6f
--- /dev/null
+++ b/crates/radicle/src/git/repository/reference/symbolic.rs
@@ -0,0 +1,115 @@
+//! Git symbolic reference operations.
+//!
+//! The module provides the following traits:
+//! - [`Writer`] for writing symbolic references.
+
+use radicle_git_ref_format::{RefStr, RefString};
+
+use super::error;
+
+/// The mode of operation for writing a symbolic reference.
+///
+/// See [`Writer::write_symbolic_ref`].
+#[derive(Clone, Debug, PartialEq, Eq)]
+pub enum Target {
+ /// Set the reference to the given `target`, only if the reference does not
+ /// already exist.
+ Create { target: RefString },
+ /// Set the reference to the given `target`, the reference may exist
+ /// already.
+ Upsert { target: RefString },
+ /// Set the reference to the given `target`, only if the current value of
+ /// the reference matches `expected`.
+ Cas {
+ target: RefString,
+ expected: RefString,
+ },
+}
+
+impl Target {
+ /// Construct the [`Create`] variant, which creates a new symbolic reference
+ /// pointing to the `target`. This variant will only succeed if the
+ /// reference pointing to `target` does not already exist.
+ ///
+ /// [`Create`]: Target::Create
+ pub fn create<R>(target: R) -> Self
+ where
+ R: AsRef<RefStr>,
+ {
+ Self::Create {
+ target: target.as_ref().to_ref_string(),
+ }
+ }
+
+ /// Construct the [`Upsert`] variant, which creates a new symbolic reference
+ /// pointing to the `target`. This variant will succeed even if the
+ /// reference pointing to `target` already exists.
+ ///
+ /// [`Upsert`]: Target::Upsert
+ pub fn upsert<R>(target: R) -> Self
+ where
+ R: AsRef<RefStr>,
+ {
+ Self::Upsert {
+ target: target.as_ref().to_ref_string(),
+ }
+ }
+
+ /// Construct the [`Cas`] variant, which creates a new symbolic reference
+ /// pointing to the `target`. This variant will succeed only when the
+ /// `expected` value matches the previously existing target value.
+ ///
+ /// [`Cas`]: Target::Cas
+ pub fn cas<T, E>(target: T, expected: E) -> Self
+ where
+ T: AsRef<RefStr>,
+ E: AsRef<RefStr>,
+ {
+ Self::Cas {
+ target: target.as_ref().to_ref_string(),
+ expected: expected.as_ref().to_ref_string(),
+ }
+ }
+
+ /// The target [`RefString`] that the symbolic reference should point to
+ /// after the write.
+ pub fn target(&self) -> &RefString {
+ match self {
+ Self::Create { target } | Self::Upsert { target } | Self::Cas { target, .. } => target,
+ }
+ }
+}
+
+/// Extension trait for symbolic reference support.
+///
+/// A symbolic reference is one that points to another reference name rather
+/// than directly to an [`Oid`] (e.g. `HEAD → refs/heads/main`).
+///
+/// [`Oid`]: radicle_oid::Oid
+pub trait Writer: super::Writer {
+ /// Create or update a symbolic reference, identified by `name`, with the
+ /// given [`Target`].
+ ///
+ /// # Errors
+ ///
+ /// - [`MissingTarget`]: The target reference does not exist in the
+ /// reference database.
+ /// - [`ReferenceExists`]: The symbolic reference `name` already exists
+ /// (for [`Target::Create`]).
+ /// - [`CasFailed`]: The current target did not match the expected value
+ /// (for [`Target::Cas`]).
+ /// - [`Backend`]: An unexpected error from the underlying git library.
+ ///
+ /// [`MissingTarget`]: error::write::WriteSymbolicRef::MissingTarget
+ /// [`ReferenceExists`]: error::write::WriteSymbolicRef::ReferenceExists
+ /// [`CasFailed`]: error::write::WriteSymbolicRef::CasFailed
+ /// [`Backend`]: error::write::WriteSymbolicRef::Backend
+ fn write_symbolic_ref<R>(
+ &self,
+ name: &R,
+ target: Target,
+ reflog: &str,
+ ) -> Result<(), error::write::WriteSymbolicRef>
+ where
+ R: AsRef<RefStr>;
+}
commit 9f07fdef369a6d6f6751869e17fcfe2d21e0d226
Author: Fintan Halpenny <fintan.halpenny@gmail.com>
Date: Sun Apr 12 07:18:52 2026 +0000
radicle/git/repository: Define object::Reader and object::Writer traits
Introduce the object reader and writer traits for Git object databases.
The reader captures methods for reading blobs and commits, as well as
checking the existence of objects.
The writer captures methods for writing blobs, trees, and commits.
diff --git a/crates/radicle/src/git/repository/object.rs b/crates/radicle/src/git/repository/object.rs
index 745082222..b4983855a 100644
--- a/crates/radicle/src/git/repository/object.rs
+++ b/crates/radicle/src/git/repository/object.rs
@@ -1 +1,176 @@
//! Git object database abstraction.
+//!
+//! The module provides two traits:
+//! - [`Reader`] for reading objects, and
+//! - [`Writer`] for writing objects
+
+pub mod error;
+
+use std::path::Path;
+
+use radicle_oid::Oid;
+
+use super::types::{Blob, Commit, TreeEntry};
+
+/// A handle for reading Git objects from the Git object database.
+pub trait Reader {
+ /// Find a blob by its [`Oid`].
+ ///
+ /// Returns `None` if the blob does not exist.
+ ///
+ /// # Errors
+ ///
+ /// - [`Backend`]: An unexpected error from the underlying git library.
+ ///
+ /// [`Backend`]: error::read::Blob::Backend
+ fn blob(&self, oid: Oid) -> Result<Option<Blob>, error::read::Blob>;
+
+ /// Find a blob by its [`Oid`], returning an error if it does not exist.
+ ///
+ /// # Errors
+ ///
+ /// - [`NotFound`]: The blob identified by `oid` does not exist.
+ /// - [`Backend`]: An unexpected error from the underlying git library.
+ ///
+ /// [`NotFound`]: error::read::Blob::NotFound
+ /// [`Backend`]: error::read::Blob::Backend
+ fn try_blob(&self, oid: Oid) -> Result<Blob, error::read::Blob> {
+ self.blob(oid)?.ok_or(error::read::Blob::NotFound { oid })
+ }
+
+ /// Find a blob at a `path` within a commit's tree.
+ ///
+ /// Returns `None` if the path does not exist in the commit's tree.
+ ///
+ /// # Errors
+ ///
+ /// - [`CommitNotFound`]: The commit identified by `commit` does not exist.
+ /// - [`Tree`]: Failed to get the commit's tree.
+ /// - [`TreeEntry`]: Failed to look up the entry at `path` in the tree.
+ /// - [`Object`]: The entry was found but failed to resolve to an object.
+ /// - [`TypeMismatch`]: The resolved object is not a blob.
+ /// - [`Backend`]: An unexpected error from the underlying git library.
+ ///
+ /// [`CommitNotFound`]: error::read::BlobAt::CommitNotFound
+ /// [`Tree`]: error::read::BlobAt::Tree
+ /// [`TreeEntry`]: error::read::BlobAt::TreeEntry
+ /// [`Object`]: error::read::BlobAt::Object
+ /// [`TypeMismatch`]: error::read::BlobAt::TypeMismatch
+ /// [`Backend`]: error::read::BlobAt::Backend
+ fn blob_at<P>(&self, commit: Oid, path: &P) -> Result<Option<Blob>, error::read::BlobAt>
+ where
+ P: AsRef<Path>;
+
+ /// Find a blob at a `path` within a commit's tree, returning an error if
+ /// the path does not exist.
+ ///
+ /// # Errors
+ ///
+ /// - [`CommitNotFound`]: The commit identified by `commit` does not exist.
+ /// - [`MissingBlob`]: The path does not exist in the commit's tree.
+ /// - [`Tree`]: Failed to get the commit's tree.
+ /// - [`TreeEntry`]: Failed to look up the entry at `path` in the tree.
+ /// - [`Object`]: The entry was found but failed to resolve to an object.
+ /// - [`TypeMismatch`]: The resolved object is not a blob.
+ /// - [`Backend`]: An unexpected error from the underlying git library.
+ ///
+ /// [`CommitNotFound`]: error::read::BlobAt::CommitNotFound
+ /// [`MissingBlob`]: error::read::BlobAt::MissingBlob
+ /// [`Tree`]: error::read::BlobAt::Tree
+ /// [`TreeEntry`]: error::read::BlobAt::TreeEntry
+ /// [`Object`]: error::read::BlobAt::Object
+ /// [`TypeMismatch`]: error::read::BlobAt::TypeMismatch
+ /// [`Backend`]: error::read::BlobAt::Backend
+ fn try_blob_at<P>(&self, commit: Oid, path: &P) -> Result<Blob, error::read::BlobAt>
+ where
+ P: AsRef<Path>,
+ {
+ self.blob_at(commit, path)?
+ .ok_or_else(|| error::read::BlobAt::MissingBlob {
+ commit,
+ path: path.as_ref().to_path_buf(),
+ })
+ }
+
+ /// Read a commit by its [`Oid`].
+ ///
+ /// Returns `None` if the commit does not exist.
+ ///
+ /// # Errors
+ ///
+ /// - [`Parse`]: The object was found but could not be parsed as a commit.
+ /// - [`Backend`]: An unexpected error from the underlying git library.
+ ///
+ /// [`Parse`]: error::read::Commit::Parse
+ /// [`Backend`]: error::read::Commit::Backend
+ fn commit(&self, oid: Oid) -> Result<Option<Commit>, error::read::Commit>;
+
+ /// Read a commit by its [`Oid`], returning an error if it does not exist.
+ ///
+ /// # Errors
+ ///
+ /// - [`NotFound`]: The commit identified by `oid` does not exist.
+ /// - [`Parse`]: The object was found but could not be parsed as a commit.
+ /// - [`Backend`]: An unexpected error from the underlying git library.
+ ///
+ /// [`NotFound`]: error::read::Commit::NotFound
+ /// [`Parse`]: error::read::Commit::Parse
+ /// [`Backend`]: error::read::Commit::Backend
+ fn try_commit(&self, oid: Oid) -> Result<Commit, error::read::Commit> {
+ self.commit(oid)?
+ .ok_or(error::read::Commit::NotFound { oid })
+ }
+
+ /// Check whether an object exists in the object database.
+ ///
+ /// # Errors
+ ///
+ /// - [`Backend`]: An unexpected error from the underlying git library.
+ ///
+ /// [`Backend`]: error::read::Exists::Backend
+ fn exists(&self, oid: Oid) -> Result<bool, error::read::Exists>;
+}
+
+/// Write Git objects to the Git object database.
+///
+/// Every method returns the content-addressed [`Oid`] of the written object.
+pub trait Writer {
+ /// Write a blob given its raw bytes content.
+ ///
+ /// # Errors
+ ///
+ /// - [`Backend`]: An unexpected error from the underlying git library.
+ ///
+ /// [`Backend`]: error::write::Blob::Backend
+ fn write_blob(&self, content: &[u8]) -> Result<Oid, error::write::Blob>;
+
+ /// Write a tree from a set of entries.
+ ///
+ /// [`TreeEntry::Blob`] entries have their content written as blobs first.
+ /// [`TreeEntry::BlobRef`] entries reference existing blobs by [`Oid`].
+ ///
+ /// # Errors
+ ///
+ /// - [`MissingBlob`]: A [`TreeEntry::BlobRef`] references an [`Oid`] that
+ /// does not exist in the object database.
+ /// - [`WriteBlob`]: Failed to write a blob for a [`TreeEntry::Blob`] entry.
+ /// - [`Backend`]: An unexpected error from the underlying git library.
+ ///
+ /// [`MissingBlob`]: error::write::Tree::MissingBlob
+ /// [`WriteBlob`]: error::write::Tree::WriteBlob
+ /// [`Backend`]: error::write::Tree::Backend
+ fn write_tree(&self, entries: &[TreeEntry]) -> Result<Oid, error::write::Tree>;
+
+ /// Write a commit from raw bytes.
+ ///
+ /// The caller is responsible for producing valid Git commit bytes
+ /// (e.g. via [`radicle_git_metadata`]). This is necessary for signed
+ /// commits where the exact byte representation must be controlled.
+ ///
+ /// # Errors
+ ///
+ /// - [`Backend`]: An unexpected error from the underlying git library.
+ ///
+ /// [`Backend`]: error::write::Commit::Backend
+ fn write_commit(&self, bytes: &[u8]) -> Result<Oid, error::write::Commit>;
+}
diff --git a/crates/radicle/src/git/repository/object/error.rs b/crates/radicle/src/git/repository/object/error.rs
new file mode 100644
index 000000000..fbb348c4d
--- /dev/null
+++ b/crates/radicle/src/git/repository/object/error.rs
@@ -0,0 +1,4 @@
+//! Errors for Git object operations, namespaced by read and write.
+
+pub mod read;
+pub mod write;
diff --git a/crates/radicle/src/git/repository/object/error/read.rs b/crates/radicle/src/git/repository/object/error/read.rs
new file mode 100644
index 000000000..f61ada570
--- /dev/null
+++ b/crates/radicle/src/git/repository/object/error/read.rs
@@ -0,0 +1,123 @@
+//! Errors returned by [`Reader`] methods.
+//!
+//! [`Reader`]: super::super::Reader
+
+use std::path::PathBuf;
+
+use radicle_oid::Oid;
+use thiserror::Error;
+
+use crate::git::repository::types;
+
+/// Error returned by [`Reader::blob`].
+///
+/// [`Reader::blob`]: super::super::Reader::blob
+#[derive(Debug, Error)]
+#[non_exhaustive]
+pub enum Blob {
+ /// The blob was not found.
+ #[error("failed to find blob '{oid}'")]
+ NotFound { oid: Oid },
+ /// An error from the underlying git library.
+ #[error(transparent)]
+ Backend(Box<dyn std::error::Error + Send + Sync + 'static>),
+}
+
+impl Blob {
+ pub fn backend<E: std::error::Error + Send + Sync + 'static>(err: E) -> Self {
+ Self::Backend(Box::new(err))
+ }
+}
+
+/// Error returned by [`Reader::blob_at`].
+///
+/// [`Reader::blob_at`]: super::super::Reader::blob_at
+#[derive(Debug, Error)]
+#[non_exhaustive]
+pub enum BlobAt {
+ /// Failed to find the commit.
+ #[error("failed to find commit '{commit}' to retrieve blob at {path:?}")]
+ CommitNotFound { commit: Oid, path: PathBuf },
+ /// Failed to get the associated tree of the commit.
+ #[error("failed to get associated tree of the commit '{commit}'")]
+ Tree {
+ commit: Oid,
+ source: Box<dyn std::error::Error + Send + Sync + 'static>,
+ },
+ /// Failed to get the entry at `path` in the commit's tree.
+ #[error("failed to get tree entry {path:?} in the commit '{commit}'")]
+ TreeEntry {
+ commit: Oid,
+ path: PathBuf,
+ source: Box<dyn std::error::Error + Send + Sync + 'static>,
+ },
+ /// Failed to resolve the object at the given path.
+ #[error("failed to resolve the object at {path:?} in the commit '{commit}'")]
+ Object {
+ commit: Oid,
+ path: PathBuf,
+ source: Box<dyn std::error::Error + Send + Sync + 'static>,
+ },
+ /// The object exists but is not a blob.
+ #[error("object {oid} has type `{actual}`, expected `{expected}`")]
+ TypeMismatch {
+ oid: Oid,
+ expected: types::ObjectKind,
+ actual: String,
+ },
+ /// The path does not exist in the commit's tree.
+ #[error("the blob identified by {path:?} does not exist in the commit '{commit}'")]
+ MissingBlob { commit: Oid, path: PathBuf },
+ /// An error from the underlying git library.
+ #[error(transparent)]
+ Backend(Box<dyn std::error::Error + Send + Sync + 'static>),
+}
+
+impl BlobAt {
+ pub fn backend<E: std::error::Error + Send + Sync + 'static>(err: E) -> Self {
+ Self::Backend(Box::new(err))
+ }
+}
+
+/// Error returned by [`Reader::commit`].
+///
+/// [`Reader::commit`]: super::super::Reader::commit
+#[derive(Debug, Error)]
+#[non_exhaustive]
+pub enum Commit {
+ /// The commit was not found.
+ #[error("failed to find commit '{oid}'")]
+ NotFound { oid: Oid },
+ /// Failed to parse the raw commit bytes.
+ #[error("failed to parse commit '{oid}': {source}")]
+ Parse {
+ oid: Oid,
+ source: radicle_git_metadata::commit::ParseError,
+ },
+ /// An error from the underlying git library.
+ #[error(transparent)]
+ Backend(Box<dyn std::error::Error + Send + Sync + 'static>),
+}
+
+impl Commit {
+ pub fn backend<E: std::error::Error + Send + Sync + 'static>(err: E) -> Self {
+ Self::Backend(Box::new(err))
+ }
+}
+
+/// Error returned by [`Reader::exists`].
+///
+/// [`Reader::exists`]: super::super::Reader::exists
+#[derive(Debug, Error)]
+#[non_exhaustive]
+pub enum Exists {
+ /// An error from the underlying git library.
+ #[error(transparent)]
+ Backend(Box<dyn std::error::Error + Send + Sync + 'static>),
+}
+
+impl Exists {
+ pub fn backend<E: std::error::Error + Send + Sync + 'static>(err: E) -> Self {
+ Self::Backend(Box::new(err))
+ }
+}
diff --git a/crates/radicle/src/git/repository/object/error/write.rs b/crates/radicle/src/git/repository/object/error/write.rs
new file mode 100644
index 000000000..bf3d6f87a
--- /dev/null
+++ b/crates/radicle/src/git/repository/object/error/write.rs
@@ -0,0 +1,70 @@
+//! Errors returned by [`Writer`] methods.
+//!
+//! [`Writer`]: super::super::Writer
+
+use std::path::PathBuf;
+
+use radicle_oid::Oid;
+use thiserror::Error;
+
+/// Error returned by [`Writer::write_blob`].
+///
+/// [`Writer::write_blob`]: super::super::Writer::write_blob
+#[derive(Debug, Error)]
+#[non_exhaustive]
+pub enum Blob {
+ /// An error from the underlying git library.
+ #[error(transparent)]
+ Backend(Box<dyn std::error::Error + Send + Sync + 'static>),
+}
+
+impl Blob {
+ pub fn backend<E: std::error::Error + Send + Sync + 'static>(err: E) -> Self {
+ Self::Backend(Box::new(err))
+ }
+}
+
+/// Error returned by [`Writer::write_tree`].
+///
+/// [`Writer::write_tree`]: super::super::Writer::write_tree
+#[derive(Debug, Error)]
+#[non_exhaustive]
+pub enum Tree {
+ /// A `BlobRef` entry references an OID that does not exist.
+ #[error("blob reference '{oid}' does not exist in the object database")]
+ MissingBlob { oid: Oid },
+ /// Failed to write blob contents for a [`TreeEntry::Blob`] entry.
+ ///
+ /// [`TreeEntry::Blob`]: crate::git::repository::types::TreeEntry::Blob
+ #[error("failed to write blob contents to {path:?}")]
+ WriteBlob {
+ path: PathBuf,
+ source: Box<dyn std::error::Error + Send + Sync + 'static>,
+ },
+ /// An error from the underlying git library.
+ #[error(transparent)]
+ Backend(Box<dyn std::error::Error + Send + Sync + 'static>),
+}
+
+impl Tree {
+ pub fn backend<E: std::error::Error + Send + Sync + 'static>(err: E) -> Self {
+ Self::Backend(Box::new(err))
+ }
+}
+
+/// Error returned by [`Writer::write_commit`].
+///
+/// [`Writer::write_commit`]: super::super::Writer::write_commit
+#[derive(Debug, Error)]
+#[non_exhaustive]
+pub enum Commit {
+ /// An error from the underlying git library.
+ #[error(transparent)]
+ Backend(Box<dyn std::error::Error + Send + Sync + 'static>),
+}
+
+impl Commit {
+ pub fn backend<E: std::error::Error + Send + Sync + 'static>(err: E) -> Self {
+ Self::Backend(Box::new(err))
+ }
+}
commit e6a563b42ea2955c95cefc1b6bd26c227695d2e6
Author: Fintan Halpenny <fintan.halpenny@gmail.com>
Date: Sun Apr 12 07:04:27 2026 +0000
radicle/git/repository: Define Git domain types
Introduce `git::repository` module.
A skeleton is created for the submodules:
- `object`,
- `reference`, and
- `types`
The Git domain `types` are added in this change, and cover:
- `ObjectKind` – an enumeration of the Git object kinds.
- `Commit` – a type alias to `CommitData<Oid, Oid>`.
- `Blob` – a simple type capturing a blob's `Oid` and content.
- `TreeEntry` – an enum representing the inputs for writing a tree.
- `RefUpdate` – a type for representing batch updates of references
for Git repositories.
diff --git a/crates/radicle/src/git.rs b/crates/radicle/src/git.rs
index 6c5cceb6e..58ef8e9cb 100644
--- a/crates/radicle/src/git.rs
+++ b/crates/radicle/src/git.rs
@@ -1,5 +1,6 @@
pub mod canonical;
pub mod raw;
+pub mod repository;
use std::io;
use std::path::Path;
diff --git a/crates/radicle/src/git/repository.rs b/crates/radicle/src/git/repository.rs
new file mode 100644
index 000000000..7f95a69f1
--- /dev/null
+++ b/crates/radicle/src/git/repository.rs
@@ -0,0 +1,16 @@
+//! Git repository abstraction layer.
+//!
+//! Provides a library-agnostic interface for git repository operations,
+//! separating concerns into:
+//!
+//! - [`types`] — Git domain types, i.e. Blob, Commit, TreeEntry, etc.
+//! - [`object`] — The Git object store; providing read and write capabilities of Git objects.
+//! - [`reference`] — The Git reference store; providing read and write capabilities of Git references.
+//!
+//! [`reference`]: self::reference
+
+pub mod object;
+pub mod reference;
+pub mod types;
+
+pub use types::{Blob, Commit, ObjectKind, TreeEntry};
diff --git a/crates/radicle/src/git/repository/object.rs b/crates/radicle/src/git/repository/object.rs
new file mode 100644
index 000000000..745082222
--- /dev/null
+++ b/crates/radicle/src/git/repository/object.rs
@@ -0,0 +1 @@
+//! Git object database abstraction.
diff --git a/crates/radicle/src/git/repository/reference.rs b/crates/radicle/src/git/repository/reference.rs
new file mode 100644
index 000000000..439f52ac2
--- /dev/null
+++ b/crates/radicle/src/git/repository/reference.rs
@@ -0,0 +1 @@
+//! Git reference operations.
diff --git a/crates/radicle/src/git/repository/types.rs b/crates/radicle/src/git/repository/types.rs
new file mode 100644
index 000000000..165ac8582
--- /dev/null
+++ b/crates/radicle/src/git/repository/types.rs
@@ -0,0 +1,84 @@
+//! Domain types for Git repository operations.
+//!
+//! # Objects
+//!
+//! The following object types are defined in this module:
+//! - [`Blob`]
+//! - [`Commit`]
+//! - [`TreeEntry`]
+
+use core::fmt;
+use std::path::PathBuf;
+
+use radicle_git_metadata as metadata;
+use radicle_oid::Oid;
+
+/// An enumeration of the kinds of Git objects
+#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
+#[non_exhaustive]
+pub enum ObjectKind {
+ /// A Git blob object.
+ Blob,
+ /// A Git tree object.
+ Tree,
+ /// A Git commit object.
+ Commit,
+ /// A Git tag object.
+ Tag,
+}
+
+impl fmt::Display for ObjectKind {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ match self {
+ ObjectKind::Blob => f.write_str("blob"),
+ ObjectKind::Tree => f.write_str("tree"),
+ ObjectKind::Commit => f.write_str("commit"),
+ ObjectKind::Tag => f.write_str("tag"),
+ }
+ }
+}
+
+/// A Git blob object.
+#[derive(Clone, Debug, PartialEq, Eq, Hash)]
+pub struct Blob {
+ /// The content-addressed identifier of the blob.
+ pub oid: Oid,
+ /// The blob's content.
+ pub content: Vec<u8>,
+}
+
+/// A Git commit, with all metadata parsed.
+///
+/// This is a type alias for [`radicle_git_metadata::commit::CommitData`]
+/// specialised to [`Oid`] for both tree and parent identifiers.
+pub type Commit = metadata::commit::CommitData<Oid, Oid>;
+
+/// An entry to be written into a Git tree.
+#[derive(Clone, Debug, PartialEq, Eq, Hash)]
+pub enum TreeEntry {
+ /// A blob entry with inline content.
+ ///
+ /// The contents of the blob must be written to the Git repository before
+ /// creating the tree entry.
+ Blob {
+ /// The path of the entry within the tree.
+ ///
+ /// Multi-component paths (e.g. `a/b/c.txt`) are supported;
+ /// intermediate sub-trees are created automatically.
+ path: PathBuf,
+ /// The contents of the blob.
+ content: Vec<u8>,
+ },
+ /// A reference to an existing blob by [`Oid`].
+ ///
+ /// Used when the blob already exists in the Git object database.
+ BlobRef {
+ /// The path of the entry within the tree.
+ ///
+ /// Multi-component paths (e.g. `a/b/c.txt`) are supported;
+ /// intermediate sub-trees are created automatically.
+ path: PathBuf,
+ /// The [`Oid`] of the existing blob.
+ oid: Oid,
+ },
+}
commit 99705f51a901c4b268881af76512ee5be76c6466
Author: Fintan Halpenny <fintan.halpenny@gmail.com>
Date: Tue Apr 21 08:44:16 2026 +0100
sigrefs/git: Remove doc link of `Committer::stable`
The `Committer::stable` method is behind the `test` feature, or test build.
Do not link to it, so that it does not error for a regular build.
diff --git a/crates/radicle/src/storage/refs/sigrefs/git.rs b/crates/radicle/src/storage/refs/sigrefs/git.rs
index 6a4152911..4b1c7d6bc 100644
--- a/crates/radicle/src/storage/refs/sigrefs/git.rs
+++ b/crates/radicle/src/storage/refs/sigrefs/git.rs
@@ -34,7 +34,7 @@ impl Committer {
///
/// The given [`PublicKey`] is always used for the email.
///
- /// In test code, [`Committer::stable`] is returned.
+ /// In test code, `Committer::stable` is returned.
///
/// [`GIT_COMMITTER_DATE`]: crate::profile::env::GIT_COMMITTER_DATE
pub fn from_env_or_now(public_key: &PublicKey) -> Self {
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 90da1e6f-1a63-4230-99aa-aad4c7a37b31 -v /opt/radcis/ci.rad.levitte.org/cci/state/90da1e6f-1a63-4230-99aa-aad4c7a37b31/s:/90da1e6f-1a63-4230-99aa-aad4c7a37b31/s:ro -v /opt/radcis/ci.rad.levitte.org/cci/state/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w:/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w -w /90da1e6f-1a63-4230-99aa-aad4c7a37b31/w -v /opt/radcis/ci.rad.levitte.org/.radicle:/${id}/.radicle:ro -e RAD_HOME=/${id}/.radicle rust:trixie bash /90da1e6f-1a63-4230-99aa-aad4c7a37b31/s/script.sh
+ export 'RUSTDOCFLAGS=-D warnings'
+ RUSTDOCFLAGS='-D warnings'
+ cargo --version
info: syncing channel updates for '1.95-x86_64-unknown-linux-gnu'
info: latest update on 2026-04-16, rust version 1.95.0 (59807616e 2026-04-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.95.0 (f2d3ce0bd 2026-03-21)
+ rustc --version
rustc 1.95.0 (59807616e 2026-04-14)
+ cargo fmt --check
+ cargo clippy --all-targets --workspace -- --deny warnings
Updating crates.io index
Downloading crates ...
Downloaded addr2line v0.25.1
Downloaded derive_more v2.1.1
Downloaded errno v0.3.14
Downloaded gix-commitgraph v0.33.0
Downloaded convert_case v0.10.0
Downloaded fancy-regex v0.14.0
Downloaded jiff v0.2.23
Downloaded icu_properties v2.1.2
Downloaded keccak v0.1.6
Downloaded lazy_static v1.5.0
Downloaded gix-hashtable v0.12.0
Downloaded idna_adapter v1.2.1
Downloaded inout v0.1.4
Downloaded gix-glob v0.24.0
Downloaded icu_normalizer v2.1.1
Downloaded is_terminal_polyfill v1.70.2
Downloaded indicatif v0.18.4
Downloaded nonempty v0.9.0
Downloaded match-lookup v0.1.2
Downloaded matchers v0.2.0
Downloaded lexopt v0.3.2
Downloaded multibase v0.9.2
Downloaded nu-ansi-term v0.50.3
Downloaded normalize-line-endings v0.3.0
Downloaded jsonschema v0.30.0
Downloaded pkg-config v0.3.32
Downloaded ref-cast-impl v1.0.25
Downloaded rand_xorshift v0.4.0
Downloaded scrypt v0.11.0
Downloaded rand_chacha v0.3.1
Downloaded phf_shared v0.11.3
Downloaded rustversion v1.0.22
Downloaded referencing v0.30.0
Downloaded secrecy v0.10.3
Downloaded qcheck v1.0.0
Downloaded sha1 v0.10.6
Downloaded signature v2.2.0
Downloaded semver v1.0.27
Downloaded signal-hook-registry v1.4.8
Downloaded strsim v0.11.1
Downloaded ssh-cipher v0.2.0
Downloaded simd-adler32 v0.3.8
Downloaded crossbeam-channel v0.5.15
Downloaded test-log v0.2.19
Downloaded snapbox-macros v0.3.10
Downloaded stable_deref_trait v1.2.1
Downloaded sval_serde v2.17.0
Downloaded sval_json v2.17.0
Downloaded sval_fmt v2.17.0
Downloaded snapbox v0.4.17
Downloaded tinyvec_macros v0.1.1
Downloaded tree-sitter-language v0.1.7
Downloaded streaming-iterator v0.1.9
Downloaded structured-logger v1.0.5
Downloaded unicode-display-width v0.3.0
Downloaded tree-sitter-html v0.23.2
Downloaded typeid v1.0.3
Downloaded tree-sitter-json v0.24.8
Downloaded wait-timeout v0.2.1
Downloaded derive_more-impl v2.1.1
Downloaded yoke-derive v0.8.1
Downloaded zerofrom v0.1.6
Downloaded toml_datetime v0.7.5+spec-1.1.0
Downloaded p256 v0.13.2
Downloaded zerofrom-derive v0.1.6
Downloaded zeroize v1.8.2
Downloaded uuid v1.22.0
Downloaded utf8_iter v1.0.4
Downloaded unicode-ident v1.0.24
Downloaded yoke v0.8.1
Downloaded zmij v1.0.21
Downloaded thiserror-impl v1.0.69
Downloaded url v2.5.8
Downloaded tree-sitter-css v0.23.2
Downloaded gimli v0.32.3
Downloaded zerotrie v0.2.3
Downloaded tree-sitter-go v0.23.4
Downloaded unicode-normalization v0.1.25
Downloaded toml v0.9.12+spec-1.1.0
Downloaded zerovec-derive v0.11.2
Downloaded tree-sitter-python v0.23.6
Downloaded tree-sitter v0.24.7
Downloaded winnow v0.7.15
Downloaded tree-sitter-c v0.23.4
Downloaded zlib-rs v0.6.3
Downloaded libm v0.2.16
Downloaded p521 v0.13.3
Downloaded zerocopy v0.8.42
Downloaded rustix v1.1.4
Downloaded zerovec v0.11.5
Downloaded tree-sitter-md v0.3.2
Downloaded sysinfo v0.37.2
Downloaded chrono v0.4.44
Downloaded syn v1.0.109
Downloaded curve25519-dalek v4.1.3
Downloaded tree-sitter-bash v0.23.3
Downloaded unicode-width v0.2.2
Downloaded tracing v0.1.44
Downloaded object v0.37.3
Downloaded tree-sitter-ruby v0.23.1
Downloaded tree-sitter-rust v0.23.3
Downloaded regex-syntax v0.8.10
Downloaded bstr v1.12.1
Downloaded syn v2.0.117
Downloaded portable-atomic v1.13.1
Downloaded p384 v0.13.1
Downloaded regex v1.12.3
Downloaded bloomy v1.2.0
Downloaded unicode-segmentation v1.12.0
Downloaded num-bigint-dig v0.8.6
Downloaded clap_builder v4.6.0
Downloaded cyphernet v0.5.3
Downloaded vcpkg v0.2.15
Downloaded regex-automata v0.4.14
Downloaded sha3 v0.10.8
Downloaded ssh-key v0.6.7
Downloaded emojis v0.6.4
Downloaded aes v0.8.4
Downloaded tracing-subscriber v0.3.23
Downloaded num-bigint v0.4.6
Downloaded sval v2.17.0
Downloaded crossterm v0.29.0
Downloaded libc v0.2.183
Downloaded sha1-checked v0.10.0
Downloaded tree-sitter-typescript v0.23.2
Downloaded tar v0.4.45
Downloaded libz-sys v1.1.25
Downloaded value-bag v1.12.0
Downloaded tokio v1.50.0
Downloaded serde v1.0.228
Downloaded proptest v1.10.0
Downloaded tinyvec v1.11.0
Downloaded yansi v1.0.1
Downloaded writeable v0.6.2
Downloaded tree-sitter-toml-ng v0.6.0
Downloaded pretty_assertions v1.4.1
Downloaded mio v1.1.1
Downloaded memchr v2.8.0
Downloaded serde_json v1.0.149
Downloaded typenum v1.19.0
Downloaded sharded-slab v0.1.7
Downloaded tracing-core v0.1.36
Downloaded universal-hash v0.5.1
Downloaded signals_receipts v0.2.5
Downloaded cc v1.2.57
Downloaded backtrace v0.3.76
Downloaded xattr v1.6.1
Downloaded uuid-simd v0.8.0
Downloaded unit-prefix v0.5.2
Downloaded walkdir v2.5.0
Downloaded tinystr v0.8.2
Downloaded thiserror-impl v2.0.18
Downloaded num-traits v0.2.19
Downloaded timeago v0.4.2
Downloaded radicle-surf v0.27.1
Downloaded vsimd v0.8.0
Downloaded value-bag-sval2 v1.12.0
Downloaded value-bag-serde1 v1.12.0
Downloaded utf8parse v0.2.2
Downloaded thread_local v1.1.9
Downloaded systemd-journal-logger v2.2.2
Downloaded synstructure v0.13.2
Downloaded sval_ref v2.17.0
Downloaded sval_nested v2.17.0
Downloaded base64 v0.21.7
Downloaded bytes v1.11.1
Downloaded version_check v0.9.5
Downloaded unarray v0.1.4
Downloaded tree-sitter-highlight v0.24.7
Downloaded sqlite3-sys v0.18.0
Downloaded toml_writer v1.0.7+spec-1.1.0
Downloaded tempfile v3.27.0
Downloaded git2 v0.20.4
Downloaded chacha20poly1305 v0.10.1
Downloaded thiserror v2.0.18
Downloaded rand v0.8.5
Downloaded libgit2-sys v0.18.3+1.9.2
Downloaded tracing-log v0.2.0
Downloaded socket2 v0.5.10
Downloaded similar v2.7.0
Downloaded num-complex v0.4.6
Downloaded num-integer v0.1.46
Downloaded ssh-agent-lib v0.5.2
Downloaded rand v0.9.2
Downloaded once_cell v1.21.4
Downloaded num-rational v0.4.2
Downloaded thiserror v1.0.69
Downloaded signal-hook v0.3.18
Downloaded serde_derive v1.0.228
Downloaded test-log-macros v0.2.19
Downloaded sqlite v0.37.0
Downloaded spin v0.9.8
Downloaded smallvec v1.15.1
Downloaded serde_core v1.0.228
Downloaded schemars v1.2.1
Downloaded rsa v0.9.10
Downloaded idna v1.1.0
Downloaded spki v0.7.3
Downloaded ryu v1.0.23
Downloaded sval_buffer v2.17.0
Downloaded subtle v2.6.1
Downloaded ssh-encoding v0.2.0
Downloaded serde_derive_internals v0.29.1
Downloaded parking_lot v0.12.5
Downloaded prodash v31.0.0
Downloaded sval_dynamic v2.17.0
Downloaded socks5-client v0.4.2
Downloaded siphasher v0.3.11
Downloaded signature v1.6.4
Downloaded proc-macro-error-attr2 v2.0.0
Downloaded elliptic-curve v0.13.8
Downloaded bitflags v2.11.0
Downloaded shlex v1.3.0
Downloaded shell-words v1.1.1
Downloaded serde-untagged v0.1.9
Downloaded rand_core v0.6.4
Downloaded ppv-lite86 v0.2.21
Downloaded siphasher v1.0.2
Downloaded signal-hook-mio v0.2.5
Downloaded sha2 v0.10.9
Downloaded sem_safe v0.2.1
Downloaded schemars_derive v1.2.1
Downloaded sec1 v0.7.3
Downloaded scopeguard v1.2.0
Downloaded rusty-fork v0.3.1
Downloaded rustc-demangle v0.1.27
Downloaded rand_chacha v0.9.0
Downloaded sqlite3-src v0.7.0
Downloaded poly1305 v0.8.0
Downloaded serde_fmt v1.1.0
Downloaded anyhow v1.0.102
Downloaded serde_spanned v1.0.4
Downloaded radicle-git-ext v0.12.0
Downloaded primeorder v0.13.6
Downloaded memmap2 v0.9.10
Downloaded hashbrown v0.16.1
Downloaded ascii v1.1.0
Downloaded same-file v1.0.6
Downloaded salsa20 v0.10.2
Downloaded rustc_version v0.4.1
Downloaded linux-raw-sys v0.12.1
Downloaded rfc6979 v0.4.0
Downloaded rand_core v0.9.5
Downloaded radicle-std-ext v0.2.0
Downloaded quick-error v1.2.3
Downloaded qcheck-macros v1.0.0
Downloaded crc32fast v1.5.0
Downloaded pastey v0.2.1
Downloaded ref-cast v1.0.25
Downloaded quote v1.0.45
Downloaded proc-macro-error2 v2.0.1
Downloaded pkcs8 v0.10.2
Downloaded pin-project-lite v0.2.17
Downloaded chacha20 v0.9.1
Downloaded amplify_derive v4.0.1
Downloaded potential_utf v0.1.4
Downloaded opaque-debug v0.3.1
Downloaded num-cmp v0.1.0
Downloaded flate2 v1.1.9
Downloaded console v0.16.3
Downloaded polyval v0.6.2
Downloaded pkcs1 v0.7.5
Downloaded miniz_oxide v0.8.9
Downloaded litemap v0.8.1
Downloaded inquire v0.9.4
Downloaded fraction v0.15.3
Downloaded ed25519 v2.2.3
Downloaded clap_derive v4.6.0
Downloaded proc-macro2 v1.0.106
Downloaded parking_lot_core v0.9.12
Downloaded num v0.4.3
Downloaded log v0.4.29
Downloaded itertools v0.14.0
Downloaded icu_properties_data v2.1.2
Downloaded gix-object v0.55.0
Downloaded fluent-uri v0.3.2
Downloaded phf v0.11.3
Downloaded percent-encoding v2.3.2
Downloaded pem-rfc7468 v0.7.0
Downloaded pbkdf2 v0.12.2
Downloaded outref v0.5.2
Downloaded num-iter v0.1.45
Downloaded maybe-async v0.2.10
Downloaded litrs v1.0.0
Downloaded heapless v0.8.0
Downloaded getrandom v0.2.17
Downloaded either v1.15.0
Downloaded ed25519 v1.5.3
Downloaded der v0.7.10
Downloaded const-oid v0.9.6
Downloaded cipher v0.4.4
Downloaded byteorder v1.5.0
Downloaded bit-vec v0.8.0
Downloaded gix-pack v0.65.0
Downloaded clap_complete v4.6.0
Downloaded icu_normalizer_data v2.1.1
Downloaded erased-serde v0.4.10
Downloaded cbc v0.1.2
Downloaded anstyle-parse v0.2.7
Downloaded anstream v0.6.21
Downloaded amplify_syn v2.0.1
Downloaded aes-gcm v0.10.3
Downloaded diff v0.1.13
Downloaded ctr v0.9.2
Downloaded bytecount v0.6.9
Downloaded anstyle v1.0.14
Downloaded lock_api v0.4.14
Downloaded gix-credentials v0.36.0
Downloaded anstream v1.0.0
Downloaded gix-negotiate v0.27.0
Downloaded getrandom v0.4.2
Downloaded ec25519 v0.1.0
Downloaded bytesize v2.3.1
Downloaded blowfish v0.9.1
Downloaded jiff-static v0.2.23
Downloaded ghash v0.5.1
Downloaded env_filter v1.0.0
Downloaded gix-features v0.46.1
Downloaded gix-error v0.1.0
Downloaded gix-date v0.14.0
Downloaded noise-framework v0.4.0
Downloaded itoa v1.0.17
Downloaded indexmap v2.13.0
Downloaded humantime v2.3.0
Downloaded gix-traverse v0.52.0
Downloaded gix-protocol v0.57.0
Downloaded gix-packetline v0.21.1
Downloaded git-ref-format-macro v0.6.0
Downloaded borrow-or-share v0.2.4
Downloaded bit-set v0.8.0
Downloaded icu_collections v2.1.1
Downloaded gix-hash v0.22.1
Downloaded gix-error v0.0.0
Downloaded clap v4.6.0
Downloaded base16ct v0.2.0
Downloaded fastrand v2.3.0
Downloaded ecdsa v0.16.9
Downloaded base64ct v1.8.3
Downloaded iana-time-zone v0.1.65
Downloaded gix-transport v0.54.0
Downloaded dunce v1.0.5
Downloaded gix-actor v0.39.0
Downloaded faster-hex v0.10.0
Downloaded base-x v0.2.11
Downloaded icu_locale_core v2.1.1
Downloaded gix-odb v0.75.0
Downloaded gix-diff v0.58.0
Downloaded bcrypt-pbkdf v0.10.0
Downloaded icu_provider v2.1.1
Downloaded gix-fs v0.19.1
Downloaded gix-chunk v0.6.0
Downloaded ff v0.13.1
Downloaded gix-date v0.13.0
Downloaded gix-commitgraph v0.32.0
Downloaded git-ref-format-core v0.6.0
Downloaded generic-array v0.14.7
Downloaded form_urlencoded v1.2.2
Downloaded fnv v1.0.7
Downloaded equivalent v1.0.2
Downloaded ct-codecs v1.1.6
Downloaded colorchoice v1.0.5
Downloaded block-padding v0.3.3
Downloaded group v0.13.0
Downloaded gix-revwalk v0.27.0
Downloaded gix-config-value v0.17.1
Downloaded gix-actor v0.38.0
Downloaded crossbeam-utils v0.8.21
Downloaded amplify v4.9.0
Downloaded jobserver v0.1.34
Downloaded hash32 v0.3.1
Downloaded gix-validate v0.11.0
Downloaded gix-shallow v0.8.1
Downloaded gix-path v0.11.1
Downloaded gix-lock v21.0.1
Downloaded gix-command v0.7.1
Downloaded gix-chunk v0.5.0
Downloaded git-ref-format v0.6.0
Downloaded getrandom v0.3.4
Downloaded find-msvc-tools v0.1.9
Downloaded filetime v0.2.27
Downloaded fast-glob v0.3.3
Downloaded document-features v0.2.12
Downloaded base256emoji v1.0.2
Downloaded arc-swap v1.8.2
Downloaded anstyle-query v1.1.5
Downloaded aead v0.5.2
Downloaded adler2 v2.0.1
Downloaded human-panic v2.0.6
Downloaded hmac v0.12.1
Downloaded gix-utils v0.3.1
Downloaded gix-url v0.35.2
Downloaded gix-trace v0.1.18
Downloaded gix-tempfile v21.0.1
Downloaded gix-sec v0.13.1
Downloaded gix-revision v0.41.0
Downloaded gix-refspec v0.37.0
Downloaded gix-ref v0.59.0
Downloaded gix-prompt v0.13.1
Downloaded gix-object v0.56.0
Downloaded env_logger v0.11.9
Downloaded email_address v0.2.9
Downloaded ed25519-dalek v2.2.0
Downloaded displaydoc v0.2.5
Downloaded digest v0.10.7
Downloaded data-encoding-macro v0.1.19
Downloaded data-encoding v2.10.0
Downloaded cypheraddr v0.4.1
Downloaded curve25519-dalek-derive v0.1.1
Downloaded crypto-common v0.1.7
Downloaded crypto-bigint v0.5.5
Downloaded cpufeatures v0.2.17
Downloaded colored v2.2.0
Downloaded block-buffer v0.10.4
Downloaded base32 v0.4.0
Downloaded autocfg v1.5.0
Downloaded anstyle-parse v1.0.0
Downloaded heck v0.5.0
Downloaded gix-revwalk v0.26.0
Downloaded gix-quote v0.6.2
Downloaded data-encoding-macro-internal v0.1.17
Downloaded ahash v0.8.12
Downloaded dyn-clone v1.0.20
Downloaded const-str v0.4.3
Downloaded base64 v0.22.1
Downloaded aho-corasick v1.1.4
Downloaded escargot v0.5.15
Downloaded cyphergraphy v0.3.0
Downloaded clap_lex v1.1.0
Downloaded cfg-if v1.0.4
Downloaded amplify_num v0.5.3
Compiling libc v0.2.183
Compiling proc-macro2 v1.0.106
Compiling quote v1.0.45
Compiling unicode-ident v1.0.24
Checking cfg-if v1.0.4
Checking zeroize v1.8.2
Compiling version_check v0.9.5
Compiling typenum v1.19.0
Compiling generic-array v0.14.7
Checking memchr v2.8.0
Compiling syn v2.0.117
Checking getrandom v0.2.17
Checking rand_core v0.6.4
Compiling find-msvc-tools v0.1.9
Compiling shlex v1.3.0
Checking crypto-common v0.1.7
Checking subtle v2.6.1
Compiling jobserver v0.1.34
Checking regex-syntax v0.8.10
Checking aho-corasick v1.1.4
Compiling cc v1.2.57
Checking smallvec v1.15.1
Checking const-oid v0.9.6
Compiling serde_core v1.0.228
Checking regex-automata v0.4.14
Checking block-buffer v0.10.4
Checking digest v0.10.7
Checking cpufeatures v0.2.17
Compiling thiserror v2.0.18
Checking stable_deref_trait v1.2.1
Checking fastrand v2.3.0
Compiling parking_lot_core v0.9.12
Checking scopeguard v1.2.0
Checking lock_api v0.4.14
Checking bitflags v2.11.0
Checking tinyvec_macros v0.1.1
Checking parking_lot v0.12.5
Checking tinyvec v1.11.0
Compiling crc32fast v1.5.0
Checking gix-trace v0.1.18
Checking unicode-normalization v0.1.25
Checking itoa v1.0.17
Checking bstr v1.12.1
Compiling typeid v1.0.3
Checking byteorder v1.5.0
Checking gix-utils v0.3.1
Compiling erased-serde v0.4.10
Checking gix-validate v0.11.0
Compiling serde v1.0.228
Compiling thiserror-impl v2.0.18
Checking hashbrown v0.16.1
Compiling serde_derive v1.0.228
Checking serde_fmt v1.1.0
Checking same-file v1.0.6
Checking walkdir v2.5.0
Checking value-bag-serde1 v1.12.0
Checking prodash v31.0.0
Compiling synstructure v0.13.2
Checking zlib-rs v0.6.3
Checking gix-path v0.11.1
Checking value-bag v1.12.0
Compiling heapless v0.8.0
Checking log v0.4.29
Compiling zerofrom-derive v0.1.6
Checking hash32 v0.3.1
Checking gix-features v0.46.1
Compiling yoke-derive v0.8.1
Checking faster-hex v0.10.0
Compiling rustix v1.1.4
Compiling pkg-config v0.3.32
Checking zerofrom v0.1.6
Compiling zerovec-derive v0.11.2
Checking yoke v0.8.1
Checking sha1 v0.10.6
Checking linux-raw-sys v0.12.1
Compiling autocfg v1.5.0
Compiling libm v0.2.16
Compiling num-traits v0.2.19
Checking sha1-checked v0.10.0
Compiling displaydoc v0.2.5
Compiling getrandom v0.4.2
Checking zerovec v0.11.5
Checking gix-hash v0.22.1
Checking block-padding v0.3.3
Compiling zerocopy v0.8.42
Checking inout v0.1.4
Checking sha2 v0.10.9
Checking cipher v0.4.4
Checking tinystr v0.8.2
Checking litemap v0.8.1
Checking percent-encoding v2.3.2
Checking once_cell v1.21.4
Checking writeable v0.6.2
Checking potential_utf v0.1.4
Checking zerotrie v0.2.3
Checking icu_locale_core v2.1.1
Compiling icu_normalizer_data v2.1.1
Compiling icu_properties_data v2.1.2
Compiling zmij v1.0.21
Checking icu_provider v2.1.1
Checking icu_collections v2.1.1
Checking der v0.7.10
Checking equivalent v1.0.2
Compiling serde_json v1.0.149
Checking indexmap v2.13.0
Compiling thiserror v1.0.69
Compiling ref-cast v1.0.25
Compiling syn v1.0.109
Compiling vcpkg v0.2.15
Checking icu_properties v2.1.2
Compiling libz-sys v1.1.25
Checking ppv-lite86 v0.2.21
Checking icu_normalizer v2.1.1
Checking tempfile v3.27.0
Compiling ref-cast-impl v1.0.25
Compiling thiserror-impl v1.0.69
Checking spin v0.9.8
Checking lazy_static v1.5.0
Checking idna_adapter v1.2.1
Checking num-integer v0.1.46
Checking hmac v0.12.1
Checking universal-hash v0.5.1
Checking opaque-debug v0.3.1
Compiling tree-sitter-language v0.1.7
Checking dyn-clone v1.0.20
Checking utf8_iter v1.0.4
Checking idna v1.1.0
Checking spki v0.7.3
Compiling libgit2-sys v0.18.3+1.9.2
Checking signature v2.2.0
Checking ff v0.13.1
Checking base16ct v0.2.0
Checking group v0.13.0
Checking sec1 v0.7.3
Checking rand_chacha v0.3.1
Checking form_urlencoded v1.2.2
Compiling serde_derive_internals v0.29.1
Checking crypto-bigint v0.5.5
Compiling schemars_derive v1.2.1
Checking elliptic-curve v0.13.8
Compiling amplify_syn v2.0.1
Checking url v2.5.8
Checking rand v0.8.5
Checking num-iter v0.1.45
Checking aead v0.5.2
Checking signature v1.6.4
Compiling semver v1.0.27
Checking ed25519 v1.5.3
Checking schemars v1.2.1
Compiling amplify_derive v4.0.1
Compiling rustc_version v0.4.1
Checking poly1305 v0.8.0
Checking rfc6979 v0.4.0
Checking chacha20 v0.9.1
Checking amplify_num v0.5.3
Checking ascii v1.1.0
Checking ct-codecs v1.1.6
Checking ec25519 v0.1.0
Checking ecdsa v0.16.9
Compiling curve25519-dalek v4.1.3
Checking amplify v4.9.0
Checking git-ref-format-core v0.6.0
Checking primeorder v0.13.6
Checking polyval v0.6.2
Checking base64ct v1.8.3
Compiling num-bigint-dig v0.8.6
Checking ghash v0.5.1
Checking cyphergraphy v0.3.0
Checking pem-rfc7468 v0.7.0
Checking pkcs8 v0.10.2
Checking pbkdf2 v0.12.2
Checking ctr v0.9.2
Checking aes v0.8.4
Compiling sqlite3-src v0.7.0
Compiling curve25519-dalek-derive v0.1.1
Checking keccak v0.1.6
Checking aes-gcm v0.10.3
Checking sha3 v0.10.8
Checking pkcs1 v0.7.5
Checking ssh-encoding v0.2.0
Checking ed25519 v2.2.3
Checking blowfish v0.9.1
Checking cbc v0.1.2
Compiling crossbeam-utils v0.8.21
Checking base32 v0.4.0
Compiling data-encoding v2.10.0
Checking cypheraddr v0.4.1
Checking rsa v0.9.10
Compiling data-encoding-macro-internal v0.1.17
Checking ssh-cipher v0.2.0
Checking bcrypt-pbkdf v0.10.0
Checking ed25519-dalek v2.2.0
Checking p521 v0.13.3
Checking p256 v0.13.2
Checking p384 v0.13.1
Checking chacha20poly1305 v0.10.1
Checking qcheck v1.0.0
Compiling match-lookup v0.1.2
Checking jiff v0.2.23
Checking const-str v0.4.3
Checking data-encoding-macro v0.1.19
Checking base256emoji v1.0.2
Checking ssh-key v0.6.7
Checking noise-framework v0.4.0
Checking socks5-client v0.4.2
Checking secrecy v0.10.3
Checking base-x v0.2.11
Checking multibase v0.9.2
Checking ssh-agent-lib v0.5.2
Checking cyphernet v0.5.3
Checking crossbeam-channel v0.5.15
Checking anstyle-query v1.1.5
Checking winnow v0.7.15
Checking errno v0.3.14
Checking utf8parse v0.2.2
Checking gix-hashtable v0.12.0
Checking nonempty v0.9.0
Checking siphasher v1.0.2
Checking radicle-localtime v0.1.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-localtime)
Checking radicle-git-metadata v0.2.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-git-metadata)
Checking gix-error v0.1.0
Checking radicle-dag v0.10.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-dag)
Checking memmap2 v0.9.10
Checking colorchoice v1.0.5
Checking is_terminal_polyfill v1.70.2
Checking anstyle v1.0.14
Checking radicle-git-ref-format v0.1.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-git-ref-format)
Compiling radicle v0.24.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle)
Compiling signal-hook v0.3.18
Checking base64 v0.21.7
Compiling unicode-segmentation v1.12.0
Checking signal-hook-registry v1.4.8
Compiling convert_case v0.10.0
Checking serde-untagged v0.1.9
Checking gix-error v0.0.0
Checking bytesize v2.3.1
Checking dunce v1.0.5
Checking fast-glob v0.3.3
Compiling derive_more-impl v2.1.1
Checking gix-date v0.14.0
Checking mio v1.1.1
Checking regex v1.12.3
Checking sem_safe v0.2.1
Checking unicode-width v0.2.2
Compiling portable-atomic v1.13.1
Compiling litrs v1.0.0
Checking signals_receipts v0.2.5
Compiling document-features v0.2.12
Checking signal-hook-mio v0.2.5
Checking derive_more v2.1.1
Checking anstyle-parse v0.2.7
Checking crossterm v0.29.0
Checking anstream v0.6.21
Checking console v0.16.3
Checking gix-actor v0.39.0
Checking gix-date v0.13.0
Checking gix-fs v0.19.1
Checking unit-prefix v0.5.2
Checking gix-tempfile v21.0.1
Checking indicatif v0.18.4
Checking gix-actor v0.38.0
Checking gix-object v0.56.0
Checking inquire v0.9.4
Checking unicode-display-width v0.3.0
Checking radicle-signals v0.11.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-signals)
Checking gix-chunk v0.6.0
Checking gix-quote v0.6.2
Checking gix-commitgraph v0.33.0
Checking gix-object v0.55.0
Checking gix-chunk v0.5.0
Checking either v1.15.0
Checking shell-words v1.1.1
Checking iana-time-zone v0.1.65
Checking chrono v0.4.44
Checking gix-command v0.7.1
Checking gix-commitgraph v0.32.0
Checking gix-revwalk v0.27.0
Checking colored v2.2.0
Compiling object v0.37.3
Compiling rustversion v1.0.22
Checking gix-revwalk v0.26.0
Checking gix-lock v21.0.1
Checking gix-url v0.35.2
Checking gix-config-value v0.17.1
Checking gix-sec v0.13.1
Checking gimli v0.32.3
Checking adler2 v2.0.1
Checking miniz_oxide v0.8.9
Checking gix-prompt v0.13.1
Checking gix-traverse v0.52.0
Checking addr2line v0.25.1
Checking gix-revision v0.41.0
Checking gix-diff v0.58.0
Checking gix-packetline v0.21.1
Checking gix-glob v0.24.0
Compiling tree-sitter v0.24.7
Checking rustc-demangle v0.1.27
Compiling anyhow v1.0.102
Checking backtrace v0.3.76
Checking gix-refspec v0.37.0
Checking gix-transport v0.54.0
Checking gix-pack v0.65.0
Checking arc-swap v1.8.2
Checking gix-credentials v0.36.0
Checking gix-shallow v0.8.1
Checking gix-ref v0.59.0
Checking gix-negotiate v0.27.0
Compiling maybe-async v0.2.10
Compiling proc-macro-error-attr2 v2.0.0
Compiling getrandom v0.3.4
Compiling simd-adler32 v0.3.8
Checking gix-protocol v0.57.0
Compiling proc-macro-error2 v2.0.1
Checking gix-odb v0.75.0
Compiling xattr v1.6.1
Compiling filetime v0.2.27
Checking anstyle-parse v1.0.0
Checking uuid v1.22.0
Checking bytes v1.11.1
Checking anstream v1.0.0
Compiling tar v0.4.45
Compiling flate2 v1.1.9
Compiling git-ref-format-macro v0.6.0
Checking snapbox-macros v0.3.10
Checking salsa20 v0.10.2
Checking clap_lex v1.1.0
Compiling heck v0.5.0
Checking strsim v0.11.1
Checking similar v2.7.0
Checking normalize-line-endings v0.3.0
Checking streaming-iterator v0.1.9
Checking sqlite3-sys v0.18.0
Checking siphasher v0.3.11
Checking snapbox v0.4.17
Checking sqlite v0.37.0
Checking bloomy v1.2.0
Checking radicle-crypto v0.17.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-crypto)
Compiling clap_derive v4.6.0
Checking clap_builder v4.6.0
Compiling radicle-surf v0.27.1
Checking scrypt v0.11.0
Checking git-ref-format v0.6.0
Checking systemd-journal-logger v2.2.2
Checking serde_spanned v1.0.4
Checking toml_datetime v0.7.5+spec-1.1.0
Compiling tree-sitter-ruby v0.23.1
Compiling tree-sitter-c v0.23.4
Compiling tree-sitter-bash v0.23.3
Compiling tree-sitter-toml-ng v0.6.0
Compiling tree-sitter-md v0.3.2
Compiling tree-sitter-rust v0.23.3
Compiling tree-sitter-json v0.24.8
Compiling tree-sitter-html v0.23.2
Compiling tree-sitter-go v0.23.4
Compiling tree-sitter-python v0.23.6
Compiling tree-sitter-css v0.23.2
Compiling tree-sitter-typescript v0.23.2
Checking toml_writer v1.0.7+spec-1.1.0
Checking radicle-std-ext v0.2.0
Checking pin-project-lite v0.2.17
Checking tokio v1.50.0
Checking toml v0.9.12+spec-1.1.0
Checking clap v4.6.0
Checking sysinfo v0.37.2
Checking yansi v1.0.1
Compiling radicle-node v0.20.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-node)
Compiling radicle-cli v0.21.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-cli)
Checking diff v0.1.13
Checking pretty_assertions v1.4.1
Checking human-panic v2.0.6
Checking clap_complete v4.6.0
Checking structured-logger v1.0.5
Checking radicle-systemd v0.13.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-systemd)
Checking tree-sitter-highlight v0.24.7
Checking itertools v0.14.0
Compiling qcheck-macros v1.0.0
Checking socket2 v0.5.10
Checking humantime v2.3.0
Checking timeago v0.4.2
Compiling escargot v0.5.15
Checking lexopt v0.3.2
Checking bit-vec v0.8.0
Checking bit-set v0.8.0
Checking rand_core v0.9.5
Checking num-bigint v0.4.6
Compiling ahash v0.8.12
Checking num-complex v0.4.6
Checking env_filter v1.0.0
Checking borrow-or-share v0.2.4
Checking env_logger v0.11.9
Checking fluent-uri v0.3.2
Checking phf_shared v0.11.3
Compiling test-log-macros v0.2.19
Checking wait-timeout v0.2.1
Checking num-rational v0.4.2
Compiling radicle-remote-helper v0.17.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-remote-helper)
Checking vsimd v0.8.0
Checking num v0.4.3
Checking fnv v1.0.7
Checking outref v0.5.2
Checking quick-error v1.2.3
Checking rusty-fork v0.3.1
Checking fraction v0.15.3
Checking uuid-simd v0.8.0
Checking test-log v0.2.19
Checking phf v0.11.3
Checking referencing v0.30.0
Checking rand_xorshift v0.4.0
Checking rand_chacha v0.9.0
Checking rand v0.9.2
Checking fancy-regex v0.14.0
Checking email_address v0.2.9
Checking bytecount v0.6.9
Checking base64 v0.22.1
Checking unarray v0.1.4
Checking num-cmp v0.1.0
Checking proptest v1.10.0
Checking emojis v0.6.4
Checking jsonschema v0.30.0
Compiling pastey v0.2.1
Checking radicle-windows v0.1.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-windows)
Checking git2 v0.20.4
Checking radicle-oid v0.2.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-oid)
Checking radicle-term v0.18.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-term)
Checking radicle-git-ext v0.12.0
Checking radicle-cob v0.20.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-cob)
Checking radicle-core v0.3.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-core)
Checking radicle-log v0.1.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-log)
Checking radicle-fetch v0.20.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-fetch)
Checking radicle-cli-test v0.13.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-cli-test)
Checking radicle-protocol v0.8.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-protocol)
Checking radicle-schemars v0.8.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-schemars)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 46.88s
+ cargo build --all-targets --workspace
Compiling libc v0.2.183
Compiling cfg-if v1.0.4
Compiling zeroize v1.8.2
Compiling memchr v2.8.0
Compiling typenum v1.19.0
Compiling shlex v1.3.0
Compiling subtle v2.6.1
Compiling regex-syntax v0.8.10
Compiling generic-array v0.14.7
Compiling getrandom v0.2.17
Compiling jobserver v0.1.34
Compiling rand_core v0.6.4
Compiling cc v1.2.57
Compiling crypto-common v0.1.7
Compiling aho-corasick v1.1.4
Compiling smallvec v1.15.1
Compiling const-oid v0.9.6
Compiling serde_core v1.0.228
Compiling regex-automata v0.4.14
Compiling block-buffer v0.10.4
Compiling digest v0.10.7
Compiling cpufeatures v0.2.17
Compiling stable_deref_trait v1.2.1
Compiling thiserror v2.0.18
Compiling fastrand v2.3.0
Compiling scopeguard v1.2.0
Compiling parking_lot_core v0.9.12
Compiling lock_api v0.4.14
Compiling bitflags v2.11.0
Compiling tinyvec_macros v0.1.1
Compiling parking_lot v0.12.5
Compiling tinyvec v1.11.0
Compiling gix-trace v0.1.18
Compiling itoa v1.0.17
Compiling unicode-normalization v0.1.25
Compiling byteorder v1.5.0
Compiling crc32fast v1.5.0
Compiling typeid v1.0.3
Compiling hashbrown v0.16.1
Compiling erased-serde v0.4.10
Compiling gix-utils v0.3.1
Compiling serde v1.0.228
Compiling bstr v1.12.1
Compiling serde_fmt v1.1.0
Compiling same-file v1.0.6
Compiling walkdir v2.5.0
Compiling gix-validate v0.11.0
Compiling gix-path v0.11.1
Compiling value-bag-serde1 v1.12.0
Compiling prodash v31.0.0
Compiling zlib-rs v0.6.3
Compiling value-bag v1.12.0
Compiling log v0.4.29
Compiling hash32 v0.3.1
Compiling heapless v0.8.0
Compiling zerofrom v0.1.6
Compiling yoke v0.8.1
Compiling sha1 v0.10.6
Compiling faster-hex v0.10.0
Compiling linux-raw-sys v0.12.1
Compiling zerovec v0.11.5
Compiling sha1-checked v0.10.0
Compiling libm v0.2.16
Compiling block-padding v0.3.3
Compiling inout v0.1.4
Compiling getrandom v0.4.2
Compiling rustix v1.1.4
Compiling sha2 v0.10.9
Compiling num-traits v0.2.19
Compiling cipher v0.4.4
Compiling zerocopy v0.8.42
Compiling tinystr v0.8.2
Compiling once_cell v1.21.4
Compiling litemap v0.8.1
Compiling gix-features v0.46.1
Compiling gix-hash v0.22.1
Compiling percent-encoding v2.3.2
Compiling writeable v0.6.2
Compiling zerotrie v0.2.3
Compiling icu_locale_core v2.1.1
Compiling potential_utf v0.1.4
Compiling icu_collections v2.1.1
Compiling icu_provider v2.1.1
Compiling der v0.7.10
Compiling equivalent v1.0.2
Compiling indexmap v2.13.0
Compiling icu_normalizer_data v2.1.1
Compiling zmij v1.0.21
Compiling icu_properties_data v2.1.2
Compiling libz-sys v1.1.25
Compiling serde_json v1.0.149
Compiling icu_properties v2.1.2
Compiling ppv-lite86 v0.2.21
Compiling icu_normalizer v2.1.1
Compiling tempfile v3.27.0
Compiling spin v0.9.8
Compiling ref-cast v1.0.25
Compiling lazy_static v1.5.0
Compiling idna_adapter v1.2.1
Compiling num-integer v0.1.46
Compiling hmac v0.12.1
Compiling universal-hash v0.5.1
Compiling utf8_iter v1.0.4
Compiling dyn-clone v1.0.20
Compiling opaque-debug v0.3.1
Compiling idna v1.1.0
Compiling thiserror v1.0.69
Compiling spki v0.7.3
Compiling libgit2-sys v0.18.3+1.9.2
Compiling signature v2.2.0
Compiling ff v0.13.1
Compiling base16ct v0.2.0
Compiling group v0.13.0
Compiling sec1 v0.7.3
Compiling rand_chacha v0.3.1
Compiling form_urlencoded v1.2.2
Compiling crypto-bigint v0.5.5
Compiling url v2.5.8
Compiling rand v0.8.5
Compiling num-iter v0.1.45
Compiling aead v0.5.2
Compiling signature v1.6.4
Compiling ed25519 v1.5.3
Compiling schemars v1.2.1
Compiling elliptic-curve v0.13.8
Compiling poly1305 v0.8.0
Compiling rfc6979 v0.4.0
Compiling chacha20 v0.9.1
Compiling ascii v1.1.0
Compiling ct-codecs v1.1.6
Compiling amplify_num v0.5.3
Compiling ec25519 v0.1.0
Compiling ecdsa v0.16.9
Compiling primeorder v0.13.6
Compiling git-ref-format-core v0.6.0
Compiling polyval v0.6.2
Compiling amplify v4.9.0
Compiling base64ct v1.8.3
Compiling cyphergraphy v0.3.0
Compiling pem-rfc7468 v0.7.0
Compiling ghash v0.5.1
Compiling pkcs8 v0.10.2
Compiling pbkdf2 v0.12.2
Compiling ctr v0.9.2
Compiling aes v0.8.4
Compiling sqlite3-src v0.7.0
Compiling keccak v0.1.6
Compiling aes-gcm v0.10.3
Compiling sha3 v0.10.8
Compiling curve25519-dalek v4.1.3
Compiling pkcs1 v0.7.5
Compiling ssh-encoding v0.2.0
Compiling num-bigint-dig v0.8.6
Compiling ed25519 v2.2.3
Compiling cbc v0.1.2
Compiling blowfish v0.9.1
Compiling base32 v0.4.0
Compiling cypheraddr v0.4.1
Compiling rsa v0.9.10
Compiling bcrypt-pbkdf v0.10.0
Compiling ssh-cipher v0.2.0
Compiling ed25519-dalek v2.2.0
Compiling p521 v0.13.3
Compiling p256 v0.13.2
Compiling p384 v0.13.1
Compiling chacha20poly1305 v0.10.1
Compiling qcheck v1.0.0
Compiling jiff v0.2.23
Compiling const-str v0.4.3
Compiling data-encoding v2.10.0
Compiling data-encoding-macro v0.1.19
Compiling base256emoji v1.0.2
Compiling noise-framework v0.4.0
Compiling ssh-key v0.6.7
Compiling socks5-client v0.4.2
Compiling crossbeam-utils v0.8.21
Compiling secrecy v0.10.3
Compiling base-x v0.2.11
Compiling multibase v0.9.2
Compiling crossbeam-channel v0.5.15
Compiling ssh-agent-lib v0.5.2
Compiling cyphernet v0.5.3
Compiling anstyle-query v1.1.5
Compiling winnow v0.7.15
Compiling errno v0.3.14
Compiling utf8parse v0.2.2
Compiling gix-hashtable v0.12.0
Compiling nonempty v0.9.0
Compiling siphasher v1.0.2
Compiling radicle-localtime v0.1.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-localtime)
Compiling gix-error v0.1.0
Compiling radicle-dag v0.10.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-dag)
Compiling radicle-git-metadata v0.2.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-git-metadata)
Compiling memmap2 v0.9.10
Compiling is_terminal_polyfill v1.70.2
Compiling colorchoice v1.0.5
Compiling anstyle v1.0.14
Compiling unicode-segmentation v1.12.0
Compiling radicle-git-ref-format v0.1.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-git-ref-format)
Compiling base64 v0.21.7
Compiling radicle v0.24.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle)
Compiling convert_case v0.10.0
Compiling signal-hook-registry v1.4.8
Compiling tree-sitter-language v0.1.7
Compiling gix-error v0.0.0
Compiling serde-untagged v0.1.9
Compiling bytesize v2.3.1
Compiling fast-glob v0.3.3
Compiling dunce v1.0.5
Compiling signal-hook v0.3.18
Compiling derive_more-impl v2.1.1
Compiling gix-date v0.14.0
Compiling mio v1.1.1
Compiling regex v1.12.3
Compiling sem_safe v0.2.1
Compiling unicode-width v0.2.2
Compiling signals_receipts v0.2.5
Compiling signal-hook-mio v0.2.5
Compiling derive_more v2.1.1
Compiling anstyle-parse v0.2.7
Compiling adler2 v2.0.1
Compiling anstream v0.6.21
Compiling crossterm v0.29.0
Compiling portable-atomic v1.13.1
Compiling console v0.16.3
Compiling gix-actor v0.39.0
Compiling gix-date v0.13.0
Compiling gix-fs v0.19.1
Compiling unit-prefix v0.5.2
Compiling indicatif v0.18.4
Compiling gix-tempfile v21.0.1
Compiling gix-actor v0.38.0
Compiling gix-object v0.56.0
Compiling inquire v0.9.4
Compiling radicle-signals v0.11.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-signals)
Compiling unicode-display-width v0.3.0
Compiling gix-chunk v0.6.0
Compiling gix-quote v0.6.2
Compiling gix-commitgraph v0.33.0
Compiling gix-object v0.55.0
Compiling gix-chunk v0.5.0
Compiling shell-words v1.1.1
Compiling either v1.15.0
Compiling iana-time-zone v0.1.65
Compiling chrono v0.4.44
Compiling gix-command v0.7.1
Compiling gix-commitgraph v0.32.0
Compiling gix-revwalk v0.27.0
Compiling colored v2.2.0
Compiling gix-revwalk v0.26.0
Compiling gix-lock v21.0.1
Compiling gix-url v0.35.2
Compiling gix-config-value v0.17.1
Compiling gix-sec v0.13.1
Compiling gimli v0.32.3
Compiling gix-prompt v0.13.1
Compiling gix-traverse v0.52.0
Compiling object v0.37.3
Compiling sqlite3-sys v0.18.0
Compiling sqlite v0.37.0
Compiling radicle-crypto v0.17.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-crypto)
Compiling addr2line v0.25.1
Compiling gix-revision v0.41.0
Compiling gix-diff v0.58.0
Compiling miniz_oxide v0.8.9
Compiling gix-glob v0.24.0
Compiling gix-packetline v0.21.1
Compiling tree-sitter v0.24.7
Compiling rustc-demangle v0.1.27
Compiling backtrace v0.3.76
Compiling gix-transport v0.54.0
Compiling gix-refspec v0.37.0
Compiling gix-pack v0.65.0
Compiling arc-swap v1.8.2
Compiling gix-credentials v0.36.0
Compiling gix-ref v0.59.0
Compiling gix-shallow v0.8.1
Compiling gix-negotiate v0.27.0
Compiling gix-protocol v0.57.0
Compiling gix-odb v0.75.0
Compiling xattr v1.6.1
Compiling anstyle-parse v1.0.0
Compiling uuid v1.22.0
Compiling filetime v0.2.27
Compiling bytes v1.11.1
Compiling tar v0.4.45
Compiling git-ref-format-macro v0.6.0
Compiling anstream v1.0.0
Compiling anyhow v1.0.102
Compiling flate2 v1.1.9
Compiling getrandom v0.3.4
Compiling snapbox-macros v0.3.10
Compiling salsa20 v0.10.2
Compiling clap_lex v1.1.0
Compiling similar v2.7.0
Compiling normalize-line-endings v0.3.0
Compiling streaming-iterator v0.1.9
Compiling strsim v0.11.1
Compiling siphasher v0.3.11
Compiling bloomy v1.2.0
Compiling snapbox v0.4.17
Compiling clap_builder v4.6.0
Compiling scrypt v0.11.0
Compiling radicle-surf v0.27.1
Compiling git-ref-format v0.6.0
Compiling systemd-journal-logger v2.2.2
Compiling toml_datetime v0.7.5+spec-1.1.0
Compiling serde_spanned v1.0.4
Compiling tree-sitter-bash v0.23.3
Compiling tree-sitter-ruby v0.23.1
Compiling tree-sitter-go v0.23.4
Compiling tree-sitter-html v0.23.2
Compiling tree-sitter-typescript v0.23.2
Compiling tree-sitter-md v0.3.2
Compiling tree-sitter-rust v0.23.3
Compiling tree-sitter-toml-ng v0.6.0
Compiling tree-sitter-css v0.23.2
Compiling tree-sitter-c v0.23.4
Compiling tree-sitter-python v0.23.6
Compiling tree-sitter-json v0.24.8
Compiling toml_writer v1.0.7+spec-1.1.0
Compiling pin-project-lite v0.2.17
Compiling radicle-std-ext v0.2.0
Compiling toml v0.9.12+spec-1.1.0
Compiling tokio v1.50.0
Compiling clap v4.6.0
Compiling sysinfo v0.37.2
Compiling radicle-node v0.20.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-node)
Compiling radicle-cli v0.21.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-cli)
Compiling yansi v1.0.1
Compiling diff v0.1.13
Compiling pretty_assertions v1.4.1
Compiling human-panic v2.0.6
Compiling clap_complete v4.6.0
Compiling structured-logger v1.0.5
Compiling radicle-systemd v0.13.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-systemd)
Compiling tree-sitter-highlight v0.24.7
Compiling itertools v0.14.0
Compiling socket2 v0.5.10
Compiling humantime v2.3.0
Compiling lexopt v0.3.2
Compiling timeago v0.4.2
Compiling bit-vec v0.8.0
Compiling escargot v0.5.15
Compiling bit-set v0.8.0
Compiling git2 v0.20.4
Compiling rand_core v0.9.5
Compiling num-bigint v0.4.6
Compiling num-complex v0.4.6
Compiling env_filter v1.0.0
Compiling borrow-or-share v0.2.4
Compiling fluent-uri v0.3.2
Compiling env_logger v0.11.9
Compiling num-rational v0.4.2
Compiling ahash v0.8.12
Compiling phf_shared v0.11.3
Compiling wait-timeout v0.2.1
Compiling num v0.4.3
Compiling fnv v1.0.7
Compiling vsimd v0.8.0
Compiling radicle-remote-helper v0.17.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-remote-helper)
Compiling outref v0.5.2
Compiling quick-error v1.2.3
Compiling rusty-fork v0.3.1
Compiling radicle-oid v0.2.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-oid)
Compiling radicle-term v0.18.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-term)
Compiling radicle-cob v0.20.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-cob)
Compiling radicle-core v0.3.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-core)
Compiling radicle-log v0.1.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-log)
Compiling radicle-git-ext v0.12.0
Compiling uuid-simd v0.8.0
Compiling test-log v0.2.19
Compiling fraction v0.15.3
Compiling referencing v0.30.0
Compiling phf v0.11.3
Compiling rand_chacha v0.9.0
Compiling rand_xorshift v0.4.0
Compiling rand v0.9.2
Compiling fancy-regex v0.14.0
Compiling email_address v0.2.9
Compiling unarray v0.1.4
Compiling base64 v0.22.1
Compiling bytecount v0.6.9
Compiling num-cmp v0.1.0
Compiling proptest v1.10.0
Compiling jsonschema v0.30.0
Compiling emojis v0.6.4
Compiling radicle-fetch v0.20.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-fetch)
Compiling radicle-protocol v0.8.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-protocol)
Compiling radicle-cli-test v0.13.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-cli-test)
Compiling radicle-schemars v0.8.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-schemars)
Compiling radicle-windows v0.1.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-windows)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 04s
+ cargo doc --workspace --no-deps --all-features
Checking regex-automata v0.4.14
Compiling num-traits v0.2.19
Checking once_cell v1.21.4
Compiling syn v1.0.109
Checking tempfile v3.27.0
Checking idna v1.1.0
Checking url v2.5.8
Checking git2 v0.20.4
Checking num-integer v0.1.46
Checking num-iter v0.1.45
Checking num-bigint-dig v0.8.6
Checking rsa v0.9.10
Checking bstr v1.12.1
Compiling amplify_syn v2.0.1
Checking gix-validate v0.11.0
Checking gix-path v0.11.1
Checking git-ref-format-core v0.6.0
Checking gix-features v0.46.1
Compiling amplify_derive v4.0.1
Checking gix-hash v0.22.1
Checking ssh-key v0.6.7
Checking radicle-git-ref-format v0.1.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-git-ref-format)
Checking gix-hashtable v0.12.0
Checking gix-error v0.1.0
Checking radicle-oid v0.2.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-oid)
Checking rusty-fork v0.3.1
Checking gix-error v0.0.0
Checking radicle-localtime v0.1.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-localtime)
Checking proptest v1.10.0
Checking radicle-dag v0.10.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-dag)
Checking ssh-agent-lib v0.5.2
Checking radicle-git-metadata v0.2.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-git-metadata)
Checking gix-date v0.14.0
Checking gix-date v0.13.0
Checking gix-actor v0.39.0
Checking gix-fs v0.19.1
Checking gix-object v0.56.0
Checking gix-tempfile v21.0.1
Checking gix-actor v0.38.0
Checking amplify v4.9.0
Checking gix-chunk v0.6.0
Checking gix-quote v0.6.2
Checking regex v1.12.3
Checking cyphergraphy v0.3.0
Checking gix-commitgraph v0.33.0
Checking inquire v0.9.4
Checking cypheraddr v0.4.1
Checking noise-framework v0.4.0
Checking gix-object v0.55.0
Checking radicle-signals v0.11.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-signals)
Checking socks5-client v0.4.2
Checking gix-chunk v0.5.0
Checking cyphernet v0.5.3
Checking gix-command v0.7.1
Checking radicle-crypto v0.17.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-crypto)
Checking gix-commitgraph v0.32.0
Checking gix-revwalk v0.27.0
Checking chrono v0.4.44
Checking radicle-term v0.18.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-term)
Checking radicle-core v0.3.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-core)
Checking radicle-cob v0.20.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-cob)
Checking gix-revwalk v0.26.0
Checking gix-lock v21.0.1
Checking gix-config-value v0.17.1
Checking gix-url v0.35.2
Checking gix-prompt v0.13.1
Checking gix-traverse v0.52.0
Checking gix-diff v0.58.0
Checking gix-revision v0.41.0
Checking radicle v0.24.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle)
Checking gix-glob v0.24.0
Checking gix-packetline v0.21.1
Checking tree-sitter v0.24.7
Checking gix-refspec v0.37.0
Checking gix-transport v0.54.0
Checking gix-pack v0.65.0
Checking git-ref-format v0.6.0
Checking gix-credentials v0.36.0
Checking radicle-log v0.1.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-log)
Checking gix-ref v0.59.0
Checking gix-shallow v0.8.1
Checking gix-negotiate v0.27.0
Checking radicle-git-ext v0.12.0
Checking uuid v1.22.0
Compiling radicle-cli v0.21.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-cli)
Checking human-panic v2.0.6
Checking gix-protocol v0.57.0
Checking gix-odb v0.75.0
Checking radicle-surf v0.27.1
Checking tree-sitter-toml-ng v0.6.0
Checking tree-sitter-highlight v0.24.7
Checking radicle-systemd v0.13.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-systemd)
Documenting radicle-systemd v0.13.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-systemd)
Documenting radicle v0.24.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle)
Documenting radicle-log v0.1.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-log)
Documenting radicle-cob v0.20.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-cob)
Documenting radicle-core v0.3.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-core)
Documenting radicle-term v0.18.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-term)
Documenting radicle-crypto v0.17.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-crypto)
Documenting radicle-signals v0.11.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-signals)
Documenting radicle-oid v0.2.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-oid)
Documenting radicle-git-ref-format v0.1.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-git-ref-format)
Documenting radicle-localtime v0.1.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-localtime)
Documenting radicle-git-metadata v0.2.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-git-metadata)
Documenting radicle-dag v0.10.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-dag)
Documenting radicle-windows v0.1.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-windows)
Checking radicle-fetch v0.20.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-fetch)
Documenting radicle-cli v0.21.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-cli)
Documenting radicle-schemars v0.8.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-schemars)
Checking radicle-protocol v0.8.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-protocol)
Documenting radicle-protocol v0.8.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-protocol)
Documenting radicle-node v0.20.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-node)
Documenting radicle-fetch v0.20.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-fetch)
Documenting radicle-remote-helper v0.17.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-remote-helper)
Documenting radicle-cli-test v0.13.0 (/90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/crates/radicle-cli-test)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.28s
Generated /90da1e6f-1a63-4230-99aa-aad4c7a37b31/w/target/doc/radicle/index.html and 21 other files
+ cargo test --workspace --no-fail-fast
Finished `test` profile [unoptimized + debuginfo] target(s) in 0.17s
Running unittests src/lib.rs (target/debug/deps/radicle-52f32f29b14e6444)
running 375 tests
test canonical::formatter::test::ascii_control_characters ... ok
test canonical::formatter::test::ordered_nested_object ... ok
test cob::cache::migrations::_2::tests::test_migration_2 ... ok
test canonical::formatter::test::securesystemslib_asserts ... ok
test cob::common::test::test_color ... ok
test cob::common::test::test_emojis ... ok
test cob::cache::tests::test_check_version ... ok
test cob::cache::migrations::_2::tests::test_patch_json_deserialization ... ok
test cob::cache::tests::test_migrate_to ... ok
test cob::common::test::test_title ... ok
test cob::identity::test::prop_json_eq_str ... ok
test cob::identity::test::test_identity_redact_revision ... ok
test cob::identity::test::test_identity_remove_delegate_concurrent ... ok
test cob::identity::test::test_identity_reject_concurrent ... ok
test cob::identity::test::test_identity_update_rejected ... ok
test cob::identity::test::test_identity_updates ... ok
test cob::issue::cache::tests::test_counts ... ok
test cob::issue::cache::tests::test_get ... ok
test cob::issue::cache::tests::test_is_empty ... ok
test cob::issue::cache::tests::test_list ... ok
test cob::issue::cache::tests::test_list_by_status ... ok
test cob::issue::cache::tests::test_remove ... ok
test cob::identity::test::test_valid_identity ... ok
test cob::identity::test::test_identity_updates_concurrent ... ok
test cob::issue::test::test_embeds ... ok
test cob::issue::test::test_embeds_edit ... ok
test cob::issue::test::test_invalid_actions ... ok
test cob::identity::test::test_identity_updates_concurrent_outdated ... ok
test cob::issue::test::test_invalid_cob ... ok
test cob::issue::test::test_invalid_tx ... ok
test cob::issue::test::test_invalid_tx_reference ... ok
test cob::issue::test::test_concurrency ... ok
test cob::issue::test::test_issue_comment ... ok
test cob::issue::test::test_issue_comment_redact ... ok
test cob::issue::test::test_issue_all ... ok
test cob::issue::test::test_issue_create_and_assign ... ok
test cob::issue::test::test_issue_create_and_get ... ok
test cob::issue::test::test_issue_create_and_unassign ... ok
test cob::issue::test::test_issue_create_and_change_state ... ok
test cob::issue::test::test_issue_create_and_reassign ... ok
test cob::issue::test::test_issue_edit ... ok
test cob::issue::test::test_issue_edit_description ... ok
test cob::issue::test::test_issue_multilines ... ok
test cob::issue::test::test_issue_state_serde ... ok
test cob::issue::test::test_ordering ... ok
test cob::patch::actions::test::test_review_edit ... ok
test cob::issue::test::test_issue_label ... ok
test cob::issue::test::test_issue_react ... ok
test cob::issue::test::test_issue_reply ... ok
test cob::patch::cache::tests::test_is_empty ... ok
test cob::patch::cache::tests::test_list ... ok
test cob::patch::cache::tests::test_get ... ok
test cob::patch::cache::tests::test_remove ... ok
test cob::patch::encoding::review::test::test_review_deserialize_summary_migration_null_summary ... ok
test cob::patch::encoding::review::test::test_review_deserialize_summary_migration_with_summary ... ok
test cob::patch::encoding::review::test::test_review_deserialize_summary_migration_without_summary ... ok
test cob::patch::encoding::review::test::test_review_deserialize_summary_v2 ... ok
test cob::patch::encoding::review::test::test_review_summary ... ok
test cob::patch::test::test_json ... ok
test cob::patch::test::test_json_serialization ... ok
test cob::patch::cache::tests::test_counts ... ok
test cob::patch::test::test_patch_create_and_get ... ok
test cob::patch::cache::tests::test_list_by_status ... ok
test cob::patch::test::test_patch_discussion ... ok
test cob::patch::test::test_patch_merge ... ok
test cob::patch::test::test_patch_review_comment ... ok
test cob::patch::test::test_patch_redact ... ok
test cob::patch::test::test_patch_review ... ok
test cob::patch::test::test_patch_review_duplicate ... ok
test cob::patch::test::test_patch_review_edit ... ok
test cob::patch::test::test_patch_review_edit_comment ... ok
test cob::patch::test::test_patch_review_remove_summary ... ok
test cob::patch::test::test_reactions_json_serialization ... ok
test cob::patch::test::test_revision_edit_redact ... ok
test cob::patch::test::test_revision_reaction ... ok
test cob::patch::test::test_revision_review_merge_redacted ... ok
test cob::patch::test::test_patch_review_revision_redact ... ok
test cob::stream::tests::test_all_from ... ok
test cob::stream::tests::test_all_from_until ... ok
test cob::stream::tests::test_all_until ... ok
test cob::stream::tests::test_from_until ... ok
test cob::stream::tests::test_regression_from_until ... ok
test cob::thread::tests::test_comment_edit_missing ... ok
test cob::thread::tests::test_comment_edit_redacted ... ok
test cob::thread::tests::test_comment_redact_missing ... ok
test cob::thread::tests::test_duplicate_comments ... ok
test cob::thread::tests::test_edit_comment ... ok
test cob::thread::tests::test_redact_comment ... ok
test cob::thread::tests::test_timeline ... ok
test git::canonical::protect::tests::refs_rad ... ok
test git::canonical::protect::tests::refs_rad_id ... ok
test git::canonical::protect::tests::refs_radieschen ... ok
test git::canonical::quorum::test::merge_base_commutative ... ok
test git::canonical::quorum::test::test_merge_bases ... ok
test cob::patch::test::test_patch_update ... ok
test git::canonical::rules::test::deserialization ... ok
test git::canonical::rules::test::deserialize_extensions ... ok
test git::canonical::rules::test::matches_exactly_curly_braces ... ok
test git::canonical::rules::test::matches_expands_globs_appropriately ... ok
test git::canonical::rules::test::ordering ... ok
test git::canonical::rules::test::property::identity ... ok
test git::canonical::rules::test::property::prefix ... ok
test git::canonical::rules::test::canonical ... ok
test git::canonical::rules::test::property::prefix_negative ... ok
test git::canonical::rules::test::property::suffix_negative ... ok
test git::canonical::rules::test::property::suffix ... ok
test git::canonical::rules::test::roundtrip ... ok
test git::canonical::rules::test::property::trailing_asterisk_partial_component ... ok
test git::canonical::rules::test::rule_validate_success ... ok
test git::canonical::rules::test::special_branches ... ok
test git::canonical::symbolic::test::deserialize_infinite ... ok
test git::canonical::symbolic::test::deserialize_order ... ok
test git::canonical::symbolic::test::deserialize_valid ... ok
test git::canonical::symbolic::test::infinite_extend ... ok
test git::canonical::symbolic::test::infinite_multi ... ok
test git::canonical::symbolic::test::infinite_single ... ok
test git::canonical::symbolic::test::reclassification_combine ... ok
test git::canonical::symbolic::test::reclassification_combine_reverse ... ok
test git::canonical::symbolic::test::reclassification_diamond ... ok
test git::canonical::symbolic::test::reclassification_order_invariant ... ok
test git::canonical::symbolic::test::reclassification_reverse_chain ... ok
test git::canonical::symbolic::test::resolve_two_hop_chain ... ok
test git::canonical::symbolic::test::target_classification ... ok
test git::canonical::symbolic::test::target_classification_symbolic ... ok
test git::canonical::symbolic::test::target_reclassification ... ok
test git::canonical::symbolic::test::target_reclassification_commutative ... ok
test git::canonical::tests::test_commit_quorum_fork_of_a_fork ... ok
test git::canonical::tests::test_commit_quorum_forked_merge_commits ... ok
test git::canonical::tests::test_commit_quorum_groups ... ok
test git::canonical::tests::test_commit_quorum_linear ... ok
test git::canonical::tests::test_commit_quorum_merges ... ok
test git::canonical::tests::test_commit_quorum_single ... ok
test git::canonical::tests::test_commit_quorum_three_way_fork ... ok
test git::canonical::tests::test_commit_quorum_two_way_fork ... ok
test git::canonical::tests::test_quorum_different_types ... ok
test git::canonical::rules::test::rule_validate_failures ... ok
test git::canonical::tests::test_tag_quorum ... ok
test git::test::test_version_from_str ... ok
test git::test::test_version_ord ... ok
test identity::crefs::tests::invalid_clash ... ok
test identity::crefs::tests::invalid_clash_asterisk_name ... ok
test identity::crefs::tests::invalid_dangling ... ok
test identity::crefs::tests::omit_symbolic ... ok
test identity::crefs::tests::valid ... ok
test identity::crefs::tests::valid_asterisk_target ... ok
test identity::did::test::test_did_encode_decode ... ok
test identity::did::test::test_did_vectors ... ok
test identity::doc::test::default_branch_clash ... ok
test identity::doc::test::default_branch_without_project ... ok
test git::canonical::tests::test_quorum_properties ... ok
test cob::thread::tests::prop_ordering ... ok
test identity::doc::test::test_canonical_doc ... ok
test identity::doc::test::test_duplicate_dids ... ok
test identity::doc::test::test_future_version_error ... ok
test identity::doc::test::test_is_valid_version ... ok
test identity::doc::test::test_canonical_example ... ok
test identity::doc::test::test_not_found ... ok
test identity::doc::test::test_parse_version ... ok
test identity::doc::test::test_visibility_json ... ok
test identity::doc::update::test::test_can_update_crefs ... ok
test identity::doc::update::test::test_cannot_include_default_branch_rule ... ok
test identity::doc::update::test::test_default_branch_rule_exists_after_verification ... ok
test identity::project::test::test_project_name ... ok
test node::address::store::test::test_alias ... ok
test node::address::store::test::test_disconnected ... ok
test node::address::store::test::test_disconnected_ban ... ok
test node::address::store::test::test_empty ... ok
test node::address::store::test::test_entries ... ok
test node::address::store::test::test_entries_skips_unparsable_address ... ok
test node::address::store::test::test_get_none ... ok
test node::address::store::test::test_insert_and_get ... ok
test node::address::store::test::test_insert_and_remove ... ok
test node::address::store::test::test_insert_and_update ... ok
test node::address::store::test::test_insert_duplicate ... ok
test node::address::store::test::test_node_aliases ... ok
test node::address::store::test::test_remove_nothing ... ok
test node::command::test::command_result ... ok
test node::config::test::deserialize_migrating_scope ... ok
test node::config::test::fetch_level_min ... ok
test node::config::test::onion_absent ... ok
test node::config::test::onion_null ... ok
test node::config::test::partial ... ok
test node::config::test::regression_ipv6_address_brackets ... ok
test node::config::test::regression_ipv6_address_no_brackets ... ok
test node::config::test::serialize_migrating_scope ... ok
test node::config::test::user_agent_custom ... ok
test node::config::test::user_agent_default ... ok
test node::config::test::user_agent_default_explicit ... ok
test node::config::test::user_agent_opt_out ... ok
test node::db::config::test::database_config_valid_combinations ... ok
test node::db::config::test::invalid ... ok
test identity::doc::test::test_max_delegates ... ok
test node::db::test::migration_8::all_ipv6_formatted_dns_addresses_are_retyped ... ok
test node::db::test::migration_8::dns_address_starting_with_bracket_but_missing_closing_bracket_colon_is_unaffected ... ok
test node::db::test::migration_8::dns_address_with_bracket_not_at_start_is_unaffected ... ok
test node::db::test::migration_8::ipv4_address_is_unaffected ... ok
test node::db::test::migration_8::ipv6_formatted_dns_address_is_deleted_when_correct_ipv6_row_already_exists ... ok
test node::db::test::migration_8::migration_applies_to_all_nodes ... ok
test node::db::test::migration_8::ipv6_formatted_dns_address_is_retyped_to_ipv6 ... ok
test node::db::test::migration_8::plain_dns_hostname_without_brackets_is_unaffected ... ok
test node::db::test::migration_8::retype_preserves_address_metadata ... ok
test node::db::test::migration_9::bracketed_non_ipv6_garbage_is_deleted ... ok
test node::db::test::migration_9::dns_row_is_unaffected_even_when_inner_part_has_no_colon ... ok
test node::db::test::migration_9::empty_brackets_ipv6_row_is_deleted ... ok
test node::db::test::migration_9::ipv4_row_is_unaffected ... ok
test node::db::test::migration_9::full_ipv6_address_is_kept ... ok
test node::db::test::migration_9::loopback_address_is_kept ... ok
test node::db::test::migration_9::unspecified_address_is_kept ... ok
test node::features::test::test_operations ... ok
test node::db::test::test_version ... ok
test node::notifications::store::test::test_branch_notifications ... ok
test node::notifications::store::test::test_clear ... ok
test node::notifications::store::test::test_cob_notifications ... ok
test node::notifications::store::test::test_counts_by_repo ... ok
test node::notifications::store::test::test_duplicate_notifications ... ok
test node::notifications::store::test::test_notification_status ... ok
test node::policy::store::test::test_follow_and_unfollow_node ... ok
test node::policy::store::test::test_node_policies ... ok
test node::policy::store::test::test_node_aliases ... ok
test node::policy::store::test::test_node_policy ... ok
test node::policy::store::test::test_repo_policies ... ok
test node::policy::store::test::test_repo_policy ... ok
test node::policy::store::test::test_seed_and_unseed_repo ... ok
test node::policy::store::test::test_update_scope ... ok
test node::policy::store::test::test_update_alias ... ok
test node::refs::store::test::test_count ... ok
test node::refs::store::test::test_set_and_delete ... ok
test node::refs::store::test::test_set_and_get ... ok
test node::routing::test::test_count ... ok
test node::routing::test::test_entries ... ok
test node::routing::test::test_insert_and_get ... ok
test node::routing::test::test_insert_and_get_resources ... ok
test node::routing::test::test_insert_duplicate ... ok
test node::routing::test::test_insert_existing_updated_time ... ok
test node::routing::test::test_insert_and_remove ... ok
test node::routing::test::test_len ... ok
test node::routing::test::test_remove_many ... ok
test node::routing::test::test_remove_redundant ... ok
test node::routing::test::test_update_existing_multi ... ok
test node::sync::announce::test::all_synced_nodes_are_preferred_seeds ... ok
test node::sync::announce::test::announcer_adapts_target_to_reach ... ok
test node::routing::test::test_prune ... ok
test node::sync::announce::test::announcer_preferred_seeds_or_replica_factor ... ok
test node::sync::announce::test::announcer_reached_max_replication_target ... ok
test node::sync::announce::test::announcer_reached_min_replication_target ... ok
test node::sync::announce::test::announcer_reached_preferred_seeds ... ok
test node::sync::announce::test::announcer_synced_with_unknown_node ... ok
test node::sync::announce::test::announcer_timed_out ... ok
test node::sync::announce::test::announcer_with_replication_factor_zero_and_preferred_seeds ... ok
test node::sync::announce::test::construct_node_appears_in_multiple_input_sets ... ok
test node::sync::announce::test::construct_only_preferred_seeds_provided ... ok
test node::sync::announce::test::cannot_construct_announcer ... ok
test node::sync::announce::test::invariant_progress_should_match_state ... ok
test node::sync::announce::test::local_node_in_multiple_sets ... ok
test node::sync::announce::test::local_node_in_preferred_seeds ... ok
test node::sync::announce::test::local_node_in_synced_set ... ok
test node::sync::announce::test::local_node_only_in_all_sets_results_in_no_seeds_error ... ok
test node::sync::announce::test::local_node_in_unsynced_set ... ok
test node::sync::announce::test::preferred_seeds_already_synced ... ok
test node::sync::announce::test::synced_with_local_node_is_ignored ... ok
test node::sync::announce::test::synced_with_same_node_multiple_times ... ok
test node::sync::announce::test::timed_out_after_reaching_success ... ok
test node::sync::fetch::test::all_nodes_are_candidates ... ok
test node::sync::fetch::test::all_nodes_are_fetchable ... ok
test node::sync::fetch::test::ignores_duplicates_and_local_node ... ok
test node::sync::fetch::test::could_not_reach_target ... ok
test cob::patch::cache::tests::test_find_by_revision ... ok
test node::sync::fetch::test::reaches_target_of_max_replicas ... ok
test node::sync::fetch::test::preferred_seeds_target_returned_over_replicas ... ok
test node::sync::test::ensure_replicas_construction ... ok
test node::sync::test::replicas_constrain_to ... ok
test node::test::test_address ... ok
test node::test::test_alias ... ok
test node::test::test_command_result ... ok
test node::test::test_user_agent ... ok
test node::timestamp::tests::test_timestamp_max ... ok
test node::sync::fetch::test::reaches_target_of_preferred_seeds ... ok
test profile::test::canonicalize_home ... ok
test node::sync::fetch::test::reaches_target_of_replicas ... ok
test profile::test::test_config ... ok
test rad::tests::test_checkout ... ok
test rad::tests::test_fork ... ok
test rad::tests::test_init ... ok
test storage::git::tests::test_references_of ... ok
test storage::git::transport::local::url::test::test_url_parse ... ok
test storage::git::transport::local::url::test::test_url_to_string ... ok
test storage::git::transport::remote::url::test::test_url_parse ... ok
test storage::git::tests::test_sign_refs ... ok
test profile::config::test::schema ... ok
test storage::refs::sigrefs::git::properties::idempotent_write ... ok
test storage::refs::sigrefs::git::properties::initial_commit_roundtrip ... ok
test identity::doc::test::prop_encode_decode ... ok
test storage::refs::sigrefs::read::test::commit_reader::identity_root_error ... ok
test storage::refs::sigrefs::read::test::commit_reader::missing_commit ... ok
test storage::refs::sigrefs::read::test::commit_reader::read_ok ... ok
test storage::refs::sigrefs::read::test::commit_reader::too_many_parents ... ok
test storage::refs::sigrefs::read::test::commit_reader::tree_error ... ok
test storage::refs::sigrefs::read::test::identity_root_reader::doc_blob_error ... ok
test storage::refs::sigrefs::read::test::identity_root_reader::missing_identity ... ok
test storage::refs::sigrefs::read::test::identity_root_reader::read_ok_none ... ok
test storage::refs::sigrefs::read::test::identity_root_reader::read_ok_some ... ok
test storage::refs::sigrefs::read::test::resolve_tip::find_reference_error ... ok
test storage::refs::sigrefs::read::test::resolve_tip::missing_sigrefs ... ok
test storage::refs::sigrefs::read::test::resolve_tip::resolve_tip_ok ... ok
test storage::refs::sigrefs::read::test::signed_refs_reader::detect_parent::root_without_parent ... ok
test storage::refs::sigrefs::read::test::signed_refs_reader::detect_parent::root_without_root ... ok
test storage::refs::sigrefs::read::test::signed_refs_reader::downgrade::parent ... ok
test storage::refs::sigrefs::read::test::signed_refs_reader::downgrade::restore ... ok
test storage::refs::sigrefs::read::test::signed_refs_reader::downgrade::root ... ok
test storage::refs::sigrefs::read::test::signed_refs_reader::downgrade::root_with_parent ... ok
test storage::refs::sigrefs::read::test::signed_refs_reader::head_commit_error ... ok
test storage::refs::sigrefs::read::test::signed_refs_reader::head_verify_mismatched_identity_error ... ok
test storage::refs::sigrefs::read::test::signed_refs_reader::head_verify_signature_error ... ok
test storage::refs::sigrefs::read::test::signed_refs_reader::invalid_parent ... ok
test storage::refs::sigrefs::read::test::signed_refs_reader::read_ok_no_parent ... ok
test storage::refs::sigrefs::read::test::signed_refs_reader::read_ok_parent ... ok
test storage::refs::sigrefs::read::test::signed_refs_reader::read_ok_root ... ok
test storage::refs::sigrefs::read::test::signed_refs_reader::replay::alternating ... ok
test storage::refs::sigrefs::read::test::signed_refs_reader::replay::chain ... ok
test storage::refs::sigrefs::read::test::signed_refs_reader::replay::multiple ... ok
test storage::refs::sigrefs::read::test::signed_refs_reader::replay::root_at_head ... ok
test storage::refs::sigrefs::read::test::signed_refs_reader::single_commit ... ok
test storage::refs::sigrefs::read::test::signed_refs_reader::two_commits ... ok
test storage::refs::sigrefs::read::test::signed_refs_reader::walk_commit_error ... ok
test storage::refs::sigrefs::read::test::signed_refs_reader::walk_verify_error ... ok
test storage::refs::sigrefs::read::test::tree_reader::missing_both ... ok
test storage::refs::sigrefs::read::test::tree_reader::missing_refs ... ok
test storage::refs::sigrefs::read::test::tree_reader::missing_signature ... ok
test storage::refs::sigrefs::read::test::tree_reader::parse_refs_error ... ok
test storage::refs::sigrefs::read::test::tree_reader::parse_signature_error ... ok
test storage::refs::sigrefs::read::test::tree_reader::read_ok ... ok
test storage::refs::sigrefs::read::test::tree_reader::read_refs_error ... ok
test storage::refs::sigrefs::read::test::tree_reader::read_signature_error ... ok
test storage::refs::sigrefs::write::test::commit_writer::tree_error ... ok
test storage::refs::sigrefs::write::test::commit_writer::write_commit_error ... ok
test storage::refs::sigrefs::write::test::commit_writer::write_empty_refs ... ok
test storage::refs::sigrefs::write::test::commit_writer::write_root_ok ... ok
test storage::refs::sigrefs::write::test::commit_writer::write_with_parent_ok ... ok
test storage::refs::sigrefs::write::test::head_reader::no_head ... ok
test storage::refs::sigrefs::write::test::head_reader::read_ok ... ok
test storage::refs::sigrefs::write::test::head_reader::reference_error ... ok
test storage::refs::sigrefs::write::test::head_reader::refs_blob_error ... ok
test storage::refs::sigrefs::write::test::head_reader::refs_blob_missing ... ok
test storage::refs::sigrefs::write::test::head_reader::refs_parse_error ... ok
test storage::refs::sigrefs::write::test::head_reader::signature_blob_error ... ok
test storage::refs::sigrefs::write::test::head_reader::signature_blob_missing ... ok
test storage::refs::sigrefs::write::test::head_reader::signature_parse_error ... ok
test storage::refs::sigrefs::write::test::signed_refs_writer::commit_error ... ok
test storage::refs::sigrefs::write::test::signed_refs_writer::head_error ... ok
test storage::refs::sigrefs::write::test::signed_refs_writer::never_write_rad_sigrefs ... ok
test storage::refs::sigrefs::write::test::signed_refs_writer::reference_error ... ok
test storage::refs::sigrefs::write::test::signed_refs_writer::unchanged ... ok
test storage::refs::sigrefs::write::test::signed_refs_writer::unchanged_force_writes_new_commit ... ok
test storage::refs::sigrefs::write::test::signed_refs_writer::write_empty_refs ... ok
test storage::refs::sigrefs::write::test::signed_refs_writer::write_root_ok ... ok
test storage::refs::sigrefs::write::test::signed_refs_writer::write_with_parent_ok ... ok
test storage::refs::sigrefs::write::test::tree_writer::sign_error ... ok
test storage::refs::sigrefs::write::test::tree_writer::write_ok ... ok
test storage::refs::sigrefs::write::test::tree_writer::write_tree_error ... ok
test storage::refs::tests::prop_canonical_roundtrip ... ok
test storage::refs::tests::test_rid_verification ... ok
test storage::tests::test_storage ... ok
test test::assert::test::assert_with_message ... ok
test test::assert::test::test_assert_no_move ... ok
test test::assert::test::test_assert_panic_0 - should panic ... ok
test test::assert::test::test_assert_panic_1 - should panic ... ok
test test::assert::test::test_assert_panic_2 - should panic ... ok
test test::assert::test::test_assert_succeed ... ok
test test::assert::test::test_panic_message ... ok
test version::test::test_version ... ok
test web::test::description_only ... ok
test web::test::pinned_empty ... ok
test storage::refs::sigrefs::property::idempotent ... ok
test storage::refs::sigrefs::property::roundtrip ... ok
test storage::refs::sigrefs::git::properties::chain_roundtrip ... ok
test result: ok. 375 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 4.34s
Running unittests src/lib.rs (target/debug/deps/radicle_cli-75efc5d6742d7f21)
running 46 tests
test commands::block::args::test::should_not_parse ... ok
test commands::block::args::test::should_parse_nid ... ok
test commands::block::args::test::should_parse_rid ... ok
test commands::clone::args::test::should_parse_rid_url ... ok
test commands::clone::args::test::should_parse_rid_non_urn ... ok
test commands::cob::args::test::should_allow_log_json_format ... ok
test commands::clone::args::test::should_parse_rid_urn ... ok
test commands::cob::args::test::should_allow_update_json_format ... ok
test commands::cob::args::test::should_allow_log_pretty_format ... ok
test commands::cob::args::test::should_allow_show_json_format ... ok
test commands::fork::args::test::should_parse_rid_non_urn ... ok
test commands::fork::args::test::should_not_parse_rid_url ... ok
test commands::cob::args::test::should_not_allow_update_pretty_format ... ok
test commands::cob::args::test::should_not_allow_show_pretty_format ... ok
test commands::fork::args::test::should_parse_rid_urn ... ok
test commands::id::args::test::should_not_clobber_payload_args ... ok
test commands::id::args::test::should_not_parse_single_payload ... ok
test commands::id::args::test::should_not_parse_into_payload - should panic ... ok
test commands::id::args::test::should_parse_into_payload ... ok
test commands::id::args::test::should_not_parse_single_payloads ... ok
test commands::id::args::test::should_parse_multiple_payloads ... ok
test commands::id::args::test::should_parse_single_payload ... ok
test commands::init::args::test::should_not_parse_rid_url ... ok
test commands::init::args::test::should_parse_rid_urn ... ok
test commands::init::args::test::should_parse_rid_non_urn ... ok
test commands::patch::review::builder::tests::test_review_comments_before ... ok
test commands::patch::review::builder::tests::test_review_comments_basic ... ok
test commands::patch::review::builder::tests::test_review_comments_multiline ... ok
test commands::inspect::test::test_tree ... ok
test commands::patch::review::builder::tests::test_review_comments_split_hunk ... ok
test commands::publish::args::test::should_parse_rid_non_urn ... ok
test commands::publish::args::test::should_parse_rid_urn ... ok
test commands::publish::args::test::should_not_parse_rid_url ... ok
test commands::watch::args::test::should_parse_ref_str ... ok
test git::pretty_diff::test::test_pretty ... ignored
test git::ddiff::tests::diff_encode_decode_ddiff_hunk ... ok
test terminal::args::test::should_not_parse ... ok
test git::unified_diff::test::test_diff_content_encode_decode_content ... ok
test terminal::args::test::should_parse_nid ... ok
test terminal::args::test::should_parse_rid ... ok
test terminal::format::test::test_bytes ... ok
test terminal::format::test::test_strip_comments ... ok
test terminal::patch::test::test_edit_display_message ... ok
test git::unified_diff::test::test_diff_encode_decode_diff ... ok
test terminal::patch::test::test_create_display_message ... ok
test terminal::patch::test::test_update_display_message ... ok
test result: ok. 45 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.01s
Running unittests src/main.rs (target/debug/deps/rad-24c4c09b4e5fff17)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running tests/commands.rs (target/debug/deps/commands-af28809b44ba8bae)
running 118 tests
test commands::checkout::rad_checkout ... ok
test commands::clone::rad_clone_bare ... ok
test commands::clone::rad_clone ... ok
test commands::clone::rad_clone_all ... ok
test commands::clone::rad_clone_scope ... ok
test commands::clone::rad_clone_connect ... ok
test commands::clone::rad_clone_directory ... ok
test commands::clone::rad_clone_unknown ... ok
test commands::clone::rad_clone_partial_fail ... ok
test commands::cob::rad_cob_multiset ... ok
test commands::clone::test_clone_without_seeds ... ok
test commands::cob::rad_cob_log ... ok
test commands::cob::rad_cob_migrate ... ok
test commands::cob::rad_cob_operations ... ok
test commands::cob::rad_cob_show ... ok
test commands::cob::rad_cob_update_identity ... ok
test commands::cob::rad_cob_update ... ok
test commands::cob::test_cob_deletion ... ok
test commands::cob::test_cob_replication ... ok
test commands::git::git_push_amend ... ok
test commands::git::git_push_and_fetch ... ok
test commands::git::git_push_canonical_lightweight_tags ... ok
test commands::git::git_push_diverge ... ok
test commands::git::git_push_force_with_lease ... ok
test commands::git::git_push_canonical ... ok
test commands::git::git_push_converge ... ok
test commands::id::rad_id_collaboration ... ignored, slow
test commands::id::rad_id ... ok
test commands::git::git_push_rollback ... ok
test commands::git::git_tag ... ok
test commands::id::rad_id_private ... ok
test commands::id::rad_id_threshold_soft_fork ... ok
test commands::id::rad_id_conflict ... ok
test commands::id::rad_id_unknown_field ... ok
test commands::id::rad_id_threshold ... ok
test commands::id::rad_id_update_delete_field ... ok
test commands::init::rad_init ... ignored, part of many other tests
test commands::id::rad_id_unauthorized_delegate ... ok
test commands::init::rad_init_detached_head ... ok
test commands::id::rad_id_multi_delegate ... ok
test commands::init::rad_init_bare ... ok
test commands::init::rad_init_no_git ... ok
test commands::init::rad_init_existing ... ok
test commands::init::rad_init_existing_bare ... ok
test commands::init::rad_init_no_seed ... ok
test commands::init::rad_init_private ... ok
test commands::init::rad_init_private_no_seed ... ok
test commands::inbox::rad_inbox ... ok
test commands::init::rad_init_private_clone ... ok
test commands::init::rad_init_private_clone_seed ... ok
test commands::init::rad_init_private_seed ... ok
test commands::init::rad_init_sync_not_connected ... ok
test commands::init::rad_init_sync_preferred ... ok
test commands::init::rad_init_with_existing_remote ... ok
test commands::init::rad_publish ... ok
test commands::issue::rad_issue ... ok
test commands::jj::rad_jj_bare ... ignored, the bare repository does not have a `rad` remote, and so it cannot determine the RID of the repository
test commands::jj::rad_jj_colocated_patch ... ok
test commands::issue::rad_issue_list ... ok
test commands::node::rad_node_connect ... ok
test commands::node::rad_node_connect_without_address ... ok
test commands::patch::rad_merge_after_update ... ok
test commands::node::rad_node ... ok
test commands::patch::rad_merge_no_ff ... ok
test commands::patch::rad_merge_via_push ... ok
test commands::patch::rad_patch ... ok
test commands::patch::rad_patch_ahead_behind ... ok
test commands::patch::rad_patch_change_base ... ok
test commands::patch::rad_patch_checkout ... ok
test commands::init::rad_init_sync_and_clone ... ok
test commands::init::rad_init_sync_timeout ... ok
test commands::patch::rad_patch_checkout_revision ... ok
test commands::patch::rad_patch_detached_head ... ok
test commands::patch::rad_patch_checkout_force ... ok
test commands::patch::rad_patch_diff ... ok
test commands::patch::rad_patch_draft ... ok
test commands::patch::rad_patch_fetch_2 ... ok
test commands::patch::rad_patch_edit ... ok
test commands::patch::rad_patch_fetch_1 ... ok
test commands::patch::rad_patch_merge_draft ... ok
test commands::patch::rad_patch_delete ... ok
test commands::patch::rad_patch_revert_merge ... ok
test commands::patch::rad_patch_open_explore ... ok
test commands::patch::rad_patch_update ... ok
test commands::patch::rad_review_by_hunk ... ok
test commands::policy::rad_block ... ok
test commands::patch::rad_patch_via_push ... ok
test commands::policy::rad_seed_and_follow ... ok
test commands::policy::rad_seed_policy_allow_no_scope ... ok
test commands::policy::rad_seed_scope ... ok
test commands::policy::rad_unseed ... ok
test commands::policy::rad_seed_many ... ok
test commands::policy::rad_unseed_many ... ok
test commands::sigpipe::config ... ok
test commands::sigpipe::help ... ok
test commands::patch::rad_push_and_pull_patches ... ok
test commands::sigpipe::rad_self ... ok
test commands::remote::rad_remote ... ok
test commands::sync::rad_sync_without_node ... ok
test commands::sync::rad_sync ... ok
test commands::utility::framework_home ... ok
test commands::utility::rad_auth ... ok
test commands::utility::rad_auth_errors ... ok
test commands::patch::rad_patch_pull_update ... ok
test commands::utility::rad_clean ... ok
test commands::utility::rad_config ... ok
test commands::utility::rad_diff ... ok
test commands::utility::rad_help ... ok
test commands::utility::rad_inspect ... ok
test commands::utility::rad_key_mismatch ... ok
test commands::utility::rad_self ... ok
test commands::utility::rad_warn_old_nodes ... ok
test commands::sync::rad_fetch ... ok
test commands::watch::rad_watch ... ok
test rad_remote ... ok
test commands::workflow::rad_workflow ... ok
test commands::sync::test_replication_via_seed ... ok
test commands::utility::rad_fork ... ok
test result: ok. 115 passed; 0 failed; 3 ignored; 0 measured; 0 filtered out; finished in 77.66s
running 3 tests
test tests::test_parse ... ok
test tests::test_run ... ok
Running unittests src/lib.rs (target/debug/deps/radicle_cli_test-0ffd2ed377c44063)
test tests::test_example_spaced_brackets ... ok
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/radicle_cob-702c81b27ab43842)
running 9 tests
test object::tests::test_serde ... ok
test tests::git::roundtrip ... ok
test tests::invalid_parse_refstr ... ok
test tests::git::update_cob ... ok
test type_name::test::invalid_typenames ... ok
test type_name::test::valid_typenames ... ok
test tests::parse_refstr ... ok
test tests::git::list_cobs ... ok
test tests::git::traverse_cobs ... ok
test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s
Running unittests src/lib.rs (target/debug/deps/radicle_core-3d8a5be0f9b0e47e)
running 4 tests
test repo::test::valid ... ok
test repo::test::invalid ... ok
test repo::test::assert_prop_roundtrip_parse ... ok
test repo::serde_impls::test::assert_prop_roundtrip_serde_json ... ok
test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/radicle_crypto-ef87a572eac2766d)
running 11 tests
test ssh::agent::test::test_agent_encoding_remove ... ok
test ssh::agent::test::test_agent_encoding_sign ... ok
test ssh::fmt::test::test_fingerprint ... ok
test ssh::fmt::test::test_key ... ok
test ssh::keystore::tests::test_init_no_passphrase ... ok
test tests::prop_encode_decode ... ok
test tests::test_e25519_dh ... ok
test tests::test_encode_decode ... ok
test tests::prop_key_equality ... ok
test ssh::keystore::tests::test_signer ... ok
test ssh::keystore::tests::test_init_passphrase ... ok
test result: ok. 11 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.83s
Running unittests src/lib.rs (target/debug/deps/radicle_dag-e10cdde88570a8e0)
running 20 tests
test tests::test_contains ... ok
test tests::test_cycle ... ok
test tests::test_dependencies ... ok
test tests::test_diamond ... ok
test tests::test_fold_diamond ... ok
test tests::test_fold_multiple_roots ... ok
test tests::test_fold_reject ... ok
test tests::test_fold_sorting_1 ... ok
test tests::test_fold_sorting_2 ... ok
test tests::test_get ... ok
test tests::test_is_empty ... ok
test tests::test_len ... ok
test tests::test_complex ... ok
test tests::test_merge_1 ... ok
test tests::test_merge_2 ... ok
test tests::test_prune_1 ... ok
test tests::test_prune_2 ... ok
test tests::test_prune_by_sorting ... ok
test tests::test_remove ... ok
test tests::test_siblings ... ok
test result: ok. 20 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/radicle_fetch-c1d8a466727fdbd1)
running 1 test
test stage::test::valid_refspecs ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/radicle_git_metadata-41b02b9ef3e2236d)
running 24 tests
test commit::parse::test::error::invalid_author ... ok
test commit::parse::test::error::invalid_committer ... ok
test commit::parse::test::error::invalid_format_continuation_without_preceding_header ... ok
test commit::parse::test::error::invalid_parent ... ok
test commit::parse::test::error::invalid_tree ... ok
test commit::parse::test::error::missing_committer ... ok
test commit::parse::test::error::missing_author ... ok
test commit::parse::test::error::missing_header_body_separator ... ok
test commit::parse::test::error::missing_tree_empty_header ... ok
test commit::parse::test::error::missing_tree_wrong_first_line ... ok
test commit::parse::test::success::commit_gpgsig_is_preserved_and_strip_removes_it ... ok
test commit::parse::test::success::commit_with_multiline_gpgsig ... ok
test commit::parse::test::success::commit_last_paragraph_kept_in_message_when_not_all_trailers ... ok
test commit::parse::test::success::commit_with_extra_headers ... ok
test commit::parse::test::success::commit_with_trailers ... ok
test commit::parse::test::success::commit_with_single_parent ... ok
test commit::parse::test::success::merge_commit ... ok
test commit::parse::test::success::root_commit ... ok
test commit::parse::test::success::roundtrip ... ok
test commit::parse::test::unit::body_last_paragraph_not_trailers_stays_in_message ... ok
test commit::parse::test::unit::body_no_paragraph_separator_means_no_trailers ... ok
test commit::parse::test::unit::trailers_accepts_empty_input ... ok
test commit::parse::test::unit::trailers_rejects_invalid_token_chars ... ok
test commit::parse::test::unit::trailers_rejects_line_without_separator ... ok
test result: ok. 24 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/radicle_git_ref_format-2868a65b3ff2c590)
running 9 tests
test test::component ... ok
test test::component_invalid - should panic ... ok
test test::qualified ... ok
test test::pattern ... ok
test test::qualified_invalid - should panic ... ok
test test::qualified_pattern ... ok
test test::qualified_pattern_invalid - should panic ... ok
test test::refname ... ok
test test::refname_invalid - should panic ... ok
test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/radicle_localtime-ec55a7767b981c91)
running 1 test
test serde_impls::test::test_localtime ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/radicle_log-aa8a5607eeb05b0d)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/radicle_node-1aaf9cbee6964a06)
running 80 tests
test reactor::timer::tests::test_next ... ok
test reactor::timer::tests::test_wake ... ok
test reactor::timer::tests::test_wake_exact ... ok
test control::tests::test_control_socket ... ok
test control::tests::test_seed_unseed ... ok
test fingerprint::tests::matching ... ok
test tests::e2e::fetch_does_not_contain_rad_sigrefs_parent ... ok
test tests::e2e::missing_default_branch ... ok
test tests::e2e::missing_delegate_default_branch ... ok
test tests::e2e::test_background_foreground_fetch ... ok
test tests::e2e::test_block_prevents_connection ... ok
test tests::e2e::test_block_active_connection ... ok
test tests::e2e::test_block_prevents_fetch ... ok
test tests::e2e::test_channel_reader_limit ... ok
test tests::e2e::test_catchup_on_refs_announcements ... ok
test tests::e2e::test_clone ... ok
test tests::e2e::test_connection_crossing ... ok
test tests::e2e::test_dont_fetch_owned_refs ... ok
test tests::e2e::test_fetch_emits_canonical_ref_update_partial_glob ... ok
test tests::e2e::test_fetch_followed_remotes ... ok
test tests::e2e::test_fetch_preserve_owned_refs ... ok
test tests::e2e::test_concurrent_fetches ... ok
test tests::e2e::test_fetch_unseeded ... ok
test tests::e2e::test_fetch_up_to_date ... ok
test tests::e2e::test_inventory_sync_basic ... ok
test tests::e2e::test_fetch_emits_canonical_ref_update ... ok
test tests::e2e::test_large_fetch ... ok
test tests::e2e::test_migrated_clone ... ok
test tests::e2e::test_missing_remote ... ok
test tests::e2e::test_multiple_offline_inits ... ok
test tests::e2e::test_non_fast_forward_identity_doc ... ok
test tests::e2e::test_non_fast_forward_sigrefs ... ok
test tests::e2e::test_outdated_delegate_sigrefs ... ok
test tests::e2e::test_outdated_sigrefs ... ok
test tests::e2e::test_replication ... ok
test tests::e2e::test_inventory_sync_bridge ... ok
test tests::e2e::test_replication_invalid ... ok
test tests::e2e::test_inventory_sync_ring ... ok
test tests::e2e::test_inventory_sync_star ... ok
test tests::e2e::test_replication_ref_in_sigrefs ... ok
test tests::test_announcement_rebroadcast ... ok
test tests::test_announcement_rebroadcast_duplicates ... ok
test tests::test_announcement_rebroadcast_timestamp_filtered ... ok
test tests::test_announcement_relay ... ok
test tests::test_connection_kept_alive ... ok
test tests::test_disconnecting_unresponsive_peer ... ok
test tests::test_fetch_missing_inventory_on_gossip ... ok
test tests::test_fetch_missing_inventory_on_schedule ... ok
test tests::test_inbound_connection ... ok
test tests::test_inventory_decode ... ok
test tests::test_init_and_seed ... ok
test tests::test_inventory_relay ... ok
test tests::test_inventory_relay_bad_timestamp ... ok
test tests::test_inventory_sync ... ok
test tests::test_maintain_connections ... ok
test tests::test_maintain_connections_failed_attempt ... ok
test tests::test_maintain_connections_transient ... ok
test tests::test_outbound_connection ... ok
test tests::test_inventory_pruning ... ok
test tests::test_persistent_peer_connect ... ok
test tests::test_persistent_peer_reconnect_success ... ok
test tests::test_persistent_peer_reconnect_attempt ... ok
test tests::test_ping_response ... ok
test tests::test_queued_fetch_from_ann_same_rid ... ok
test tests::test_queued_fetch_max_capacity ... ok
test tests::test_queued_fetch_from_command_same_rid ... ok
test tests::test_redundant_connect ... ok
test tests::test_refs_announcement_fetch_trusted_no_inventory ... ok
test tests::test_refs_announcement_followed ... ok
test tests::test_refs_announcement_no_subscribe ... ok
test tests::test_refs_announcement_offline ... ok
test tests::test_refs_announcement_relay_public ... ok
test tests::test_refs_announcement_relay_private ... ok
test tests::test_announcement_message_amplification ... ok
test tests::prop_inventory_exchange_dense ... ok
test wire::test::test_inventory_ann_with_extension ... ok
test wire::test::test_pong_message_with_extension ... ok
test tests::test_seeding ... ok
test tests::test_seed_repo_subscribe ... ok
test tests::test_refs_synced_event ... ok
test result: ok. 80 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 15.55s
Running unittests src/main.rs (target/debug/deps/radicle_node-4883601b78d2da96)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/radicle_oid-899d6afb9a9d0dcb)
running 10 tests
test fmt::test::fixture ... ok
test git2::test::zero ... ok
test fmt::test::zero ... ok
test gix::test::zero ... ok
test str::test::fixture ... ok
test fmt::test::git2 ... ok
test fmt::test::gix ... ok
test str::test::zero ... ok
test str::test::git2_roundtrip ... ok
test str::test::gix_roundtrip ... ok
test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/radicle_protocol-74198955a1117dc2)
running 99 tests
test deserializer::test::test_decode_next ... ok
test deserializer::test::test_unparsed ... ok
test deserializer::test::prop_decode_next ... ok
test fetcher::service::tests::test_fetch_coalescing_different_refs ... ok
test fetcher::test::queue::properties::capacity::rejection ... ok
test fetcher::test::queue::properties::capacity::bounded ... ok
test fetcher::test::queue::properties::dequeue::empty_queue_returns_none ... ok
test fetcher::test::queue::properties::dequeue::enables_reenqueue ... ok
test fetcher::test::queue::properties::dequeue::drained_queue_returns_none ... ok
test fetcher::test::queue::properties::capacity::capacity_reached_returns_same_item ... ok
test fetcher::test::queue::properties::capacity::restored_after_dequeue ... ok
test fetcher::test::queue::properties::fifo::interleaved_operations ... ok
test fetcher::test::queue::properties::fifo::ordering ... ok
test fetcher::test::queue::properties::equality::reflexive ... ok
test fetcher::test::queue::properties::equality::symmetric ... ok
test fetcher::test::queue::properties::merge::different_rid_accepted ... ok
test fetcher::test::queue::properties::merge::combines_refs ... ok
test fetcher::test::queue::properties::merge::longer_timeout_preserved ... ok
test fetcher::test::queue::properties::equality::transitive ... ok
test fetcher::test::queue::properties::merge::does_not_increase_queue_length ... ok
test fetcher::test::queue::unit::capacity_takes_precedence_over_merge_for_new_items ... ok
test fetcher::test::queue::unit::empty_refs_items_can_be_equal ... ok
test fetcher::test::queue::unit::max_timeout_accepted ... ok
test fetcher::test::queue::unit::merge_preserves_position_in_queue ... ok
test fetcher::test::queue::unit::zero_timeout_accepted ... ok
test fetcher::test::state::command::cancel::cancellation_is_isolated ... ok
test fetcher::test::state::command::cancel::non_existent_returns_unexpected ... ok
test fetcher::test::state::command::cancel::ongoing_and_queued ... ok
test fetcher::test::state::command::cancel::single_ongoing ... ok
test fetcher::test::state::command::fetch::fetch_after_previous_completed ... ok
test fetcher::test::state::command::fetch::fetch_at_capacity_enqueues ... ok
test fetcher::test::state::command::fetch::fetch_different_repo_same_node_within_capacity ... ok
test fetcher::test::state::command::fetch::fetch_duplicate_returns_already_fetching ... ok
test fetcher::test::state::command::fetch::fetch_queue_merge_empty_refs_fetches_all ... ok
test fetcher::test::state::command::fetch::fetch_queue_merge_takes_longer_timeout ... ok
test fetcher::test::state::command::fetch::fetch_queue_merges_already_queued ... ok
test fetcher::test::state::command::fetch::fetch_queue_rejected_capacity_reached ... ok
test fetcher::test::queue::properties::merge::empty_refs_fetches_all ... ok
test fetcher::test::state::command::fetch::fetch_same_repo_different_nodes_queues_second ... ok
test fetcher::test::state::command::fetch::fetch_same_repo_different_refs_enqueues ... ok
test fetcher::test::state::command::fetch::fetch_start_first_fetch_for_node ... ok
test fetcher::test::state::command::fetched::complete_one_of_multiple ... ok
test fetcher::test::state::command::fetched::complete_single_ongoing ... ok
test fetcher::test::state::command::fetched::non_existent_returns_not_found ... ok
test fetcher::test::state::command::fetched::complete_then_dequeue_fifo ... ok
test fetcher::test::state::concurrent::fetched_then_cancel ... ok
test fetcher::test::state::concurrent::interleaved_operations ... ok
test fetcher::test::state::config::min_queue_size ... ok
test fetcher::test::state::dequeue::cannot_dequeue_while_node_at_capacity ... ok
test fetcher::test::state::dequeue::empty_queue_returns_none ... ok
test fetcher::test::state::dequeue::maintains_fifo_order ... ok
test fetcher::test::state::invariant::queue_integrity_after_merge ... ok
test fetcher::test::queue::properties::merge::succeed_when_at_capacity ... ok
test fetcher::test::state::multinode::independent_queues ... ok
test service::filter::test::compatible ... ok
test service::filter::test::test_parameters ... ok
test service::filter::test::test_sizes ... ok
test service::gossip::store::test::test_announced ... ok
test service::limiter::test::test_limiter_different_rates ... ok
test service::limiter::test::test_limiter_multi ... ok
test service::limiter::test::test_limiter_refill ... ok
test fetcher::test::queue::properties::merge::same_rid_merges_anywhere_in_queue ... ok
test fetcher::test::state::config::high_concurrency ... ok
test service::message::tests::test_inventory_limit ... ok
test service::message::tests::test_ref_remote_limit ... ok
test wire::frame::test::test_encode_git_large ... ok
test wire::frame::test::test_stream_id ... ok
test fetcher::test::state::multinode::high_count ... ok
test wire::message::tests::prop_roundtrip_address ... ok
test service::message::tests::prop_refs_announcement_signing ... ok
test wire::message::tests::prop_zero_bytes_encode_decode ... ok
test wire::message::tests::test_inv_ann_max_size ... ok
test wire::message::tests::test_node_ann_max_size ... ok
test wire::message::tests::test_ping_encode_size_overflow - should panic ... ok
test wire::message::tests::test_pingpong_encode_max_size ... ok
test wire::message::tests::test_pong_encode_size_overflow - should panic ... ok
test service::message::tests::test_node_announcement_validate ... ok
test wire::tests::prop_oid ... ok
test wire::tests::prop_roundtrip_filter ... ok
test wire::tests::prop_roundtrip_publickey ... ok
test wire::tests::prop_roundtrip_refs ... ok
test wire::tests::prop_roundtrip_repoid ... ok
test wire::tests::prop_roundtrip_tuple ... ok
test wire::tests::prop_roundtrip_u16 ... ok
test wire::tests::prop_roundtrip_u32 ... ok
test wire::tests::prop_roundtrip_u64 ... ok
test wire::tests::prop_roundtrip_vec ... ok
test wire::tests::prop_signature ... ok
test wire::tests::prop_string ... ok
test wire::tests::test_alias ... ok
test wire::tests::test_bounded_vec_limit ... ok
test wire::tests::test_filter_invalid ... ok
test wire::tests::test_string ... ok
test wire::varint::test::prop_roundtrip_varint ... ok
test wire::varint::test::test_encode_overflow - should panic ... ok
test wire::varint::test::test_encoding ... ok
test wire::message::tests::prop_roundtrip_message ... ok
test wire::message::tests::test_refs_ann_max_size ... ok
test wire::message::tests::prop_message_decoder ... ok
test result: ok. 99 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.94s
Running unittests src/main.rs (target/debug/deps/git_remote_rad-41e6602d1550b8e7)
running 12 tests
test protocol::tests::test_empty ... ok
test protocol::tests::test_capabilities ... ok
test protocol::tests::test_fetch_whitespace ... ok
test protocol::tests::test_invalid ... ok
test protocol::tests::test_fetch ... ok
test protocol::tests::test_list ... ok
test protocol::tests::test_option ... ok
test protocol::tests::test_option_whitespace_preservation ... ok
test protocol::tests::test_push ... ok
test protocol::tests::test_list_for_push ... ok
test protocol::tests::test_push_delete ... ok
test protocol::tests::test_push_force ... ok
test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/main.rs (target/debug/deps/radicle_schemars-290131f689c4a490)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/radicle_signals-e91beff5378165d8)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/radicle_systemd-77e26f6a607513aa)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/radicle_term-afa03b1828121040)
running 21 tests
test ansi::tests::colors_disabled ... ok
test ansi::tests::wrapping ... ok
test cell::test::test_width ... ok
test ansi::tests::colors_enabled ... ok
test element::test::test_spaced ... ok
test element::test::test_width ... ok
test table::test::test_table ... ok
test element::test::test_truncate ... ok
test table::test::test_table_border_maximized ... ok
test table::test::test_table_border ... ok
test table::test::test_table_truncate ... ok
test table::test::test_table_border_truncated ... ok
test table::test::test_table_unicode ... ok
test table::test::test_table_unicode_truncate ... ok
test table::test::test_truncate ... ok
test textarea::test::test_wrapping_code_block ... ok
test textarea::test::test_wrapping_fenced_block ... ok
test textarea::test::test_wrapping ... ok
test vstack::test::test_vstack ... ok
test vstack::test::test_vstack_maximize ... ok
test textarea::test::test_wrapping_paragraphs ... ok
test result: ok. 21 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/radicle_windows-942926f7348a8563)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle
running 1 test
test crates/radicle/src/cob/patch/encoding/review.rs - cob::patch::encoding::review::Review (line 23) ... ignored
test result: ok. 0 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle_cli
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle_cli_test
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle_cob
running 1 test
test crates/radicle-cob/src/backend/stable.rs - backend::stable::with_advanced_timestamp (line 56) ... ignored
test result: ok. 0 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.00s
all doctests ran in 0.10s; merged doctests compilation took 0.09s
Doc-tests radicle_core
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle_crypto
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle_dag
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle_fetch
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle_git_metadata
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle_git_ref_format
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle_localtime
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle_log
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle_node
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle_oid
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle_protocol
running 6 tests
test crates/radicle-protocol/src/bounded.rs - bounded::BoundedVec<T,N>::collect_from (line 30) ... ok
test crates/radicle-protocol/src/bounded.rs - bounded::BoundedVec<T,N>::max (line 96) ... ok
test crates/radicle-protocol/src/bounded.rs - bounded::BoundedVec<T,N>::push (line 122) ... ok
test crates/radicle-protocol/src/bounded.rs - bounded::BoundedVec<T,N>::truncate (line 50) ... ok
test crates/radicle-protocol/src/bounded.rs - bounded::BoundedVec<T,N>::unbound (line 149) ... ok
test crates/radicle-protocol/src/bounded.rs - bounded::BoundedVec<T,N>::with_capacity (line 66) ... ok
test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
all doctests ran in 0.41s; merged doctests compilation took 0.39s
Doc-tests radicle_signals
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle_systemd
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle_term
running 1 test
test crates/radicle-term/src/table.rs - table (line 4) ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
all doctests ran in 0.20s; merged doctests compilation took 0.19s
Doc-tests radicle_windows
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Exit code: 0
{
"response": "finished",
"result": "success"
}