rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5 heartwood8bac24d6ab961dec6308fdf64b31c41201e9e8d1
{
"request": "trigger",
"version": 1,
"event_type": "push",
"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"
]
},
"pusher": {
"id": "did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
"alias": "fintohaps"
},
"before": "8bac24d6ab961dec6308fdf64b31c41201e9e8d1",
"after": "8bac24d6ab961dec6308fdf64b31c41201e9e8d1",
"branch": "master",
"commits": [
"8bac24d6ab961dec6308fdf64b31c41201e9e8d1",
"0494227e7558e4a2bccf768f4f0986e9db55c2df"
]
}
{
"response": "triggered",
"run_id": {
"id": "c2be2ca1-6f15-484a-a90b-0d8077ba5bd6"
},
"info_url": "https://cci.rad.levitte.org//c2be2ca1-6f15-484a-a90b-0d8077ba5bd6.html"
}
Started at: 2026-03-30 17:24:05.338500+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/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/
╭────────────────────────────────────╮
│ heartwood │
│ Radicle Heartwood Protocol & Stack │
│ 154 issues · 41 patches │
╰────────────────────────────────────╯
Run `cd ./.` to go to the repository directory.
Exit code: 0
$ git config advice.detachedHead false
Exit code: 0
$ git checkout 8bac24d6ab961dec6308fdf64b31c41201e9e8d1
HEAD is now at 8bac24d6 rust/edition/fmt: 2021 → 2024
Exit code: 0
$ git show 8bac24d6ab961dec6308fdf64b31c41201e9e8d1
commit 8bac24d6ab961dec6308fdf64b31c41201e9e8d1
Author: Lorenz Leutgeb <lorenz.leutgeb@radicle.xyz>
Date: Wed Mar 25 08:24:30 2026 +0100
rust/edition/fmt: 2021 → 2024
Reformat code with `rustfmt`, now that the edition changed from
Rust 2021 to Rust 2024.
diff --git a/.rustfmt.toml b/.rustfmt.toml
index 3a26366d..f216078d 100644
--- a/.rustfmt.toml
+++ b/.rustfmt.toml
@@ -1 +1 @@
-edition = "2021"
+edition = "2024"
diff --git a/crates/radicle-cli/src/commands/auth.rs b/crates/radicle-cli/src/commands/auth.rs
index 100b9a96..ccb95374 100644
--- a/crates/radicle-cli/src/commands/auth.rs
+++ b/crates/radicle-cli/src/commands/auth.rs
@@ -3,13 +3,13 @@ mod args;
use std::str::FromStr;
-use anyhow::{anyhow, Context};
+use anyhow::{Context, anyhow};
use radicle::crypto::ssh;
use radicle::crypto::ssh::Passphrase;
use radicle::node::Alias;
use radicle::profile::env;
-use radicle::{profile, Profile};
+use radicle::{Profile, profile};
use crate::terminal as term;
diff --git a/crates/radicle-cli/src/commands/block/args.rs b/crates/radicle-cli/src/commands/block/args.rs
index f75cdcd3..cbba7e59 100644
--- a/crates/radicle-cli/src/commands/block/args.rs
+++ b/crates/radicle-cli/src/commands/block/args.rs
@@ -16,8 +16,8 @@ pub struct Args {
#[cfg(test)]
mod test {
- use clap::error::ErrorKind;
use clap::Parser;
+ use clap::error::ErrorKind;
use super::Args;
diff --git a/crates/radicle-cli/src/commands/checkout.rs b/crates/radicle-cli/src/commands/checkout.rs
index 9cc7a4dd..a4b185ac 100644
--- a/crates/radicle-cli/src/commands/checkout.rs
+++ b/crates/radicle-cli/src/commands/checkout.rs
@@ -3,8 +3,8 @@ mod args;
use std::path::PathBuf;
-use anyhow::anyhow;
use anyhow::Context as _;
+use anyhow::anyhow;
use radicle::git;
use radicle::node::AliasStore;
diff --git a/crates/radicle-cli/src/commands/clone/args.rs b/crates/radicle-cli/src/commands/clone/args.rs
index cabaf192..2a8ddf46 100644
--- a/crates/radicle-cli/src/commands/clone/args.rs
+++ b/crates/radicle-cli/src/commands/clone/args.rs
@@ -2,15 +2,15 @@ use std::path::PathBuf;
use clap::Parser;
-use radicle::identity::doc::RepoId;
use radicle::identity::IdError;
+use radicle::identity::doc::RepoId;
use radicle::node::policy::Scope;
use radicle::prelude::*;
use radicle::storage::refs;
use crate::common_args::{
- SignedReferencesFeatureLevel, SignedReferencesFeatureLevelParser,
- ABOUT_FETCH_SIGNED_REFERENCES_FEATURE_LEVEL_MINIMUM,
+ ABOUT_FETCH_SIGNED_REFERENCES_FEATURE_LEVEL_MINIMUM, SignedReferencesFeatureLevel,
+ SignedReferencesFeatureLevelParser,
};
use crate::node::SyncSettings;
use crate::terminal;
diff --git a/crates/radicle-cli/src/commands/cob.rs b/crates/radicle-cli/src/commands/cob.rs
index 940414c5..12b92364 100644
--- a/crates/radicle-cli/src/commands/cob.rs
+++ b/crates/radicle-cli/src/commands/cob.rs
@@ -21,7 +21,7 @@ use crate::terminal as term;
pub use args::Args;
-use args::{parse_many_embeds, FilteredTypeName, Format};
+use args::{FilteredTypeName, Format, parse_many_embeds};
fn embeds(
repo: &storage::git::Repository,
diff --git a/crates/radicle-cli/src/commands/cob/args.rs b/crates/radicle-cli/src/commands/cob/args.rs
index bd5f388b..fcada46a 100644
--- a/crates/radicle-cli/src/commands/cob/args.rs
+++ b/crates/radicle-cli/src/commands/cob/args.rs
@@ -339,8 +339,8 @@ impl std::str::FromStr for FilteredTypeName {
#[cfg(test)]
mod test {
use super::Args;
- use clap::error::ErrorKind;
use clap::Parser;
+ use clap::error::ErrorKind;
const ARGS: &[&str] = &[
"--repo",
diff --git a/crates/radicle-cli/src/commands/config.rs b/crates/radicle-cli/src/commands/config.rs
index a74c8409..ae67a407 100644
--- a/crates/radicle-cli/src/commands/config.rs
+++ b/crates/radicle-cli/src/commands/config.rs
@@ -5,7 +5,7 @@ use args::Command;
use std::path::Path;
-use radicle::profile::{config, Config, ConfigPath, RawConfig};
+use radicle::profile::{Config, ConfigPath, RawConfig, config};
use crate::terminal as term;
use crate::terminal::Element as _;
diff --git a/crates/radicle-cli/src/commands/follow.rs b/crates/radicle-cli/src/commands/follow.rs
index aa214cd2..27dff43b 100644
--- a/crates/radicle-cli/src/commands/follow.rs
+++ b/crates/radicle-cli/src/commands/follow.rs
@@ -1,7 +1,7 @@
mod args;
-use radicle::node::{policy, Alias, AliasStore, Handle, NodeId};
-use radicle::{prelude::*, Node};
+use radicle::node::{Alias, AliasStore, Handle, NodeId, policy};
+use radicle::{Node, prelude::*};
use radicle_term::{Element as _, Paint, Table};
use crate::terminal as term;
diff --git a/crates/radicle-cli/src/commands/fork/args.rs b/crates/radicle-cli/src/commands/fork/args.rs
index a2374b3d..850a0b15 100644
--- a/crates/radicle-cli/src/commands/fork/args.rs
+++ b/crates/radicle-cli/src/commands/fork/args.rs
@@ -25,8 +25,8 @@ pub struct Args {
#[cfg(test)]
mod test {
use super::Args;
- use clap::error::ErrorKind;
use clap::Parser;
+ use clap::error::ErrorKind;
#[test]
fn should_parse_rid_non_urn() {
diff --git a/crates/radicle-cli/src/commands/id.rs b/crates/radicle-cli/src/commands/id.rs
index 2194fb2c..f4018f53 100644
--- a/crates/radicle-cli/src/commands/id.rs
+++ b/crates/radicle-cli/src/commands/id.rs
@@ -2,21 +2,21 @@ mod args;
use std::collections::BTreeSet;
-use anyhow::{anyhow, Context};
+use anyhow::{Context, anyhow};
-use radicle::cob::identity::{self, IdentityMut, Revision, RevisionId};
use radicle::cob::Title;
+use radicle::cob::identity::{self, IdentityMut, Revision, RevisionId};
use radicle::identity::doc::update;
-use radicle::identity::{doc, Doc, Identity, RawDoc};
-use radicle::node::device::Device;
+use radicle::identity::{Doc, Identity, RawDoc, doc};
use radicle::node::NodeId;
+use radicle::node::device::Device;
use radicle::storage::{ReadStorage as _, WriteRepository};
-use radicle::{cob, crypto, Profile};
+use radicle::{Profile, cob, crypto};
use radicle_surf::diff::Diff;
use radicle_term::Element;
-use crate::git::unified_diff::Encode as _;
use crate::git::Rev;
+use crate::git::unified_diff::Encode as _;
use crate::terminal as term;
use crate::terminal::args::Error;
use crate::terminal::format::Author;
diff --git a/crates/radicle-cli/src/commands/id/args.rs b/crates/radicle-cli/src/commands/id/args.rs
index c123b0ef..d83e6029 100644
--- a/crates/radicle-cli/src/commands/id/args.rs
+++ b/crates/radicle-cli/src/commands/id/args.rs
@@ -8,9 +8,9 @@ use serde_json as json;
use thiserror::Error;
use radicle::cob::{Title, TypeNameParse};
+use radicle::identity::doc::PayloadId;
use radicle::identity::doc::update::EditVisibility;
use radicle::identity::doc::update::PayloadUpsert;
-use radicle::identity::doc::PayloadId;
use radicle::prelude::{Did, RepoId};
use crate::git::Rev;
@@ -240,9 +240,9 @@ pub(super) enum Command {
#[cfg(test)]
mod test {
- use super::{parse_many_upserts, Args};
- use clap::error::ErrorKind;
+ use super::{Args, parse_many_upserts};
use clap::Parser;
+ use clap::error::ErrorKind;
#[test]
fn should_parse_single_payload() {
diff --git a/crates/radicle-cli/src/commands/inbox.rs b/crates/radicle-cli/src/commands/inbox.rs
index 616e3382..91f7ec04 100644
--- a/crates/radicle-cli/src/commands/inbox.rs
+++ b/crates/radicle-cli/src/commands/inbox.rs
@@ -9,8 +9,8 @@ use anyhow::anyhow;
use localtime::LocalTime;
use radicle::cob::TypedId;
-use radicle::git::fmt::Qualified;
use radicle::git::BranchName;
+use radicle::git::fmt::Qualified;
use radicle::identity::Identity;
use radicle::issue::cache::Issues as _;
use radicle::node::notifications;
@@ -18,7 +18,7 @@ use radicle::node::notifications::*;
use radicle::patch::cache::Patches as _;
use radicle::prelude::{NodeId, Profile, RepoId};
use radicle::storage::{ReadRepository, ReadStorage};
-use radicle::{cob, git, Storage};
+use radicle::{Storage, cob, git};
use term::Element as _;
diff --git a/crates/radicle-cli/src/commands/init.rs b/crates/radicle-cli/src/commands/init.rs
index 217a13a7..997bcf65 100644
--- a/crates/radicle-cli/src/commands/init.rs
+++ b/crates/radicle-cli/src/commands/init.rs
@@ -10,7 +10,7 @@ use std::convert::TryFrom;
use std::env;
use std::str::FromStr;
-use anyhow::{anyhow, bail, Context as _};
+use anyhow::{Context as _, anyhow, bail};
use serde_json as json;
use radicle::crypto::ssh;
@@ -21,9 +21,9 @@ use radicle::git::raw::ErrorExt as _;
use radicle::identity::project::ProjectName;
use radicle::identity::{Doc, RepoId, Visibility};
use radicle::node::events::UploadPack;
-use radicle::node::{Event, Handle, NodeId, DEFAULT_SUBSCRIBE_TIMEOUT};
+use radicle::node::{DEFAULT_SUBSCRIBE_TIMEOUT, Event, Handle, NodeId};
use radicle::storage::ReadStorage as _;
-use radicle::{profile, Node};
+use radicle::{Node, profile};
use crate::commands;
use crate::git;
@@ -63,7 +63,9 @@ pub fn init(repo: git::Repository, args: Args, profile: &profile::Profile) -> an
let default_branch = match find_default_branch(&repo) {
Err(err @ DefaultBranchError::Head) => {
term::error(err);
- term::hint("try `git checkout <default branch>` or set `git config set --local init.defaultBranch <default branch>`");
+ term::hint(
+ "try `git checkout <default branch>` or set `git config set --local init.defaultBranch <default branch>`",
+ );
anyhow::bail!("aborting `rad init`")
}
Err(err @ DefaultBranchError::NoHead) => {
@@ -209,7 +211,9 @@ pub fn init(repo: git::Repository, args: Args, profile: &profile::Profile) -> an
term::warning(format!(
"There was an error announcing your repository to the network: {e}"
));
- term::warning("Try again with `rad sync --announce`, or check your logs with `rad node logs`.");
+ term::warning(
+ "Try again with `rad sync --announce`, or check your logs with `rad node logs`.",
+ );
term::blank();
}
term::info!("To push changes, run {}.", term::format::command(push_cmd));
@@ -445,7 +449,8 @@ pub fn announce(
term::blank();
term::info!(
"You are not connected to any peers. Your repository will be announced as soon as \
- your node establishes a connection with the network.");
+ your node establishes a connection with the network."
+ );
term::info!("Check for peer connections with `rad node status`.");
term::blank();
}
diff --git a/crates/radicle-cli/src/commands/init/args.rs b/crates/radicle-cli/src/commands/init/args.rs
index d45e3268..f10fc434 100644
--- a/crates/radicle-cli/src/commands/init/args.rs
+++ b/crates/radicle-cli/src/commands/init/args.rs
@@ -2,7 +2,7 @@ use std::path::PathBuf;
use clap::Parser;
use radicle::{
- identity::{project::ProjectName, Visibility},
+ identity::{Visibility, project::ProjectName},
node::policy::Scope,
prelude::RepoId,
};
@@ -115,8 +115,8 @@ impl clap::builder::TypedValueParser for ScopeParser {
#[cfg(test)]
mod test {
use super::Args;
- use clap::error::ErrorKind;
use clap::Parser;
+ use clap::error::ErrorKind;
#[test]
fn should_parse_rid_non_urn() {
diff --git a/crates/radicle-cli/src/commands/inspect.rs b/crates/radicle-cli/src/commands/inspect.rs
index 70194dc4..9b473c6e 100644
--- a/crates/radicle-cli/src/commands/inspect.rs
+++ b/crates/radicle-cli/src/commands/inspect.rs
@@ -11,15 +11,15 @@ use chrono::prelude::*;
use radicle::identity::RepoId;
use radicle::identity::{DocAt, Identity};
-use radicle::node::policy::SeedingPolicy;
use radicle::node::AliasStore as _;
+use radicle::node::policy::SeedingPolicy;
use radicle::storage::git::{Repository, Storage};
use radicle::storage::refs::{FeatureLevel, RefsAt, SignedRefs};
use radicle::storage::{ReadRepository, ReadStorage};
use crate::terminal as term;
-use crate::terminal::json;
use crate::terminal::Element;
+use crate::terminal::json;
pub use args::Args;
use args::Target;
diff --git a/crates/radicle-cli/src/commands/issue.rs b/crates/radicle-cli/src/commands/issue.rs
index 79f1cedb..2efc4d21 100644
--- a/crates/radicle-cli/src/commands/issue.rs
+++ b/crates/radicle-cli/src/commands/issue.rs
@@ -6,18 +6,18 @@ use anyhow::Context as _;
use radicle::cob::common::Label;
use radicle::cob::issue::{CloseReason, State};
-use radicle::cob::{issue, Title};
+use radicle::cob::{Title, issue};
+use radicle::Profile;
use radicle::crypto;
use radicle::issue::cache::Issues as _;
-use radicle::node::device::Device;
use radicle::node::NodeId;
+use radicle::node::device::Device;
use radicle::prelude::Did;
use radicle::profile;
use radicle::storage;
use radicle::storage::{WriteRepository, WriteStorage};
-use radicle::Profile;
-use radicle::{cob, Node};
+use radicle::{Node, cob};
pub use args::Args;
use args::{Assigned, Command, CommentAction, StateArg};
@@ -25,10 +25,10 @@ use args::{Assigned, Command, CommentAction, StateArg};
use crate::git::Rev;
use crate::node;
use crate::terminal as term;
+use crate::terminal::Element;
use crate::terminal::args::Error;
use crate::terminal::format::Author;
use crate::terminal::issue::Format;
-use crate::terminal::Element;
const ABOUT: &str = "Manage issues";
diff --git a/crates/radicle-cli/src/commands/issue/args.rs b/crates/radicle-cli/src/commands/issue/args.rs
index b49e56a8..e48a974f 100644
--- a/crates/radicle-cli/src/commands/issue/args.rs
+++ b/crates/radicle-cli/src/commands/issue/args.rs
@@ -4,7 +4,7 @@ use clap::{Parser, Subcommand};
use radicle::{
cob::{Label, Reaction, Title},
- identity::{did::DidError, Did, RepoId},
+ identity::{Did, RepoId, did::DidError},
issue::{CloseReason, State},
};
diff --git a/crates/radicle-cli/src/commands/issue/cache.rs b/crates/radicle-cli/src/commands/issue/cache.rs
index 8993dc2e..e2fb606c 100644
--- a/crates/radicle-cli/src/commands/issue/cache.rs
+++ b/crates/radicle-cli/src/commands/issue/cache.rs
@@ -1,9 +1,9 @@
use std::ops::ControlFlow;
+use radicle::Profile;
use radicle::issue::IssueId;
-use radicle::storage::git::Repository;
use radicle::storage::ReadStorage as _;
-use radicle::Profile;
+use radicle::storage::git::Repository;
use crate::terminal as term;
diff --git a/crates/radicle-cli/src/commands/issue/comment.rs b/crates/radicle-cli/src/commands/issue/comment.rs
index 665f0462..d072716f 100644
--- a/crates/radicle-cli/src/commands/issue/comment.rs
+++ b/crates/radicle-cli/src/commands/issue/comment.rs
@@ -1,12 +1,12 @@
+use radicle::Profile;
use radicle::cob::thread;
use radicle::storage::WriteRepository;
-use radicle::Profile;
use radicle::{cob, git, issue, storage};
use crate::git::Rev;
use crate::terminal as term;
-use crate::terminal::patch::Message;
use crate::terminal::Element as _;
+use crate::terminal::patch::Message;
pub(super) fn comment(
profile: &Profile,
diff --git a/crates/radicle-cli/src/commands/node.rs b/crates/radicle-cli/src/commands/node.rs
index 4e227bf4..f7f2f722 100644
--- a/crates/radicle-cli/src/commands/node.rs
+++ b/crates/radicle-cli/src/commands/node.rs
@@ -7,11 +7,11 @@ pub mod routing;
use std::{process, time};
+use radicle::node::Handle as _;
+use radicle::node::Node;
use radicle::node::address::Store as AddressStore;
use radicle::node::config::ConnectAddress;
use radicle::node::routing::Store;
-use radicle::node::Handle as _;
-use radicle::node::Node;
use crate::commands::node::args::Only;
use crate::terminal as term;
diff --git a/crates/radicle-cli/src/commands/node/control.rs b/crates/radicle-cli/src/commands/node/control.rs
index cb1473e8..c2805293 100644
--- a/crates/radicle-cli/src/commands/node/control.rs
+++ b/crates/radicle-cli/src/commands/node/control.rs
@@ -4,14 +4,14 @@ use std::fs::File;
use std::io::{BufRead, BufReader, Read, Seek, SeekFrom, Write};
use std::{path::Path, process, thread, time};
-use anyhow::{anyhow, Context};
+use anyhow::{Context, anyhow};
use localtime::LocalTime;
+use radicle::Node;
use radicle::node;
use radicle::node::{Address, ConnectResult, Handle as _, NodeId};
use radicle::profile::env::RAD_PASSPHRASE;
-use radicle::Node;
-use radicle::{profile, Profile};
+use radicle::{Profile, profile};
use crate::commands::node::logs::{LogRotatorFileSystem, Rotated};
use crate::terminal as term;
diff --git a/crates/radicle-cli/src/commands/patch.rs b/crates/radicle-cli/src/commands/patch.rs
index c7666712..c4a17907 100644
--- a/crates/radicle-cli/src/commands/patch.rs
+++ b/crates/radicle-cli/src/commands/patch.rs
@@ -22,10 +22,10 @@ use std::collections::BTreeSet;
use anyhow::anyhow;
use radicle::cob::patch::PatchId;
-use radicle::cob::{patch, Label};
+use radicle::cob::{Label, patch};
use radicle::patch::cache::Patches as _;
use radicle::storage::git::transport;
-use radicle::{prelude::*, Node};
+use radicle::{Node, prelude::*};
use crate::git::Rev;
use crate::node;
diff --git a/crates/radicle-cli/src/commands/patch/cache.rs b/crates/radicle-cli/src/commands/patch/cache.rs
index b04f5a00..f04e1c45 100644
--- a/crates/radicle-cli/src/commands/patch/cache.rs
+++ b/crates/radicle-cli/src/commands/patch/cache.rs
@@ -1,9 +1,9 @@
use std::ops::ControlFlow;
+use radicle::Profile;
use radicle::patch::PatchId;
-use radicle::storage::git::Repository;
use radicle::storage::ReadStorage as _;
-use radicle::Profile;
+use radicle::storage::git::Repository;
use crate::terminal as term;
diff --git a/crates/radicle-cli/src/commands/patch/checkout.rs b/crates/radicle-cli/src/commands/patch/checkout.rs
index ef1b400a..f49a4323 100644
--- a/crates/radicle-cli/src/commands/patch/checkout.rs
+++ b/crates/radicle-cli/src/commands/patch/checkout.rs
@@ -5,10 +5,10 @@ use radicle::cob::patch::RevisionId;
use radicle::git::fmt::Qualified;
use radicle::git::fmt::RefString;
use radicle::git::raw::ErrorExt as _;
-use radicle::patch::cache::Patches as _;
use radicle::patch::PatchId;
+use radicle::patch::cache::Patches as _;
use radicle::storage::git::Repository;
-use radicle::{git, rad, Profile};
+use radicle::{Profile, git, rad};
use crate::terminal as term;
diff --git a/crates/radicle-cli/src/commands/patch/comment/edit.rs b/crates/radicle-cli/src/commands/patch/comment/edit.rs
index eda591d0..b8d42846 100644
--- a/crates/radicle-cli/src/commands/patch/comment/edit.rs
+++ b/crates/radicle-cli/src/commands/patch/comment/edit.rs
@@ -1,12 +1,12 @@
use anyhow::anyhow;
+use radicle::Profile;
use radicle::cob;
use radicle::cob::patch;
use radicle::cob::thread;
-use radicle::patch::cache::Patches as _;
use radicle::patch::ByRevision;
+use radicle::patch::cache::Patches as _;
use radicle::storage::git::Repository;
-use radicle::Profile;
use crate::git;
use crate::terminal as term;
diff --git a/crates/radicle-cli/src/commands/patch/comment/react.rs b/crates/radicle-cli/src/commands/patch/comment/react.rs
index 586fa49c..3f5f667b 100644
--- a/crates/radicle-cli/src/commands/patch/comment/react.rs
+++ b/crates/radicle-cli/src/commands/patch/comment/react.rs
@@ -1,13 +1,13 @@
use anyhow::anyhow;
+use radicle::Profile;
use radicle::cob;
+use radicle::cob::Reaction;
use radicle::cob::patch;
use radicle::cob::thread;
-use radicle::cob::Reaction;
-use radicle::patch::cache::Patches as _;
use radicle::patch::ByRevision;
+use radicle::patch::cache::Patches as _;
use radicle::storage::git::Repository;
-use radicle::Profile;
use crate::git;
use crate::terminal as term;
diff --git a/crates/radicle-cli/src/commands/patch/comment/redact.rs b/crates/radicle-cli/src/commands/patch/comment/redact.rs
index b8ada9b4..d6de9c3c 100644
--- a/crates/radicle-cli/src/commands/patch/comment/redact.rs
+++ b/crates/radicle-cli/src/commands/patch/comment/redact.rs
@@ -1,12 +1,12 @@
use anyhow::anyhow;
+use radicle::Profile;
use radicle::cob;
use radicle::cob::patch;
use radicle::cob::thread;
-use radicle::patch::cache::Patches as _;
use radicle::patch::ByRevision;
+use radicle::patch::cache::Patches as _;
use radicle::storage::git::Repository;
-use radicle::Profile;
use crate::git;
use crate::terminal as term;
diff --git a/crates/radicle-cli/src/commands/patch/edit.rs b/crates/radicle-cli/src/commands/patch/edit.rs
index d7e4ccff..4e0c7b58 100644
--- a/crates/radicle-cli/src/commands/patch/edit.rs
+++ b/crates/radicle-cli/src/commands/patch/edit.rs
@@ -1,8 +1,8 @@
use super::*;
use radicle::cob;
-use radicle::cob::patch;
use radicle::cob::Title;
+use radicle::cob::patch;
use radicle::crypto;
use radicle::node::device::Device;
use radicle::prelude::*;
diff --git a/crates/radicle-cli/src/commands/patch/list.rs b/crates/radicle-cli/src/commands/patch/list.rs
index ff9f2d45..e3caca44 100644
--- a/crates/radicle-cli/src/commands/patch/list.rs
+++ b/crates/radicle-cli/src/commands/patch/list.rs
@@ -7,9 +7,9 @@ use radicle::prelude::*;
use radicle::profile::Profile;
use radicle::storage::git::Repository;
+use term::Element as _;
use term::format::Author;
use term::table::{Table, TableOptions};
-use term::Element as _;
use crate::terminal as term;
use crate::terminal::patch as common;
diff --git a/crates/radicle-cli/src/commands/patch/react.rs b/crates/radicle-cli/src/commands/patch/react.rs
index 132659b5..400ea7bc 100644
--- a/crates/radicle-cli/src/commands/patch/react.rs
+++ b/crates/radicle-cli/src/commands/patch/react.rs
@@ -1,11 +1,11 @@
use anyhow::anyhow;
+use radicle::Profile;
use radicle::cob;
-use radicle::cob::{patch, Reaction};
-use radicle::patch::cache::Patches as _;
+use radicle::cob::{Reaction, patch};
use radicle::patch::ByRevision;
+use radicle::patch::cache::Patches as _;
use radicle::storage::git::Repository;
-use radicle::Profile;
use crate::git;
use crate::terminal as term;
diff --git a/crates/radicle-cli/src/commands/patch/resolve.rs b/crates/radicle-cli/src/commands/patch/resolve.rs
index e7b87f9a..08f34167 100644
--- a/crates/radicle-cli/src/commands/patch/resolve.rs
+++ b/crates/radicle-cli/src/commands/patch/resolve.rs
@@ -1,9 +1,9 @@
use anyhow::anyhow;
+use radicle::Profile;
use radicle::cob::thread::CommentId;
use radicle::patch::{self, PatchId};
-use radicle::patch::{cache::Patches as _, ReviewId};
+use radicle::patch::{ReviewId, cache::Patches as _};
use radicle::storage::git::Repository;
-use radicle::Profile;
use crate::terminal as term;
diff --git a/crates/radicle-cli/src/commands/patch/review.rs b/crates/radicle-cli/src/commands/patch/review.rs
index 5e3a398a..07e594bd 100644
--- a/crates/radicle-cli/src/commands/patch/review.rs
+++ b/crates/radicle-cli/src/commands/patch/review.rs
@@ -1,6 +1,6 @@
mod builder;
-use anyhow::{anyhow, Context};
+use anyhow::{Context, anyhow};
use radicle::cob::patch::{PatchId, RevisionId, Verdict};
use radicle::git;
diff --git a/crates/radicle-cli/src/commands/patch/review/builder.rs b/crates/radicle-cli/src/commands/patch/review/builder.rs
index ba5c6b27..1962326c 100644
--- a/crates/radicle-cli/src/commands/patch/review/builder.rs
+++ b/crates/radicle-cli/src/commands/patch/review/builder.rs
@@ -26,7 +26,7 @@ use radicle::git;
use radicle::git::Oid;
use radicle::node::device::Device;
use radicle::prelude::*;
-use radicle::storage::git::{cob::DraftStore, Repository};
+use radicle::storage::git::{Repository, cob::DraftStore};
use radicle_surf::diff::*;
use radicle_term::{Element, VStack};
diff --git a/crates/radicle-cli/src/commands/publish.rs b/crates/radicle-cli/src/commands/publish.rs
index aca4b5d8..0cf3f3cf 100644
--- a/crates/radicle-cli/src/commands/publish.rs
+++ b/crates/radicle-cli/src/commands/publish.rs
@@ -1,6 +1,6 @@
mod args;
-use anyhow::{anyhow, Context as _};
+use anyhow::{Context as _, anyhow};
use radicle::cob;
use radicle::identity::{Identity, Visibility};
diff --git a/crates/radicle-cli/src/commands/publish/args.rs b/crates/radicle-cli/src/commands/publish/args.rs
index ee0385af..bebdbc0e 100644
--- a/crates/radicle-cli/src/commands/publish/args.rs
+++ b/crates/radicle-cli/src/commands/publish/args.rs
@@ -27,8 +27,8 @@ pub struct Args {
#[cfg(test)]
mod test {
use super::Args;
- use clap::error::ErrorKind;
use clap::Parser;
+ use clap::error::ErrorKind;
#[test]
fn should_parse_rid_non_urn() {
diff --git a/crates/radicle-cli/src/commands/remote/add.rs b/crates/radicle-cli/src/commands/remote/add.rs
index 7634eff3..f130e669 100644
--- a/crates/radicle-cli/src/commands/remote/add.rs
+++ b/crates/radicle-cli/src/commands/remote/add.rs
@@ -1,9 +1,9 @@
use std::str::FromStr;
+use radicle::Profile;
use radicle::git;
use radicle::git::fmt::RefString;
use radicle::prelude::*;
-use radicle::Profile;
use radicle_crypto::PublicKey;
use crate::commands::checkout;
diff --git a/crates/radicle-cli/src/commands/remote/list.rs b/crates/radicle-cli/src/commands/remote/list.rs
index 7356cdd1..1a4e997f 100644
--- a/crates/radicle-cli/src/commands/remote/list.rs
+++ b/crates/radicle-cli/src/commands/remote/list.rs
@@ -1,10 +1,10 @@
use std::collections::HashSet;
+use radicle::Profile;
use radicle::git::Url;
use radicle::identity::{Did, RepoId};
use radicle::node::{Alias, AliasStore as _, NodeId};
use radicle::storage::ReadStorage as _;
-use radicle::Profile;
use radicle_term::{Element, Table};
use crate::git;
diff --git a/crates/radicle-cli/src/commands/seed.rs b/crates/radicle-cli/src/commands/seed.rs
index 05294b13..fa2799fb 100644
--- a/crates/radicle-cli/src/commands/seed.rs
+++ b/crates/radicle-cli/src/commands/seed.rs
@@ -1,9 +1,9 @@
mod args;
+use radicle::node::Handle;
use radicle::node::policy;
use radicle::node::policy::{Policy, Scope};
-use radicle::node::Handle;
-use radicle::{prelude::*, Node};
+use radicle::{Node, prelude::*};
use radicle_term::Element as _;
use crate::commands::sync;
diff --git a/crates/radicle-cli/src/commands/sync.rs b/crates/radicle-cli/src/commands/sync.rs
index 13661987..b0806fcd 100644
--- a/crates/radicle-cli/src/commands/sync.rs
+++ b/crates/radicle-cli/src/commands/sync.rs
@@ -5,13 +5,13 @@ use std::collections::BTreeMap;
use std::collections::HashSet;
use std::time;
-use anyhow::{anyhow, Context as _};
+use anyhow::{Context as _, anyhow};
use radicle::node;
+use radicle::node::SyncedAt;
use radicle::node::address::Store;
use radicle::node::sync;
use radicle::node::sync::fetch::SuccessfulOutcome;
-use radicle::node::SyncedAt;
use radicle::node::{AliasStore, Handle as _, Node, Seed, SyncStatus};
use radicle::prelude::{NodeId, Profile, RepoId};
use radicle::storage::ReadRepository;
diff --git a/crates/radicle-cli/src/commands/sync/args.rs b/crates/radicle-cli/src/commands/sync/args.rs
index 0d0ca19d..28f7e271 100644
--- a/crates/radicle-cli/src/commands/sync/args.rs
+++ b/crates/radicle-cli/src/commands/sync/args.rs
@@ -4,14 +4,14 @@ use std::time;
use clap::{Parser, Subcommand, ValueEnum};
use radicle::{
- node::{sync, NodeId},
+ node::{NodeId, sync},
prelude::RepoId,
storage::refs,
};
use crate::common_args::{
- SignedReferencesFeatureLevel, SignedReferencesFeatureLevelParser,
- ABOUT_FETCH_SIGNED_REFERENCES_FEATURE_LEVEL_MINIMUM,
+ ABOUT_FETCH_SIGNED_REFERENCES_FEATURE_LEVEL_MINIMUM, SignedReferencesFeatureLevel,
+ SignedReferencesFeatureLevelParser,
};
use crate::node::SyncSettings;
diff --git a/crates/radicle-cli/src/commands/unseed.rs b/crates/radicle-cli/src/commands/unseed.rs
index 9bac3781..df9fdfd4 100644
--- a/crates/radicle-cli/src/commands/unseed.rs
+++ b/crates/radicle-cli/src/commands/unseed.rs
@@ -1,6 +1,6 @@
pub mod args;
-use radicle::{prelude::*, Node};
+use radicle::{Node, prelude::*};
use crate::terminal as term;
diff --git a/crates/radicle-cli/src/commands/watch.rs b/crates/radicle-cli/src/commands/watch.rs
index bd72a33f..d1e8b021 100644
--- a/crates/radicle-cli/src/commands/watch.rs
+++ b/crates/radicle-cli/src/commands/watch.rs
@@ -2,7 +2,7 @@ mod args;
use std::{thread, time};
-use anyhow::{anyhow, Context as _};
+use anyhow::{Context as _, anyhow};
use radicle::git;
use radicle::git::raw::ErrorExt as _;
diff --git a/crates/radicle-cli/src/git.rs b/crates/radicle-cli/src/git.rs
index 7d688843..2144a03d 100644
--- a/crates/radicle-cli/src/git.rs
+++ b/crates/radicle-cli/src/git.rs
@@ -14,21 +14,21 @@ use std::path::{Path, PathBuf};
use std::process::Command;
use std::str::FromStr;
-use anyhow::anyhow;
use anyhow::Context as _;
+use anyhow::anyhow;
use thiserror::Error;
use radicle::crypto::ssh;
use radicle::git;
-use radicle::git::{Version, VERSION_REQUIRED};
+use radicle::git::{VERSION_REQUIRED, Version};
use radicle::prelude::{NodeId, RepoId};
use radicle::storage::git::transport;
pub use radicle::git::Oid;
pub use radicle::git::raw::{
- build::CheckoutBuilder, AnnotatedCommit, Commit, Direction, ErrorCode, ErrorExt as _,
- MergeAnalysis, MergeOptions, Reference, Repository, Signature,
+ AnnotatedCommit, Commit, Direction, ErrorCode, ErrorExt as _, MergeAnalysis, MergeOptions,
+ Reference, Repository, Signature, build::CheckoutBuilder,
};
pub const CONFIG_COMMIT_GPG_SIGN: &str = "commit.gpgsign";
diff --git a/crates/radicle-cli/src/git/ddiff.rs b/crates/radicle-cli/src/git/ddiff.rs
index 7157beee..0938adb3 100644
--- a/crates/radicle-cli/src/git/ddiff.rs
+++ b/crates/radicle-cli/src/git/ddiff.rs
@@ -305,7 +305,7 @@ impl unified_diff::Decode for DiffModification {
(v1, v2) => {
return Err(unified_diff::Error::syntax(format!(
"indicator character expected, but got '{v1}{v2}'"
- )))
+ )));
}
};
diff --git a/crates/radicle-cli/src/git/pretty_diff.rs b/crates/radicle-cli/src/git/pretty_diff.rs
index dc306b93..d7eaae92 100644
--- a/crates/radicle-cli/src/git/pretty_diff.rs
+++ b/crates/radicle-cli/src/git/pretty_diff.rs
@@ -7,8 +7,8 @@ use radicle_surf::diff;
use radicle_surf::diff::{Added, Copied, Deleted, FileStats, Hunks, Modified, Moved};
use radicle_surf::diff::{Diff, DiffContent, FileDiff, Hunk, Modification};
use radicle_term as term;
-use term::cell::Cell;
use term::VStack;
+use term::cell::Cell;
use crate::git::unified_diff::FileHeader;
use crate::terminal::highlight::{Highlighter, Theme};
diff --git a/crates/radicle-cli/src/git/unified_diff.rs b/crates/radicle-cli/src/git/unified_diff.rs
index 3843d0eb..e4686841 100644
--- a/crates/radicle-cli/src/git/unified_diff.rs
+++ b/crates/radicle-cli/src/git/unified_diff.rs
@@ -533,7 +533,7 @@ impl Decode for Modification {
Some(c) => {
return Err(Error::syntax(format!(
"indicator character expected, but got '{c}'",
- )))
+ )));
}
None => return Err(Error::UnexpectedEof),
};
diff --git a/crates/radicle-cli/src/main.rs b/crates/radicle-cli/src/main.rs
index 5ebfff12..44213c67 100644
--- a/crates/radicle-cli/src/main.rs
+++ b/crates/radicle-cli/src/main.rs
@@ -5,8 +5,8 @@ use std::io::Write;
use std::{io::ErrorKind, process};
use anyhow::anyhow;
-use clap::builder::styling::AnsiColor;
use clap::builder::Styles;
+use clap::builder::styling::AnsiColor;
use clap::{CommandFactory as _, Parser, Subcommand};
use radicle::version::Version;
diff --git a/crates/radicle-cli/src/node.rs b/crates/radicle-cli/src/node.rs
index ffef201f..5165c523 100644
--- a/crates/radicle-cli/src/node.rs
+++ b/crates/radicle-cli/src/node.rs
@@ -4,7 +4,7 @@ use std::io::Write;
use radicle::node::sync;
use radicle::node::{Handle as _, NodeId};
-use radicle::storage::{refs, ReadRepository, RepositoryError};
+use radicle::storage::{ReadRepository, RepositoryError, refs};
use radicle::{Node, Profile};
use crate::terminal as term;
@@ -136,7 +136,9 @@ pub fn announce<R: ReadRepository>(
match announce_(repo, settings, reporting, node, profile) {
Ok(result) => Ok(result),
Err(e) if e.is_connection_err() => {
- term::hint("Node is stopped. To announce changes to the network, start it with `rad node start`.");
+ term::hint(
+ "Node is stopped. To announce changes to the network, start it with `rad node start`.",
+ );
Ok(None)
}
Err(e) => Err(e),
diff --git a/crates/radicle-cli/src/terminal/args.rs b/crates/radicle-cli/src/terminal/args.rs
index 71553104..d1e6e5ab 100644
--- a/crates/radicle-cli/src/terminal/args.rs
+++ b/crates/radicle-cli/src/terminal/args.rs
@@ -32,7 +32,9 @@ pub(crate) enum BlockTarget {
}
#[derive(Debug, Error)]
-#[error("invalid repository or node specified (RID parsing failed with: '{repo}', NID parsing failed with: '{node}'))")]
+#[error(
+ "invalid repository or node specified (RID parsing failed with: '{repo}', NID parsing failed with: '{node}'))"
+)]
pub(crate) struct BlockTargetParseError {
repo: radicle::identity::IdError,
node: radicle::crypto::PublicKeyError,
@@ -62,7 +64,9 @@ impl std::fmt::Display for BlockTarget {
}
#[derive(Debug, thiserror::Error)]
-#[error("invalid Node ID specified (Node ID parsing failed with: '{nid}', DID parsing failed with: '{did}'))")]
+#[error(
+ "invalid Node ID specified (Node ID parsing failed with: '{nid}', DID parsing failed with: '{did}'))"
+)]
pub(crate) struct NodeIdParseError {
did: radicle::identity::did::DidError,
nid: radicle::crypto::PublicKeyError,
diff --git a/crates/radicle-cli/src/terminal/cob.rs b/crates/radicle-cli/src/terminal/cob.rs
index f2f2d250..81c4b20a 100644
--- a/crates/radicle-cli/src/terminal/cob.rs
+++ b/crates/radicle-cli/src/terminal/cob.rs
@@ -1,4 +1,5 @@
use radicle::{
+ Profile,
cob::{
self,
cache::{MigrateCallback, MigrateProgress},
@@ -6,7 +7,6 @@ use radicle::{
prelude::NodeId,
profile,
storage::ReadRepository,
- Profile,
};
use radicle_term as term;
diff --git a/crates/radicle-cli/src/terminal/comment.rs b/crates/radicle-cli/src/terminal/comment.rs
index 8b9c88cb..b5d0dd1c 100644
--- a/crates/radicle-cli/src/terminal/comment.rs
+++ b/crates/radicle-cli/src/terminal/comment.rs
@@ -1,5 +1,5 @@
-use radicle::cob::thread::{Comment, CommentId};
use radicle::Profile;
+use radicle::cob::thread::{Comment, CommentId};
use crate::terminal as term;
use crate::terminal::format::Author;
diff --git a/crates/radicle-cli/src/terminal/format.rs b/crates/radicle-cli/src/terminal/format.rs
index f5b702f3..71b5e40f 100644
--- a/crates/radicle-cli/src/terminal/format.rs
+++ b/crates/radicle-cli/src/terminal/format.rs
@@ -3,14 +3,14 @@ use std::fmt;
use localtime::LocalTime;
pub use radicle_term::format::*;
-pub use radicle_term::{style, Paint};
+pub use radicle_term::{Paint, style};
use radicle::cob::ObjectId;
use radicle::identity::Visibility;
use radicle::node::policy::Policy;
use radicle::node::{Alias, AliasStore, NodeId};
use radicle::prelude::Did;
-use radicle::profile::{env, Profile};
+use radicle::profile::{Profile, env};
use radicle::storage::RefUpdate;
use radicle_term::element::Line;
diff --git a/crates/radicle-cli/src/terminal/io.rs b/crates/radicle-cli/src/terminal/io.rs
index e37d8b3d..3ba25c73 100644
--- a/crates/radicle-cli/src/terminal/io.rs
+++ b/crates/radicle-cli/src/terminal/io.rs
@@ -1,12 +1,12 @@
use anyhow::anyhow;
+use radicle::cob::Reaction;
use radicle::cob::issue::Issue;
use radicle::cob::thread::{Comment, CommentId};
-use radicle::cob::Reaction;
-use radicle::crypto::ssh::keystore::MemorySigner;
use radicle::crypto::ssh::Keystore;
+use radicle::crypto::ssh::keystore::MemorySigner;
use radicle::node::device::{BoxedDevice, Device};
-use radicle::profile::env::RAD_PASSPHRASE;
use radicle::profile::Profile;
+use radicle::profile::env::RAD_PASSPHRASE;
pub use radicle_term::io::*;
pub use radicle_term::spinner;
diff --git a/crates/radicle-cli/src/terminal/issue.rs b/crates/radicle-cli/src/terminal/issue.rs
index d8dab198..94410f11 100644
--- a/crates/radicle-cli/src/terminal/issue.rs
+++ b/crates/radicle-cli/src/terminal/issue.rs
@@ -3,14 +3,14 @@ use std::io;
use radicle_term::table::TableOptions;
use radicle_term::{Table, VStack};
+use radicle::Profile;
use radicle::cob;
use radicle::cob::issue;
use radicle::cob::issue::CloseReason;
-use radicle::Profile;
use crate::terminal as term;
-use crate::terminal::format::Author;
use crate::terminal::Element;
+use crate::terminal::format::Author;
pub const OPEN_MSG: &str = r#"
<!--
diff --git a/crates/radicle-cli/src/terminal/patch.rs b/crates/radicle-cli/src/terminal/patch.rs
index 5d5599ad..8472accc 100644
--- a/crates/radicle-cli/src/terminal/patch.rs
+++ b/crates/radicle-cli/src/terminal/patch.rs
@@ -9,13 +9,13 @@ use std::io::IsTerminal as _;
use thiserror::Error;
use radicle::cob;
-use radicle::cob::patch;
use radicle::cob::Title;
+use radicle::cob::patch;
use radicle::git;
use radicle::patch::{Patch, PatchId};
use radicle::prelude::Profile;
-use radicle::storage::git::Repository;
use radicle::storage::WriteRepository as _;
+use radicle::storage::git::Repository;
use crate::terminal as term;
use crate::terminal::Element;
diff --git a/crates/radicle-cli/src/warning.rs b/crates/radicle-cli/src/warning.rs
index d1804421..e164ae0e 100644
--- a/crates/radicle-cli/src/warning.rs
+++ b/crates/radicle-cli/src/warning.rs
@@ -1,8 +1,8 @@
use std::collections::HashMap;
use std::sync::LazyLock;
-use radicle::node::config::ConnectAddress;
use radicle::node::Address;
+use radicle::node::config::ConnectAddress;
use radicle::profile::Config;
static NODES_RENAMED: LazyLock<HashMap<Address, Address>> = LazyLock::new(|| {
diff --git a/crates/radicle-cli/tests/commands/clone.rs b/crates/radicle-cli/tests/commands/clone.rs
index 59932b82..6938ebcc 100644
--- a/crates/radicle-cli/tests/commands/clone.rs
+++ b/crates/radicle-cli/tests/commands/clone.rs
@@ -1,10 +1,10 @@
use crate::test;
use crate::util::environment::Environment;
use radicle::node;
+use radicle::node::UserAgent;
use radicle::node::address::Store as _;
use radicle::node::policy::Scope;
use radicle::node::routing::Store as _;
-use radicle::node::UserAgent;
use radicle::node::{Alias, Handle as _};
use radicle::prelude::{NodeId, RepoId};
use radicle::storage::ReadStorage as _;
diff --git a/crates/radicle-cli/tests/commands/id.rs b/crates/radicle-cli/tests/commands/id.rs
index 672613c7..24f0e8c2 100644
--- a/crates/radicle-cli/tests/commands/id.rs
+++ b/crates/radicle-cli/tests/commands/id.rs
@@ -1,9 +1,9 @@
use crate::test;
use crate::util::environment::Environment;
use crate::util::formula::formula;
-use radicle::node::policy::Scope;
-use radicle::node::Event;
use radicle::node::DEFAULT_TIMEOUT;
+use radicle::node::Event;
+use radicle::node::policy::Scope;
use radicle::node::{Alias, Handle as _};
use radicle::prelude::RepoId;
use radicle::storage::ReadStorage as _;
diff --git a/crates/radicle-cli/tests/commands/node.rs b/crates/radicle-cli/tests/commands/node.rs
index 9cbf86fd..9b80ca09 100644
--- a/crates/radicle-cli/tests/commands/node.rs
+++ b/crates/radicle-cli/tests/commands/node.rs
@@ -1,9 +1,9 @@
use crate::test;
use crate::util::environment::Environment;
-use radicle::node::address::Store as _;
-use radicle::node::config::DefaultSeedingPolicy;
use radicle::node::Address;
use radicle::node::UserAgent;
+use radicle::node::address::Store as _;
+use radicle::node::config::DefaultSeedingPolicy;
use radicle::node::{Alias, Handle as _};
use radicle::test::fixtures;
use radicle_localtime::LocalTime;
diff --git a/crates/radicle-cli/tests/commands/patch.rs b/crates/radicle-cli/tests/commands/patch.rs
index 4f7fb7f9..341eb0ac 100644
--- a/crates/radicle-cli/tests/commands/patch.rs
+++ b/crates/radicle-cli/tests/commands/patch.rs
@@ -1,8 +1,8 @@
use crate::test;
use crate::util::environment::Environment;
use crate::util::formula::formula;
-use radicle::node::policy::Scope;
use radicle::node::Handle as _;
+use radicle::node::policy::Scope;
use radicle::prelude::RepoId;
use radicle::test::fixtures;
use std::str::FromStr;
diff --git a/crates/radicle-cli/tests/commands/policy.rs b/crates/radicle-cli/tests/commands/policy.rs
index 8ca61ef7..5fbd2a76 100644
--- a/crates/radicle-cli/tests/commands/policy.rs
+++ b/crates/radicle-cli/tests/commands/policy.rs
@@ -1,8 +1,8 @@
use crate::test;
use crate::util::environment::Environment;
use radicle::node;
-use radicle::node::config::DefaultSeedingPolicy;
use radicle::node::Alias;
+use radicle::node::config::DefaultSeedingPolicy;
#[test]
fn rad_seed_and_follow() {
diff --git a/crates/radicle-cli/tests/commands/sync.rs b/crates/radicle-cli/tests/commands/sync.rs
index 48e6379d..f39d292f 100644
--- a/crates/radicle-cli/tests/commands/sync.rs
+++ b/crates/radicle-cli/tests/commands/sync.rs
@@ -1,8 +1,8 @@
use std::str::FromStr as _;
+use radicle::node::Handle as _;
use radicle::node::config::DefaultSeedingPolicy;
use radicle::node::policy::Scope;
-use radicle::node::Handle as _;
use radicle::prelude::RepoId;
use radicle::storage::{ReadStorage as _, RemoteRepository as _};
diff --git a/crates/radicle-cli/tests/commands/utility.rs b/crates/radicle-cli/tests/commands/utility.rs
index 65935c1e..40cebaa5 100644
--- a/crates/radicle-cli/tests/commands/utility.rs
+++ b/crates/radicle-cli/tests/commands/utility.rs
@@ -1,7 +1,7 @@
use std::str::FromStr as _;
-use radicle::node::policy::Scope;
use radicle::node::DEFAULT_TIMEOUT;
+use radicle::node::policy::Scope;
use radicle::node::{Alias, Handle as _};
use radicle::prelude::RepoId;
use radicle::profile;
@@ -36,11 +36,13 @@ fn rad_config() {
let mut environment = Environment::new();
let alias = Alias::new("alice");
let profile = environment.profile_with(profile::Config {
- preferred_seeds: vec![radicle::node::config::seeds::RADICLE_NODE_BOOTSTRAP_IRIS
- .clone()
- .first()
- .unwrap()
- .clone()],
+ preferred_seeds: vec![
+ radicle::node::config::seeds::RADICLE_NODE_BOOTSTRAP_IRIS
+ .clone()
+ .first()
+ .unwrap()
+ .clone(),
+ ],
..profile::Config::new(alias)
});
let working = tempfile::tempdir().unwrap();
diff --git a/crates/radicle-cli/tests/util/environment.rs b/crates/radicle-cli/tests/util/environment.rs
index 29417132..e01a89a2 100644
--- a/crates/radicle-cli/tests/util/environment.rs
+++ b/crates/radicle-cli/tests/util/environment.rs
@@ -2,7 +2,7 @@ use std::path::PathBuf;
use std::str::FromStr;
use radicle::cob::cache::COBS_DB_FILE;
-use radicle::crypto::ssh::{keystore::MemorySigner, Keystore};
+use radicle::crypto::ssh::{Keystore, keystore::MemorySigner};
use radicle::crypto::{KeyPair, Seed};
use radicle::git;
use radicle::node::policy::store as policy;
@@ -47,10 +47,9 @@ pub(crate) mod config {
},
..Limits::default()
},
- external_addresses: vec![node::Address::from_str(&format!(
- "{alias}.radicle.example:8776"
- ))
- .unwrap()],
+ external_addresses: vec![
+ node::Address::from_str(&format!("{alias}.radicle.example:8776")).unwrap(),
+ ],
..node(alias)
}
}
diff --git a/crates/radicle-cob/src/backend/git/change.rs b/crates/radicle-cob/src/backend/git/change.rs
index 9d36dfe7..9b13f2f0 100644
--- a/crates/radicle-cob/src/backend/git/change.rs
+++ b/crates/radicle-cob/src/backend/git/change.rs
@@ -15,10 +15,10 @@ use crate::change::store::Version;
use crate::signatures;
use crate::trailers::CommitTrailer;
use crate::{
- change,
- change::{store, Contents, Entry, Timestamp},
+ Embed, change,
+ change::{Contents, Entry, Timestamp, store},
signatures::{ExtendedSignature, Signatures},
- trailers, Embed,
+ trailers,
};
use super::commit::Commit;
diff --git a/crates/radicle-cob/src/backend/git/commit.rs b/crates/radicle-cob/src/backend/git/commit.rs
index 462b455b..1d7f7f99 100644
--- a/crates/radicle-cob/src/backend/git/commit.rs
+++ b/crates/radicle-cob/src/backend/git/commit.rs
@@ -6,9 +6,9 @@ use std::str::{self, FromStr};
use git2::{ObjectType, Oid};
use metadata::author::Author;
+use metadata::commit::CommitData;
use metadata::commit::headers::Headers;
use metadata::commit::trailers::OwnedTrailer;
-use metadata::commit::CommitData;
use trailers::Trailers;
diff --git a/crates/radicle-cob/src/change/store.rs b/crates/radicle-cob/src/change/store.rs
index feffd98b..b4e9485c 100644
--- a/crates/radicle-cob/src/change/store.rs
+++ b/crates/radicle-cob/src/change/store.rs
@@ -7,7 +7,7 @@ use oid::Oid;
use serde::{Deserialize, Serialize};
use crate::object::collaboration::error::{Create, Update};
-use crate::{signatures, TypeName};
+use crate::{TypeName, signatures};
/// Change entry storage.
pub trait Storage {
diff --git a/crates/radicle-cob/src/change_graph.rs b/crates/radicle-cob/src/change_graph.rs
index 488521a3..6dbfbdf6 100644
--- a/crates/radicle-cob/src/change_graph.rs
+++ b/crates/radicle-cob/src/change_graph.rs
@@ -7,8 +7,8 @@ use dag::Dag;
use oid::Oid;
use crate::{
- change, object, object::collaboration::Evaluate, signatures::ExtendedSignature,
- CollaborativeObject, Entry, EntryId, History, ObjectId, TypeName,
+ CollaborativeObject, Entry, EntryId, History, ObjectId, TypeName, change, object,
+ object::collaboration::Evaluate, signatures::ExtendedSignature,
};
#[derive(Debug, thiserror::Error)]
diff --git a/crates/radicle-cob/src/lib.rs b/crates/radicle-cob/src/lib.rs
index d49135b7..e400f9ba 100644
--- a/crates/radicle-cob/src/lib.rs
+++ b/crates/radicle-cob/src/lib.rs
@@ -77,8 +77,8 @@ mod change_graph;
mod trailers;
pub mod change;
-pub use change::store::{Contents, Embed, EntryId, Manifest, Version};
pub use change::Entry;
+pub use change::store::{Contents, Embed, EntryId, Manifest, Version};
pub mod history;
pub use history::History;
@@ -91,8 +91,8 @@ pub use type_name::TypeName;
pub mod object;
pub use object::{
- create, get, info, list, remove, update, CollaborativeObject, Create, Evaluate, ObjectId,
- Update, Updated,
+ CollaborativeObject, Create, Evaluate, ObjectId, Update, Updated, create, get, info, list,
+ remove, update,
};
#[cfg(test)]
diff --git a/crates/radicle-cob/src/object.rs b/crates/radicle-cob/src/object.rs
index dfb50a0c..9b2dbaad 100644
--- a/crates/radicle-cob/src/object.rs
+++ b/crates/radicle-cob/src/object.rs
@@ -9,8 +9,8 @@ use thiserror::Error;
pub mod collaboration;
pub use collaboration::{
- create, get, info, list, parse_refstr, remove, update, CollaborativeObject, Create, Evaluate,
- Update, Updated,
+ CollaborativeObject, Create, Evaluate, Update, Updated, create, get, info, list, parse_refstr,
+ remove, update,
};
pub mod storage;
diff --git a/crates/radicle-cob/src/object/collaboration.rs b/crates/radicle-cob/src/object/collaboration.rs
index 11cc2dbc..90f23017 100644
--- a/crates/radicle-cob/src/object/collaboration.rs
+++ b/crates/radicle-cob/src/object/collaboration.rs
@@ -6,12 +6,12 @@ use nonempty::NonEmpty;
use oid::Oid;
use crate::change::store::{Manifest, Version};
-use crate::{change, Entry, History, ObjectId, TypeName};
+use crate::{Entry, History, ObjectId, TypeName, change};
pub mod error;
mod create;
-pub use create::{create, Create};
+pub use create::{Create, create};
mod get;
pub use get::get;
@@ -25,7 +25,7 @@ mod remove;
pub use remove::remove;
mod update;
-pub use update::{update, Update, Updated};
+pub use update::{Update, Updated, update};
/// A collaborative object
#[derive(Debug, Clone, PartialEq, Eq)]
diff --git a/crates/radicle-cob/src/object/collaboration/get.rs b/crates/radicle-cob/src/object/collaboration/get.rs
index ab7beddb..66bce507 100644
--- a/crates/radicle-cob/src/object/collaboration/get.rs
+++ b/crates/radicle-cob/src/object/collaboration/get.rs
@@ -2,7 +2,7 @@
use crypto::ssh::ExtendedSignature;
-use crate::{change_graph::ChangeGraph, CollaborativeObject, Evaluate, ObjectId, TypeName};
+use crate::{CollaborativeObject, Evaluate, ObjectId, TypeName, change_graph::ChangeGraph};
use super::error;
@@ -24,10 +24,10 @@ where
T: Evaluate<S>,
S: crate::object::Storage,
S: crate::change::Storage<
- ObjectId = crate::object::Oid,
- Parent = crate::object::Oid,
- Signatures = ExtendedSignature,
- >,
+ ObjectId = crate::object::Oid,
+ Parent = crate::object::Oid,
+ Signatures = ExtendedSignature,
+ >,
{
let tip_refs = storage
.objects(typename, oid)
diff --git a/crates/radicle-cob/src/object/collaboration/info.rs b/crates/radicle-cob/src/object/collaboration/info.rs
index 08822cde..89aef027 100644
--- a/crates/radicle-cob/src/object/collaboration/info.rs
+++ b/crates/radicle-cob/src/object/collaboration/info.rs
@@ -9,7 +9,7 @@ use std::collections::BTreeSet;
use crypto::ssh::ExtendedSignature;
use oid::Oid;
-use crate::{change_graph::ChangeGraph, ObjectId, TypeName};
+use crate::{ObjectId, TypeName, change_graph::ChangeGraph};
use super::error;
@@ -41,10 +41,10 @@ pub fn changegraph<S>(
where
S: crate::object::Storage,
S: crate::change::Storage<
- ObjectId = crate::object::Oid,
- Parent = crate::object::Oid,
- Signatures = ExtendedSignature,
- >,
+ ObjectId = crate::object::Oid,
+ Parent = crate::object::Oid,
+ Signatures = ExtendedSignature,
+ >,
{
let tip_refs = storage
.objects(typename, oid)
diff --git a/crates/radicle-cob/src/object/collaboration/list.rs b/crates/radicle-cob/src/object/collaboration/list.rs
index 33d9c9bb..04c8b586 100644
--- a/crates/radicle-cob/src/object/collaboration/list.rs
+++ b/crates/radicle-cob/src/object/collaboration/list.rs
@@ -1,6 +1,6 @@
// Copyright © 2022 The Radicle Link Contributors
-use crate::{change_graph::ChangeGraph, CollaborativeObject, Evaluate, TypeName};
+use crate::{CollaborativeObject, Evaluate, TypeName, change_graph::ChangeGraph};
use super::error;
@@ -19,10 +19,10 @@ where
T: Evaluate<S>,
S: crate::object::Storage,
S: crate::change::Storage<
- ObjectId = crate::object::Oid,
- Parent = crate::object::Oid,
- Signatures = crate::ExtendedSignature,
- >,
+ ObjectId = crate::object::Oid,
+ Parent = crate::object::Oid,
+ Signatures = crate::ExtendedSignature,
+ >,
{
let references = storage
.types(typename)
diff --git a/crates/radicle-cob/src/object/collaboration/update.rs b/crates/radicle-cob/src/object/collaboration/update.rs
index 057b707c..44bf7fe8 100644
--- a/crates/radicle-cob/src/object/collaboration/update.rs
+++ b/crates/radicle-cob/src/object/collaboration/update.rs
@@ -5,8 +5,8 @@ use nonempty::NonEmpty;
use oid::Oid;
use crate::{
- change, change_graph::ChangeGraph, history::EntryId, CollaborativeObject, Embed, Evaluate,
- ExtendedSignature, ObjectId, TypeName,
+ CollaborativeObject, Embed, Evaluate, ExtendedSignature, ObjectId, TypeName, change,
+ change_graph::ChangeGraph, history::EntryId,
};
use super::error;
diff --git a/crates/radicle-cob/src/signatures.rs b/crates/radicle-cob/src/signatures.rs
index 643cdd21..febdd8d9 100644
--- a/crates/radicle-cob/src/signatures.rs
+++ b/crates/radicle-cob/src/signatures.rs
@@ -7,10 +7,10 @@ use std::{
ops::{Deref, DerefMut},
};
-use crypto::{ssh, PublicKey};
+use crypto::{PublicKey, ssh};
use metadata::commit::{
- headers::Signature::{Pgp, Ssh},
CommitData,
+ headers::Signature::{Pgp, Ssh},
};
pub use ssh::ExtendedSignature;
diff --git a/crates/radicle-cob/src/test/storage.rs b/crates/radicle-cob/src/test/storage.rs
index 78f1f697..2df1c24c 100644
--- a/crates/radicle-cob/src/test/storage.rs
+++ b/crates/radicle-cob/src/test/storage.rs
@@ -6,9 +6,9 @@ use fmt::Component;
use tempfile::TempDir;
use crate::{
- change,
+ ObjectId, Store, change,
object::{self, Reference},
- signatures, ObjectId, Store,
+ signatures,
};
pub mod error {
diff --git a/crates/radicle-cob/src/tests.rs b/crates/radicle-cob/src/tests.rs
index ad241125..48a0d2e5 100644
--- a/crates/radicle-cob/src/tests.rs
+++ b/crates/radicle-cob/src/tests.rs
@@ -2,7 +2,7 @@ use fmt::{Component, RefString};
use radicle_git_ref_format::refname;
-use crate::{object, test::arbitrary::Invalid, ObjectId, TypeName};
+use crate::{ObjectId, TypeName, object, test::arbitrary::Invalid};
#[cfg(feature = "git2")]
mod git {
@@ -10,11 +10,11 @@ mod git {
use crypto::test::signer::MockSigner;
use crypto::{PublicKey, Signer};
- use nonempty::{nonempty, NonEmpty};
+ use nonempty::{NonEmpty, nonempty};
use qcheck::Arbitrary;
use crate::{
- create, get, list, update, Create, Entry, ObjectId, TypeName, Update, Updated, Version,
+ Create, Entry, ObjectId, TypeName, Update, Updated, Version, create, get, list, update,
};
use crate::test;
diff --git a/crates/radicle-cob/src/type_name.rs b/crates/radicle-cob/src/type_name.rs
index 60f86235..e0ecdef3 100644
--- a/crates/radicle-cob/src/type_name.rs
+++ b/crates/radicle-cob/src/type_name.rs
@@ -116,15 +116,19 @@ mod test {
assert!(TypeName::from_str("abc..ghi").is_err());
assert!(TypeName::from_str("abc.-123.ghi").is_err());
assert!(TypeName::from_str("abc.123-.ghi").is_err());
- assert!(TypeName::from_str(&format!(
- "a.very.long.name.that.exceeds.the.two-hundred-and-fifty-five.length.limit.{}",
- "a".repeat(255)
- ))
- .is_err());
- assert!(TypeName::from_str(&format!(
- "component.exceeds.sixty-three.limit.{}",
- "a".repeat(64)
- ))
- .is_err());
+ assert!(
+ TypeName::from_str(&format!(
+ "a.very.long.name.that.exceeds.the.two-hundred-and-fifty-five.length.limit.{}",
+ "a".repeat(255)
+ ))
+ .is_err()
+ );
+ assert!(
+ TypeName::from_str(&format!(
+ "component.exceeds.sixty-three.limit.{}",
+ "a".repeat(64)
+ ))
+ .is_err()
+ );
}
}
diff --git a/crates/radicle-core/src/repo.rs b/crates/radicle-core/src/repo.rs
index 0648177f..3d8ab2c1 100644
--- a/crates/radicle-core/src/repo.rs
+++ b/crates/radicle-core/src/repo.rs
@@ -219,7 +219,7 @@ mod radicle_git_ref_format_impls {
mod serde_impls {
use alloc::string::String;
- use serde::{de, Deserialize, Deserializer, Serialize};
+ use serde::{Deserialize, Deserializer, Serialize, de};
use super::RepoId;
@@ -347,48 +347,72 @@ mod test {
fn invalid() {
assert!("".parse::<RepoId>().is_err());
assert!("not-a-valid-rid".parse::<RepoId>().is_err());
- assert!("xyz:z3gqcJUoA1n9HaHKufZs5FCSGazv5"
- .parse::<RepoId>()
- .is_err());
- assert!("RAD:z3gqcJUoA1n9HaHKufZs5FCSGazv5"
- .parse::<RepoId>()
- .is_err());
+ assert!(
+ "xyz:z3gqcJUoA1n9HaHKufZs5FCSGazv5"
+ .parse::<RepoId>()
+ .is_err()
+ );
+ assert!(
+ "RAD:z3gqcJUoA1n9HaHKufZs5FCSGazv5"
+ .parse::<RepoId>()
+ .is_err()
+ );
assert!("rad:".parse::<RepoId>().is_err());
- assert!("rad:z3gqcJUoA1n9HaHKufZs5FCSG0zv5"
- .parse::<RepoId>()
- .is_err());
- assert!("rad:z3gqcJUoA1n9HaHKufZs5FCSGOzv5"
- .parse::<RepoId>()
- .is_err());
- assert!("rad:z3gqcJUoA1n9HaHKufZs5FCSGIzv5"
- .parse::<RepoId>()
- .is_err());
- assert!("rad:z3gqcJUoA1n9HaHKufZs5FCSGlzv5"
- .parse::<RepoId>()
- .is_err());
- assert!("rad:z3gqcJUoA1n9HaHKufZs5FCSGázv5"
- .parse::<RepoId>()
- .is_err());
- assert!("rad:z3gqcJUoA1n9HaHKufZs5FCSG@zv5"
- .parse::<RepoId>()
- .is_err());
- assert!("rad:Z3gqcJUoA1n9HaHKufZs5FCSGazv5"
- .parse::<RepoId>()
- .is_err());
+ assert!(
+ "rad:z3gqcJUoA1n9HaHKufZs5FCSG0zv5"
+ .parse::<RepoId>()
+ .is_err()
+ );
+ assert!(
+ "rad:z3gqcJUoA1n9HaHKufZs5FCSGOzv5"
+ .parse::<RepoId>()
+ .is_err()
+ );
+ assert!(
+ "rad:z3gqcJUoA1n9HaHKufZs5FCSGIzv5"
+ .parse::<RepoId>()
+ .is_err()
+ );
+ assert!(
+ "rad:z3gqcJUoA1n9HaHKufZs5FCSGlzv5"
+ .parse::<RepoId>()
+ .is_err()
+ );
+ assert!(
+ "rad:z3gqcJUoA1n9HaHKufZs5FCSGázv5"
+ .parse::<RepoId>()
+ .is_err()
+ );
+ assert!(
+ "rad:z3gqcJUoA1n9HaHKufZs5FCSG@zv5"
+ .parse::<RepoId>()
+ .is_err()
+ );
+ assert!(
+ "rad:Z3gqcJUoA1n9HaHKufZs5FCSGazv5"
+ .parse::<RepoId>()
+ .is_err()
+ );
assert!("rad:z3gqcJUoA1n9HaHKuf".parse::<RepoId>().is_err());
- assert!("rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5abcdef"
- .parse::<RepoId>()
- .is_err());
- assert!("rad: z3gqcJUoA1n9HaHKufZs5FCSGazv5"
- .parse::<RepoId>()
- .is_err());
+ assert!(
+ "rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5abcdef"
+ .parse::<RepoId>()
+ .is_err()
+ );
+ assert!(
+ "rad: z3gqcJUoA1n9HaHKufZs5FCSGazv5"
+ .parse::<RepoId>()
+ .is_err()
+ );
}
#[test]
fn valid() {
- assert!("rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5"
- .parse::<RepoId>()
- .is_ok());
+ assert!(
+ "rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5"
+ .parse::<RepoId>()
+ .is_ok()
+ );
assert!("z3gqcJUoA1n9HaHKufZs5FCSGazv5".parse::<RepoId>().is_ok());
assert!("z3XncAdkZjeK9mQS5Sdc4qhw98BUX".parse::<RepoId>().is_ok());
}
diff --git a/crates/radicle-crypto/src/lib.rs b/crates/radicle-crypto/src/lib.rs
index 14207e08..60bd126b 100644
--- a/crates/radicle-crypto/src/lib.rs
+++ b/crates/radicle-crypto/src/lib.rs
@@ -6,7 +6,7 @@ use ec25519 as ed25519;
use serde::{Deserialize, Serialize};
use thiserror::Error;
-pub use ed25519::{edwards25519, Error, KeyPair, Seed};
+pub use ed25519::{Error, KeyPair, Seed, edwards25519};
pub extern crate signature;
diff --git a/crates/radicle-crypto/src/test/arbitrary.rs b/crates/radicle-crypto/src/test/arbitrary.rs
index 452253ac..43874c3e 100644
--- a/crates/radicle-crypto/src/test/arbitrary.rs
+++ b/crates/radicle-crypto/src/test/arbitrary.rs
@@ -1,6 +1,6 @@
use qcheck::Arbitrary;
-use crate::{test::signer::MockSigner, KeyPair, PublicKey, SecretKey, Seed};
+use crate::{KeyPair, PublicKey, SecretKey, Seed, test::signer::MockSigner};
impl Arbitrary for MockSigner {
fn arbitrary(g: &mut qcheck::Gen) -> Self {
diff --git a/crates/radicle-crypto/src/test/signer.rs b/crates/radicle-crypto/src/test/signer.rs
index dbf4822d..b879fee0 100644
--- a/crates/radicle-crypto/src/test/signer.rs
+++ b/crates/radicle-crypto/src/test/signer.rs
@@ -1,4 +1,4 @@
-use crate::{ssh::ExtendedSignature, KeyPair, PublicKey, SecretKey, Seed, Signature};
+use crate::{KeyPair, PublicKey, SecretKey, Seed, Signature, ssh::ExtendedSignature};
#[derive(Debug, Clone)]
pub struct MockSigner {
diff --git a/crates/radicle-fetch/src/git/mem.rs b/crates/radicle-fetch/src/git/mem.rs
index f0494086..c7715c4c 100644
--- a/crates/radicle-fetch/src/git/mem.rs
+++ b/crates/radicle-fetch/src/git/mem.rs
@@ -1,7 +1,7 @@
use std::collections::HashMap;
-use radicle::git::fmt::{Component, Qualified, RefString};
use radicle::git::Oid;
+use radicle::git::fmt::{Component, Qualified, RefString};
use radicle::prelude::PublicKey;
use super::refs::{Applied, RefUpdate, Update};
diff --git a/crates/radicle-fetch/src/git/refs/update.rs b/crates/radicle-fetch/src/git/refs/update.rs
index 46e2ede6..318e8b0e 100644
--- a/crates/radicle-fetch/src/git/refs/update.rs
+++ b/crates/radicle-fetch/src/git/refs/update.rs
@@ -18,8 +18,8 @@
use std::collections::BTreeMap;
use either::Either;
-use radicle::git::fmt::{Namespaced, Qualified};
use radicle::git::Oid;
+use radicle::git::fmt::{Namespaced, Qualified};
use radicle::prelude::PublicKey;
pub use radicle::storage::RefUpdate;
diff --git a/crates/radicle-fetch/src/git/repository.rs b/crates/radicle-fetch/src/git/repository.rs
index 92f1a49a..a9bbe722 100644
--- a/crates/radicle-fetch/src/git/repository.rs
+++ b/crates/radicle-fetch/src/git/repository.rs
@@ -3,9 +3,8 @@ pub mod error;
use either::Either;
use radicle::git::raw::ErrorExt as _;
use radicle::git::{
- self,
+ self, Oid,
fmt::{Namespaced, Qualified},
- Oid,
};
use radicle::storage::git::Repository;
diff --git a/crates/radicle-fetch/src/git/repository/error.rs b/crates/radicle-fetch/src/git/repository/error.rs
index fe355448..0bc69263 100644
--- a/crates/radicle-fetch/src/git/repository/error.rs
+++ b/crates/radicle-fetch/src/git/repository/error.rs
@@ -1,7 +1,6 @@
use radicle::git::{
- self,
+ self, Oid,
fmt::{Namespaced, Qualified},
- Oid,
};
use thiserror::Error;
diff --git a/crates/radicle-fetch/src/handle.rs b/crates/radicle-fetch/src/handle.rs
index 5a51e69b..01e1c5f5 100644
--- a/crates/radicle-fetch/src/handle.rs
+++ b/crates/radicle-fetch/src/handle.rs
@@ -1,12 +1,12 @@
-use std::sync::atomic::{self, AtomicBool};
use std::sync::Arc;
+use std::sync::atomic::{self, AtomicBool};
use bstr::BString;
use radicle::crypto::PublicKey;
use radicle::git::Oid;
use radicle::identity::{Doc, DocError};
-use radicle::storage::git::Repository;
use radicle::storage::ReadRepository;
+use radicle::storage::git::Repository;
use crate::policy::{Allowed, BlockList};
use crate::transport::{ConnectionStream, Transport};
diff --git a/crates/radicle-fetch/src/lib.rs b/crates/radicle-fetch/src/lib.rs
index cff3d47e..0fa53629 100644
--- a/crates/radicle-fetch/src/lib.rs
+++ b/crates/radicle-fetch/src/lib.rs
@@ -12,9 +12,9 @@ mod state;
use std::io;
use std::time::Instant;
-use gix_protocol::{handshake, Handshake};
+use gix_protocol::{Handshake, handshake};
-pub use gix_protocol::{transport::bstr::ByteSlice, RemoteProgress};
+pub use gix_protocol::{RemoteProgress, transport::bstr::ByteSlice};
pub use handle::Handle;
pub use policy::{Allowed, BlockList, Scope};
use radicle::storage::git::Repository;
@@ -22,8 +22,8 @@ pub use state::{Config, FetchLimit, FetchResult};
pub use transport::Transport;
use radicle::crypto::PublicKey;
-use radicle::storage::refs::RefsAt;
use radicle::storage::ReadRepository as _;
+use radicle::storage::refs::RefsAt;
use state::FetchState;
use thiserror::Error;
diff --git a/crates/radicle-fetch/src/refs.rs b/crates/radicle-fetch/src/refs.rs
index 504730bb..d475f2a9 100644
--- a/crates/radicle-fetch/src/refs.rs
+++ b/crates/radicle-fetch/src/refs.rs
@@ -2,9 +2,8 @@ use bstr::{BString, ByteSlice};
use either::Either;
use radicle::crypto::PublicKey;
use radicle::git::{
- self,
+ self, Oid,
fmt::{Component, Namespaced, Qualified},
- Oid,
};
use thiserror::Error;
diff --git a/crates/radicle-fetch/src/sigrefs.rs b/crates/radicle-fetch/src/sigrefs.rs
index 8015d593..c042c46b 100644
--- a/crates/radicle-fetch/src/sigrefs.rs
+++ b/crates/radicle-fetch/src/sigrefs.rs
@@ -2,7 +2,7 @@ use std::collections::BTreeMap;
use std::ops::Not as _;
pub use radicle::storage::refs::SignedRefs;
-pub use radicle::storage::{git::Validation, Validations};
+pub use radicle::storage::{Validations, git::Validation};
use radicle::{crypto::PublicKey, storage::ValidateRepository};
pub mod error {
diff --git a/crates/radicle-fetch/src/stage.rs b/crates/radicle-fetch/src/stage.rs
index 53a93c6e..525934dc 100644
--- a/crates/radicle-fetch/src/stage.rs
+++ b/crates/radicle-fetch/src/stage.rs
@@ -37,10 +37,10 @@ use either::Either;
use gix_protocol::handshake::Ref;
use nonempty::NonEmpty;
use radicle::crypto::PublicKey;
-use radicle::git::fmt::{refname, Component, Namespaced, Qualified};
+use radicle::git::fmt::{Component, Namespaced, Qualified, refname};
+use radicle::storage::ReadRepository;
use radicle::storage::git::Repository;
use radicle::storage::refs::{RefsAt, Special};
-use radicle::storage::ReadRepository;
use crate::git::refs::{Policy, Update, Updates};
use crate::policy::BlockList;
diff --git a/crates/radicle-fetch/src/state.rs b/crates/radicle-fetch/src/state.rs
index f516ec7e..bcec3c0d 100644
--- a/crates/radicle-fetch/src/state.rs
+++ b/crates/radicle-fetch/src/state.rs
@@ -3,14 +3,14 @@ use std::time::Instant;
use gix_protocol::Handshake;
use radicle::crypto::PublicKey;
-use radicle::git::{fmt::Qualified, Oid};
+use radicle::git::{Oid, fmt::Qualified};
use radicle::identity::{Did, Doc, DocError};
use radicle::storage;
use radicle::storage::git::Repository;
use radicle::storage::refs::{FeatureLevel, RefsAt};
use radicle::storage::{
- git::Validation, Remote, RemoteId, RemoteRepository, Remotes, ValidateRepository, Validations,
+ Remote, RemoteId, RemoteRepository, Remotes, ValidateRepository, Validations, git::Validation,
};
use crate::git;
@@ -20,7 +20,7 @@ use crate::git::repository;
use crate::sigrefs::SignedRefs;
use crate::stage;
use crate::stage::ProtocolStage;
-use crate::{refs, sigrefs, transport, Handle};
+use crate::{Handle, refs, sigrefs, transport};
/// The data size limit, 5Mb, while fetching the special refs,
/// i.e. `rad/id` and `rad/sigrefs`.
@@ -549,9 +549,13 @@ impl FetchState {
}) => {
let level_required = levels.max();
if level_reachable >= level_required {
- log::info!("Non-delegate {remote} has downgraded history, currently stuck at '{actual}', expects to be upgraded to '{level_required}' and will be upgraded to '{level_reachable}'.")
+ log::info!(
+ "Non-delegate {remote} has downgraded history, currently stuck at '{actual}', expects to be upgraded to '{level_required}' and will be upgraded to '{level_reachable}'."
+ )
} else {
- log::debug!("Non-delegate {remote} has downgraded history, currently stuck at '{actual}', expects to be upgraded to '{level_required}' but only level '{level_reachable}' was advertised.");
+ log::debug!(
+ "Non-delegate {remote} has downgraded history, currently stuck at '{actual}', expects to be upgraded to '{level_required}' but only level '{level_reachable}' was advertised."
+ );
self.prune(&remote);
continue;
}
@@ -601,9 +605,13 @@ impl FetchState {
}) => {
let level_required = levels.max();
if level_reachable >= level_required {
- log::info!("Delegate {remote} has downgraded history, currently stuck at '{actual}', expects to be upgraded to '{level_required}' and will be upgraded to '{level_reachable}'.")
+ log::info!(
+ "Delegate {remote} has downgraded history, currently stuck at '{actual}', expects to be upgraded to '{level_required}' and will be upgraded to '{level_reachable}'."
+ )
} else {
- log::info!("Delegate {remote} has downgraded history, currently stuck at '{actual}', expects to be upgraded to '{level_required}' but only level '{level_reachable}' was advertised.");
+ log::info!(
+ "Delegate {remote} has downgraded history, currently stuck at '{actual}', expects to be upgraded to '{level_required}' but only level '{level_reachable}' was advertised."
+ );
self.prune(&remote);
continue;
}
@@ -629,7 +637,10 @@ impl FetchState {
}
if level_reachable < FeatureLevel::LATEST {
- log::warn!("Delegate {remote} is on feature level '{level_reachable}' which is lower than '{}', they should consider upgrading Radicle.", FeatureLevel::LATEST)
+ log::warn!(
+ "Delegate {remote} is on feature level '{level_reachable}' which is lower than '{}', they should consider upgrading Radicle.",
+ FeatureLevel::LATEST
+ )
}
}
}
diff --git a/crates/radicle-fetch/src/transport.rs b/crates/radicle-fetch/src/transport.rs
index ef6bbe27..f0fad636 100644
--- a/crates/radicle-fetch/src/transport.rs
+++ b/crates/radicle-fetch/src/transport.rs
@@ -4,18 +4,18 @@ pub(crate) mod ls_refs;
use std::collections::BTreeSet;
use std::io;
use std::path::PathBuf;
-use std::sync::atomic::AtomicBool;
use std::sync::Arc;
+use std::sync::atomic::AtomicBool;
use bstr::BString;
use gix_features::progress::prodash::progress;
-use gix_protocol::handshake;
use gix_protocol::Handshake;
-use gix_transport::client;
+use gix_protocol::handshake;
use gix_transport::Protocol;
use gix_transport::Service;
-use radicle::git::fmt::Qualified;
+use gix_transport::client;
use radicle::git::Oid;
+use radicle::git::fmt::Qualified;
use radicle::storage::git::Repository;
use thiserror::Error;
diff --git a/crates/radicle-fetch/src/transport/fetch.rs b/crates/radicle-fetch/src/transport/fetch.rs
index 5d4b4bd0..6834015c 100644
--- a/crates/radicle-fetch/src/transport/fetch.rs
+++ b/crates/radicle-fetch/src/transport/fetch.rs
@@ -1,16 +1,16 @@
use std::io;
use std::path::PathBuf;
-use std::sync::{atomic::AtomicBool, Arc};
+use std::sync::{Arc, atomic::AtomicBool};
use gix_features::progress::{DynNestedProgress, NestedProgress};
use gix_pack as pack;
use gix_protocol::fetch::negotiate::one_round::State;
use gix_protocol::handshake::Ref;
-use gix_protocol::{fetch, Handshake};
+use gix_protocol::{Handshake, fetch};
use crate::git::packfile;
-use super::{agent_name, Connection, WantsHaves};
+use super::{Connection, WantsHaves, agent_name};
pub type Error = fetch::Error;
diff --git a/crates/radicle-fetch/src/transport/ls_refs.rs b/crates/radicle-fetch/src/transport/ls_refs.rs
index 7c8cf5c2..e8305858 100644
--- a/crates/radicle-fetch/src/transport/ls_refs.rs
+++ b/crates/radicle-fetch/src/transport/ls_refs.rs
@@ -5,12 +5,12 @@ use std::io;
use gix_features::progress::Progress;
use gix_protocol::handshake::Ref;
use gix_protocol::transport::Protocol;
-use gix_protocol::{ls_refs, Handshake};
+use gix_protocol::{Handshake, ls_refs};
use gix_transport::bstr::BString;
use crate::stage::RefPrefix;
-use super::{agent_name, Connection};
+use super::{Connection, agent_name};
/// Configuration for running an ls-refs process.
///
diff --git a/crates/radicle-git-metadata/src/commit/parse.rs b/crates/radicle-git-metadata/src/commit/parse.rs
index e555898e..63e2d0bf 100644
--- a/crates/radicle-git-metadata/src/commit/parse.rs
+++ b/crates/radicle-git-metadata/src/commit/parse.rs
@@ -6,9 +6,9 @@ use std::borrow::Cow;
use crate::author::Author;
use super::{
+ CommitData,
headers::Headers,
trailers::{OwnedTrailer, Token, Trailer},
- CommitData,
};
#[derive(Debug, thiserror::Error)]
diff --git a/crates/radicle-git-metadata/src/commit/parse/test/error.rs b/crates/radicle-git-metadata/src/commit/parse/test/error.rs
index 49523060..89cbe076 100644
--- a/crates/radicle-git-metadata/src/commit/parse/test/error.rs
+++ b/crates/radicle-git-metadata/src/commit/parse/test/error.rs
@@ -1,4 +1,4 @@
-use crate::commit::parse::{parse, ParseError};
+use crate::commit::parse::{ParseError, parse};
/// Helper type whose FromStr always fails.
///
diff --git a/crates/radicle-git-metadata/src/commit/parse/test/success.rs b/crates/radicle-git-metadata/src/commit/parse/test/success.rs
index 9346bd62..81ed70b9 100644
--- a/crates/radicle-git-metadata/src/commit/parse/test/success.rs
+++ b/crates/radicle-git-metadata/src/commit/parse/test/success.rs
@@ -142,9 +142,11 @@ This line is not a valid trailer."#;
assert_eq!(commit.trailers().count(), 0);
assert!(commit.message().contains("Signed-off-by"));
- assert!(commit
- .message()
- .contains("This line is not a valid trailer."));
+ assert!(
+ commit
+ .message()
+ .contains("This line is not a valid trailer.")
+ );
}
#[test]
diff --git a/crates/radicle-node/src/control.rs b/crates/radicle-node/src/control.rs
index ab3a1aca..dd62bf5d 100644
--- a/crates/radicle-node/src/control.rs
+++ b/crates/radicle-node/src/control.rs
@@ -1,7 +1,7 @@
//! Client control socket implementation.
-use std::io::prelude::*;
use std::io::BufReader;
use std::io::LineWriter;
+use std::io::prelude::*;
use std::path::PathBuf;
use std::{io, net, time};
@@ -283,8 +283,8 @@ mod tests {
use super::*;
use crate::identity::RepoId;
- use crate::node::policy::Scope;
use crate::node::Handle;
+ use crate::node::policy::Scope;
use crate::node::{Alias, Node, NodeId};
use crate::test;
diff --git a/crates/radicle-node/src/lib.rs b/crates/radicle-node/src/lib.rs
index 94ae8d27..3082aede 100644
--- a/crates/radicle-node/src/lib.rs
+++ b/crates/radicle-node/src/lib.rs
@@ -26,8 +26,8 @@ use radicle::version::Version;
pub use localtime::{LocalDuration, LocalTime};
pub use radicle::node::Link;
-pub use radicle::node::UserAgent;
pub use radicle::node::PROTOCOL_VERSION;
+pub use radicle::node::UserAgent;
pub use radicle::prelude::Timestamp;
pub use radicle::{collections, crypto, git, identity, node, profile, rad, storage};
pub use runtime::Runtime;
@@ -49,10 +49,10 @@ pub static USER_AGENT: LazyLock<UserAgent> = LazyLock::new(|| {
pub mod prelude {
pub use crate::crypto::{PublicKey, Signature};
pub use crate::identity::{Did, RepoId};
- pub use crate::node::{config::Network, Address, Event, NodeId};
+ pub use crate::node::{Address, Event, NodeId, config::Network};
pub use crate::service::filter::Filter;
pub use crate::service::{DisconnectReason, Message};
- pub use crate::storage::refs::Refs;
pub use crate::storage::WriteStorage;
+ pub use crate::storage::refs::Refs;
pub use crate::{LocalDuration, LocalTime, Timestamp};
}
diff --git a/crates/radicle-node/src/main.rs b/crates/radicle-node/src/main.rs
index a02e5c6b..61041804 100644
--- a/crates/radicle-node/src/main.rs
+++ b/crates/radicle-node/src/main.rs
@@ -141,7 +141,9 @@ fn parse_options() -> Result<Options, lexopt::Error> {
}
Long("log") | Long("log-level") => {
if matches!(arg, Long("log")) {
- eprintln!("Warning: The option `--log` is deprecated and will be removed. Please use `--log-level` instead.");
+ eprintln!(
+ "Warning: The option `--log` is deprecated and will be removed. Please use `--log-level` instead."
+ );
}
log_level = Some(parser.value()?.parse_with(log::Level::from_str)?);
}
@@ -202,7 +204,9 @@ enum ExecutionError {
path: PathBuf,
source: radicle::crypto::ssh::keystore::Error,
},
- #[error("failed to load secret key '{secret}': fingerprint of corresponding public key is different from '{fingerprint}'")]
+ #[error(
+ "failed to load secret key '{secret}': fingerprint of corresponding public key is different from '{fingerprint}'"
+ )]
FingerprintMismatch {
secret: PathBuf,
fingerprint: Fingerprint,
@@ -341,7 +345,7 @@ fn initialize_logging(options: &LogOptions) -> Result<(), Box<dyn std::error::Er
match options.logger {
#[cfg(feature = "structured-logger")]
Logger::Structured => {
- use structured_logger::{json, Builder};
+ use structured_logger::{Builder, json};
let writer = match options.format.unwrap_or(LogFormat::Json) {
LogFormat::Json => json::new_writer(io::stdout()),
diff --git a/crates/radicle-node/src/reactor.rs b/crates/radicle-node/src/reactor.rs
index bb17a451..cae358a4 100644
--- a/crates/radicle-node/src/reactor.rs
+++ b/crates/radicle-node/src/reactor.rs
@@ -13,7 +13,7 @@ use std::thread::JoinHandle;
use std::time::{Duration, Instant};
use std::{io, thread};
-use crossbeam_channel::{unbounded, Receiver, TryRecvError};
+use crossbeam_channel::{Receiver, TryRecvError, unbounded};
use mio::event::{Event, Source};
use mio::{Events, Interest, Poll, Waker};
use thiserror::Error;
diff --git a/crates/radicle-node/src/reactor/session.rs b/crates/radicle-node/src/reactor/session.rs
index 74885e05..1a5d802d 100644
--- a/crates/radicle-node/src/reactor/session.rs
+++ b/crates/radicle-node/src/reactor/session.rs
@@ -256,7 +256,7 @@ impl Session for TcpStream {
}
mod impl_noise {
- use cyphernet::encrypt::noise::{error::NoiseError as Error, NoiseState as Noise};
+ use cyphernet::encrypt::noise::{NoiseState as Noise, error::NoiseError as Error};
use cyphernet::{Digest, Ecdh};
use super::*;
diff --git a/crates/radicle-node/src/reactor/transport.rs b/crates/radicle-node/src/reactor/transport.rs
index 8f0a1ea5..a751c28f 100644
--- a/crates/radicle-node/src/reactor/transport.rs
+++ b/crates/radicle-node/src/reactor/transport.rs
@@ -286,8 +286,8 @@ impl<S: Session + Source> EventHandler for Transport<S> {
type Reaction = SessionEvent<S>;
fn interests(&self) -> Option<Interest> {
- use mio::Interest;
use TransportState::*;
+ use mio::Interest;
match self.state {
Init => Some(Interest::WRITABLE),
diff --git a/crates/radicle-node/src/runtime.rs b/crates/radicle-node/src/runtime.rs
index aa1b57a3..b824d719 100644
--- a/crates/radicle-node/src/runtime.rs
+++ b/crates/radicle-node/src/runtime.rs
@@ -19,23 +19,23 @@ use radicle_signals::Signal;
use thiserror::Error;
use radicle::node;
+use radicle::node::Event;
+use radicle::node::UserAgent;
use radicle::node::address;
use radicle::node::address::Store as _;
use radicle::node::notifications;
use radicle::node::policy::config as policy;
-use radicle::node::Event;
-use radicle::node::UserAgent;
use radicle::profile::Home;
-use radicle::{cob, git, storage, Storage};
+use radicle::{Storage, cob, git, storage};
use crate::control;
-use crate::node::{routing, NodeId};
+use crate::node::{NodeId, routing};
use crate::reactor;
use crate::reactor::Reactor;
use crate::service::gossip;
use crate::wire::Wire;
use crate::worker;
-use crate::{service, LocalTime};
+use crate::{LocalTime, service};
pub use handle::Error as HandleError;
pub use handle::Handle;
@@ -282,22 +282,24 @@ impl Runtime {
|| control::listen(listener, handle)
});
- let _signals = thread::spawn(&self.id, "signals", move || loop {
- use radicle::node::Handle as _;
-
- match self.signals.recv() {
- Ok(Signal::Terminate | Signal::Interrupt) => {
- log::info!(target: "node", "Termination signal received; shutting down..");
- self.handle.shutdown().ok();
- break;
- }
- Ok(Signal::Hangup) => {
- log::debug!(target: "node", "Hangup signal (SIGHUP) received; ignoring..");
- }
- Ok(Signal::WindowChanged) => {}
- Err(e) => {
- log::warn!(target: "node", "Signal notifications channel error: {e}");
- break;
+ let _signals = thread::spawn(&self.id, "signals", move || {
+ loop {
+ use radicle::node::Handle as _;
+
+ match self.signals.recv() {
+ Ok(Signal::Terminate | Signal::Interrupt) => {
+ log::info!(target: "node", "Termination signal received; shutting down..");
+ self.handle.shutdown().ok();
+ break;
+ }
+ Ok(Signal::Hangup) => {
+ log::debug!(target: "node", "Hangup signal (SIGHUP) received; ignoring..");
+ }
+ Ok(Signal::WindowChanged) => {}
+ Err(e) => {
+ log::warn!(target: "node", "Signal notifications channel error: {e}");
+ break;
+ }
}
}
});
diff --git a/crates/radicle-node/src/runtime/handle.rs b/crates/radicle-node/src/runtime/handle.rs
index 0854fd79..dcd07219 100644
--- a/crates/radicle-node/src/runtime/handle.rs
+++ b/crates/radicle-node/src/runtime/handle.rs
@@ -1,7 +1,7 @@
use std::collections::HashSet;
use std::net;
-use std::sync::atomic::{AtomicBool, Ordering};
use std::sync::Arc;
+use std::sync::atomic::{AtomicBool, Ordering};
use std::{fmt, io, time};
#[cfg(unix)]
diff --git a/crates/radicle-node/src/test/gossip.rs b/crates/radicle-node/src/test/gossip.rs
index d8e299d9..87d2698a 100644
--- a/crates/radicle-node/src/test/gossip.rs
+++ b/crates/radicle-node/src/test/gossip.rs
@@ -1,15 +1,15 @@
use std::str::FromStr;
use radicle::node;
-use radicle::node::device::Device;
use radicle::node::UserAgent;
+use radicle::node::device::Device;
use radicle::test::fixtures::r#gen;
use crate::test::arbitrary;
use crate::{
+ PROTOCOL_VERSION,
prelude::{LocalDuration, LocalTime, Message},
service::message::{InventoryAnnouncement, NodeAnnouncement},
- PROTOCOL_VERSION,
};
pub fn messages(count: usize, now: LocalTime, delta: LocalDuration) -> Vec<Message> {
@@ -23,11 +23,7 @@ pub fn messages(count: usize, now: LocalTime, delta: LocalDuration) -> Vec<Messa
} else {
let delta = LocalDuration::from_secs(rng.u64(0..delta.as_secs()));
- if rng.bool() {
- now + delta
- } else {
- now - delta
- }
+ if rng.bool() { now + delta } else { now - delta }
};
msgs.push(Message::node(
diff --git a/crates/radicle-node/src/test/handle.rs b/crates/radicle-node/src/test/handle.rs
index 8fbb907d..c7f43e49 100644
--- a/crates/radicle-node/src/test/handle.rs
+++ b/crates/radicle-node/src/test/handle.rs
@@ -10,8 +10,8 @@ use radicle::storage::refs::{self, RefsAt};
use crate::identity::RepoId;
use crate::node::{Alias, Config, ConnectOptions, ConnectResult, Event, FetchResult, Seeds};
use crate::runtime::HandleError;
-use radicle::node::policy;
use radicle::node::NodeId;
+use radicle::node::policy;
#[derive(Default, Clone)]
pub struct Handle {
diff --git a/crates/radicle-node/src/test/node.rs b/crates/radicle-node/src/test/node.rs
index 29374e4a..a7eb9608 100644
--- a/crates/radicle-node/src/test/node.rs
+++ b/crates/radicle-node/src/test/node.rs
@@ -11,33 +11,33 @@ use std::{
use crossbeam_channel as chan;
+use radicle::Storage;
use radicle::cob;
use radicle::cob::issue;
+use radicle::crypto::Signature;
use radicle::crypto::signature::Signer;
use radicle::crypto::ssh::keystore::MemorySigner;
use radicle::crypto::test::signer::MockSigner;
-use radicle::crypto::Signature;
use radicle::git;
use radicle::git::fmt::refname;
use radicle::identity::{RepoId, Visibility};
+use radicle::node::Config;
+use radicle::node::Event;
use radicle::node::config::ConnectAddress;
use radicle::node::policy::store as policy;
use radicle::node::seed::Store as _;
-use radicle::node::Config;
-use radicle::node::Event;
use radicle::node::{self, Alias};
use radicle::node::{ConnectOptions, Handle as _};
use radicle::node::{Database, POLICIES_DB_FILE};
-use radicle::profile::{env, Home, Profile};
+use radicle::profile::{Home, Profile, env};
use radicle::rad;
use radicle::storage::{ReadStorage as _, RemoteRepository as _, SignRepository as _};
use radicle::test::fixtures;
-use radicle::Storage;
-use crate::node::device::Device;
use crate::node::NodeId;
+use crate::node::device::Device;
use crate::storage::git::transport;
-use crate::{runtime, runtime::Handle, service, Runtime};
+use crate::{Runtime, runtime, runtime::Handle, service};
/// A node that can be run.
pub struct Node<G> {
diff --git a/crates/radicle-node/src/test/peer.rs b/crates/radicle-node/src/test/peer.rs
index 2fa9c5cc..e5ec740c 100644
--- a/crates/radicle-node/src/test/peer.rs
+++ b/crates/radicle-node/src/test/peer.rs
@@ -7,19 +7,19 @@ use std::str::FromStr;
use log::*;
+use radicle::Storage;
use radicle::crypto;
use radicle::git::Oid;
use radicle::identity::Visibility;
-use radicle::node::address::Store as _;
-use radicle::node::device::Device;
use radicle::node::Database;
use radicle::node::UserAgent;
-use radicle::node::{address, Alias, ConnectOptions};
+use radicle::node::address::Store as _;
+use radicle::node::device::Device;
+use radicle::node::{Alias, ConnectOptions, address};
use radicle::rad;
use radicle::storage::refs;
use radicle::storage::refs::{RefsAt, SignedRefs};
use radicle::storage::{ReadRepository, RemoteRepository};
-use radicle::Storage;
use crate::crypto::test::signer::MockSigner;
use crate::identity::RepoId;
diff --git a/crates/radicle-node/src/test/simulator.rs b/crates/radicle-node/src/test/simulator.rs
index d914f811..8eff8ee5 100644
--- a/crates/radicle-node/src/test/simulator.rs
+++ b/crates/radicle-node/src/test/simulator.rs
@@ -13,10 +13,11 @@ use std::{fmt, io, net};
use localtime::{LocalDuration, LocalTime};
use log::*;
-use radicle::node::events::Event;
use radicle::node::NodeId;
+use radicle::node::events::Event;
use radicle_protocol::worker::FetchError;
+use crate::Link;
use crate::crypto;
use crate::prelude::{Address, RepoId};
use crate::service::io::Io;
@@ -26,7 +27,6 @@ use crate::storage::{ReadRepository, WriteStorage};
use crate::test::arbitrary;
use crate::test::peer::Service;
use crate::worker::fetch;
-use crate::Link;
/// Minimum latency between peers.
pub const MIN_LATENCY: LocalDuration = LocalDuration::from_millis(1);
diff --git a/crates/radicle-node/src/tests.rs b/crates/radicle-node/src/tests.rs
index 4e646a14..9dc855c6 100644
--- a/crates/radicle-node/src/tests.rs
+++ b/crates/radicle-node/src/tests.rs
@@ -13,15 +13,15 @@ use test_log::test;
use radicle::cob;
use radicle::identity::Visibility;
+use radicle::node::Link;
use radicle::node::address::Store as _;
use radicle::node::device::Device;
use radicle::node::policy;
use radicle::node::refs::Store as _;
use radicle::node::routing::Store as _;
-use radicle::node::Link;
use radicle::node::{ConnectOptions, DEFAULT_TIMEOUT};
-use radicle::storage::refs::RefsAt;
use radicle::storage::RefUpdate;
+use radicle::storage::refs::RefsAt;
use radicle::test::arbitrary::r#gen;
use radicle::test::storage::MockRepository;
use radicle_protocol::bounded::BoundedVec;
@@ -32,15 +32,15 @@ use crate::node;
use crate::node::config::*;
use crate::prelude::*;
use crate::prelude::{LocalDuration, Timestamp};
+use crate::service::ServiceState as _;
use crate::service::filter::Filter;
use crate::service::io::Io;
use crate::service::message::*;
-use crate::service::ServiceState as _;
use crate::service::*;
-use crate::storage::git::transport::{local, remote};
+use crate::storage::ReadStorage;
use crate::storage::git::Storage;
+use crate::storage::git::transport::{local, remote};
use crate::storage::refs::SIGREFS_BRANCH;
-use crate::storage::ReadStorage;
use crate::test::arbitrary;
use crate::test::assert_matches;
use crate::test::fixtures;
@@ -51,11 +51,11 @@ use crate::test::peer::Peer;
use crate::test::simulator;
use crate::test::simulator::{Peer as _, Simulation};
+use crate::LocalTime;
use crate::test::storage::MockStorage;
use crate::wire::Decode;
use crate::wire::Encode;
use crate::worker::fetch;
-use crate::LocalTime;
use crate::{git, identity, rad, runtime, service, test};
/// Default number of tests to run when testing things with high variance.
@@ -2040,13 +2040,14 @@ fn test_announcement_message_amplification() {
// Make sure they have the routing table entry.
for node in [&bob, &eve, &zod, &tom] {
- assert!(node
- .service
- .database()
- .routing()
- .get(&rid)
- .unwrap()
- .contains(&alice.id));
+ assert!(
+ node.service
+ .database()
+ .routing()
+ .get(&rid)
+ .unwrap()
+ .contains(&alice.id)
+ );
}
// Count how many copies of Alice's inventory message have been received by peers.
diff --git a/crates/radicle-node/src/tests/e2e.rs b/crates/radicle-node/src/tests/e2e.rs
index 19294657..c2b4484a 100644
--- a/crates/radicle-node/src/tests/e2e.rs
+++ b/crates/radicle-node/src/tests/e2e.rs
@@ -6,10 +6,10 @@ use radicle_crypto::test::signer::MockSigner;
use test_log::test;
use radicle::git::raw::ErrorExt as _;
+use radicle::node::Event;
use radicle::node::device::Device;
use radicle::node::policy::Scope;
-use radicle::node::Event;
-use radicle::node::{Alias, ConnectResult, FetchResult, Handle as _, DEFAULT_TIMEOUT};
+use radicle::node::{Alias, ConnectResult, DEFAULT_TIMEOUT, FetchResult, Handle as _};
use radicle::storage::{
ReadRepository, ReadStorage, RefUpdate, RemoteRepository, SignRepository, ValidateRepository,
WriteRepository, WriteStorage,
@@ -22,7 +22,7 @@ use crate::node::config::Limits;
use crate::node::{Config, ConnectOptions};
use crate::service;
use crate::storage::git::transport;
-use crate::test::node::{converge, Node, NodeHandle};
+use crate::test::node::{Node, NodeHandle, converge};
mod config {
use super::*;
@@ -631,12 +631,13 @@ fn test_clone() {
assert_eq!(canonical, oid);
// Make sure that bob has refs/rad/id set
- assert!(bob
- .storage
- .repository(acme)
- .unwrap()
- .identity_head()
- .is_ok());
+ assert!(
+ bob.storage
+ .repository(acme)
+ .unwrap()
+ .identity_head()
+ .is_ok()
+ );
}
#[test]
diff --git a/crates/radicle-node/src/wire.rs b/crates/radicle-node/src/wire.rs
index bfb55396..21f6dbf9 100644
--- a/crates/radicle-node/src/wire.rs
+++ b/crates/radicle-node/src/wire.rs
@@ -1,8 +1,8 @@
//! Implementation of the transport protocol.
//!
//! We use the Noise XK handshake pattern to establish an encrypted stream with a remote peer.
-use std::collections::hash_map::Entry;
use std::collections::VecDeque;
+use std::collections::hash_map::Entry;
use std::fmt::Debug;
use std::sync::Arc;
use std::time::Instant;
@@ -19,9 +19,9 @@ use radicle::node::device::Device;
use radicle::collections::{RandomMap, RandomSet};
use radicle::crypto;
-use radicle::node::config::AddressConfig;
use radicle::node::Link;
use radicle::node::NodeId;
+use radicle::node::config::AddressConfig;
use radicle::storage::WriteStorage;
use radicle_protocol::deserializer::Deserializer;
pub use radicle_protocol::wire::frame;
@@ -34,9 +34,9 @@ use crate::reactor::{Listener, Transport};
use crate::reactor::{NoiseSession, ProtocolArtifact, SessionEvent, Socks5Session};
use crate::reactor::{Token, Tokens};
use crate::service;
-use crate::service::io::Io;
use crate::service::FETCH_TIMEOUT;
-use crate::service::{session, DisconnectReason, Metrics, Service};
+use crate::service::io::Io;
+use crate::service::{DisconnectReason, Metrics, Service, session};
use crate::worker;
use crate::worker::{ChannelEvent, ChannelsConfig};
use crate::worker::{Task, TaskResult};
@@ -897,7 +897,10 @@ where
e.remove();
}
Peer::Connected { nid, .. } => {
- panic!("Wire::handover_transport: Unexpected handover of connected peer {nid} with token {}", token.0);
+ panic!(
+ "Wire::handover_transport: Unexpected handover of connected peer {nid} with token {}",
+ token.0
+ );
}
}
}
diff --git a/crates/radicle-node/src/worker.rs b/crates/radicle-node/src/worker.rs
index df878807..5b578f01 100644
--- a/crates/radicle-node/src/worker.rs
+++ b/crates/radicle-node/src/worker.rs
@@ -16,13 +16,13 @@ use radicle::node::policy::config::SeedingPolicy;
use radicle::prelude::NodeId;
use radicle::storage::refs::RefsAt;
use radicle::storage::{ReadRepository, ReadStorage};
-use radicle::{cob, crypto, Storage};
+use radicle::{Storage, cob, crypto};
pub use radicle_protocol::worker::{
AuthorizationError, FetchError, FetchRequest, FetchResult, UploadError,
};
-use crate::runtime::{thread, Handle};
+use crate::runtime::{Handle, thread};
use crate::wire::StreamId;
pub use channels::{ChannelEvent, Channels, ChannelsConfig};
@@ -154,13 +154,13 @@ impl Worker {
std::io::ErrorKind::UnexpectedEof,
"unexpected end of stream while reading upload-pack header",
))),
- }
+ };
}
Some(Err(e)) => {
return FetchResult::Responder {
rid: None,
result: Err(UploadError::PacketLine(e)),
- }
+ };
}
Some(Ok(Err(e))) => {
return FetchResult::Responder {
@@ -169,7 +169,7 @@ impl Worker {
std::io::ErrorKind::InvalidData,
format!("invalid upload-pack header: {e}"),
))),
- }
+ };
}
Some(Ok(Ok(header))) => header,
};
diff --git a/crates/radicle-node/src/worker/channels.rs b/crates/radicle-node/src/worker/channels.rs
index da994e0b..83edaf73 100644
--- a/crates/radicle-node/src/worker/channels.rs
+++ b/crates/radicle-node/src/worker/channels.rs
@@ -3,8 +3,8 @@ use std::ops::Deref;
use std::{fmt, io, time};
use crossbeam_channel as chan;
-use radicle::node::config::FetchPackSizeLimit;
use radicle::node::NodeId;
+use radicle::node::config::FetchPackSizeLimit;
use crate::runtime::Handle;
use crate::wire::StreamId;
diff --git a/crates/radicle-node/src/worker/fetch.rs b/crates/radicle-node/src/worker/fetch.rs
index 5e79512c..e500f5d1 100644
--- a/crates/radicle-node/src/worker/fetch.rs
+++ b/crates/radicle-node/src/worker/fetch.rs
@@ -1,5 +1,5 @@
-use radicle::identity::doc::CanonicalRefsError;
use radicle::identity::CanonicalRefs;
+use radicle::identity::doc::CanonicalRefsError;
use radicle::storage::git::TempRepository;
pub(crate) use radicle_protocol::worker::fetch::error;
@@ -19,7 +19,7 @@ use radicle::storage::{
ReadRepository, ReadStorage as _, RefUpdate, RemoteRepository, RepositoryError,
WriteRepository as _,
};
-use radicle::{cob, git, node, Storage};
+use radicle::{Storage, cob, git, node};
use radicle_fetch::git::refs::Applied;
use radicle_fetch::{Allowed, BlockList};
pub use radicle_protocol::worker::fetch::{FetchResult, UpdatedCanonicalRefs};
diff --git a/crates/radicle-node/src/worker/upload_pack.rs b/crates/radicle-node/src/worker/upload_pack.rs
index 6a9ff260..0766cead 100644
--- a/crates/radicle-node/src/worker/upload_pack.rs
+++ b/crates/radicle-node/src/worker/upload_pack.rs
@@ -5,12 +5,12 @@ use std::time::{Duration, Instant};
use radicle_fetch::{ByteSlice as _, RemoteProgress};
+use radicle::Storage;
use radicle::identity::RepoId;
use radicle::node::events;
use radicle::node::events::Emitter;
use radicle::node::{Event, NodeId};
use radicle::storage::git::paths;
-use radicle::Storage;
use crate::runtime::thread;
diff --git a/crates/radicle-oid/src/lib.rs b/crates/radicle-oid/src/lib.rs
index 63720aa3..be747b0c 100644
--- a/crates/radicle-oid/src/lib.rs
+++ b/crates/radicle-oid/src/lib.rs
@@ -509,7 +509,10 @@ mod serde {
fn expecting(&self, f: &mut fmt::Formatter) -> fmt::Result {
use crate::str::SHA1_DIGEST_STR_LEN;
- write!(f, "a Git object identifier (SHA-1 digest in hexadecimal notation; {SHA1_DIGEST_STR_LEN} characters; {SHA1_DIGEST_LEN} bytes)")
+ write!(
+ f,
+ "a Git object identifier (SHA-1 digest in hexadecimal notation; {SHA1_DIGEST_STR_LEN} characters; {SHA1_DIGEST_LEN} bytes)"
+ )
}
fn visit_str<E>(self, s: &str) -> Result<Self::Value, E>
@@ -551,7 +554,7 @@ mod radicle_git_ref_format {
mod schemars {
use alloc::{borrow::Cow, format};
- use ::schemars::{json_schema, JsonSchema, Schema, SchemaGenerator};
+ use ::schemars::{JsonSchema, Schema, SchemaGenerator, json_schema};
use super::Oid;
@@ -565,7 +568,7 @@ mod schemars {
}
fn json_schema(_: &mut SchemaGenerator) -> Schema {
- use crate::{str::SHA1_DIGEST_STR_LEN, SHA1_DIGEST_LEN};
+ use crate::{SHA1_DIGEST_LEN, str::SHA1_DIGEST_STR_LEN};
json_schema!({
"description": format!("A Git object identifier (SHA-1 digest in hexadecimal notation; {SHA1_DIGEST_STR_LEN} characters; {SHA1_DIGEST_LEN} bytes)"),
"type": "string",
diff --git a/crates/radicle-protocol/src/fetcher/service.rs b/crates/radicle-protocol/src/fetcher/service.rs
index a0db8147..2a2b4cb5 100644
--- a/crates/radicle-protocol/src/fetcher/service.rs
+++ b/crates/radicle-protocol/src/fetcher/service.rs
@@ -3,11 +3,12 @@ use std::collections::HashMap;
use radicle_core::{NodeId, RepoId};
use crate::fetcher::{
+ RefsToFetch,
state::{
+ Config, FetcherState, QueuedFetch,
command::{self},
- event, Config, FetcherState, QueuedFetch,
+ event,
},
- RefsToFetch,
};
/// Service layer that wraps [`FetcherState`] and manages subscriber coalescing.
diff --git a/crates/radicle-protocol/src/fetcher/test/queue.rs b/crates/radicle-protocol/src/fetcher/test/queue.rs
index ae315b43..8bf6e7a1 100644
--- a/crates/radicle-protocol/src/fetcher/test/queue.rs
+++ b/crates/radicle-protocol/src/fetcher/test/queue.rs
@@ -11,8 +11,8 @@ use radicle::storage::refs::{FeatureLevel, RefsAt};
use radicle_core::RepoId;
use crate::fetcher::{
- state::{MaxQueueSize, QueuedFetch},
FetchConfig,
+ state::{MaxQueueSize, QueuedFetch},
};
impl Arbitrary for QueuedFetch {
diff --git a/crates/radicle-protocol/src/fetcher/test/queue/properties/capacity.rs b/crates/radicle-protocol/src/fetcher/test/queue/properties/capacity.rs
index 4ff9b138..17a5f38c 100644
--- a/crates/radicle-protocol/src/fetcher/test/queue/properties/capacity.rs
+++ b/crates/radicle-protocol/src/fetcher/test/queue/properties/capacity.rs
@@ -1,7 +1,7 @@
use qcheck_macros::quickcheck;
use crate::fetcher::test::queue::helpers::*;
-use crate::fetcher::{state::Enqueue, MaxQueueSize};
+use crate::fetcher::{MaxQueueSize, state::Enqueue};
use crate::fetcher::{Queue, QueuedFetch};
#[quickcheck]
diff --git a/crates/radicle-protocol/src/fetcher/test/queue/properties/equality.rs b/crates/radicle-protocol/src/fetcher/test/queue/properties/equality.rs
index 44f19980..e8d6632b 100644
--- a/crates/radicle-protocol/src/fetcher/test/queue/properties/equality.rs
+++ b/crates/radicle-protocol/src/fetcher/test/queue/properties/equality.rs
@@ -14,9 +14,5 @@ fn symmetric(a: QueuedFetch, b: QueuedFetch) -> bool {
#[quickcheck]
fn transitive(a: QueuedFetch, b: QueuedFetch, c: QueuedFetch) -> bool {
- if a == b && b == c {
- a == c
- } else {
- true
- }
+ if a == b && b == c { a == c } else { true }
}
diff --git a/crates/radicle-protocol/src/fetcher/test/queue/properties/fifo.rs b/crates/radicle-protocol/src/fetcher/test/queue/properties/fifo.rs
index 7742241a..9a98d8b6 100644
--- a/crates/radicle-protocol/src/fetcher/test/queue/properties/fifo.rs
+++ b/crates/radicle-protocol/src/fetcher/test/queue/properties/fifo.rs
@@ -1,8 +1,8 @@
use qcheck_macros::quickcheck;
+use crate::fetcher::QueuedFetch;
use crate::fetcher::state::Enqueue;
use crate::fetcher::test::queue::helpers::*;
-use crate::fetcher::QueuedFetch;
#[quickcheck]
fn ordering(count: u8) -> bool {
diff --git a/crates/radicle-protocol/src/fetcher/test/queue/unit.rs b/crates/radicle-protocol/src/fetcher/test/queue/unit.rs
index ad6b3c1e..0e6f5ef5 100644
--- a/crates/radicle-protocol/src/fetcher/test/queue/unit.rs
+++ b/crates/radicle-protocol/src/fetcher/test/queue/unit.rs
@@ -3,11 +3,11 @@ use std::time::Duration;
use radicle::test::arbitrary;
use radicle_core::RepoId;
-use crate::fetcher::state::Enqueue;
-use crate::fetcher::test::queue::helpers::*;
use crate::fetcher::FetchConfig;
use crate::fetcher::QueuedFetch;
use crate::fetcher::RefsToFetch;
+use crate::fetcher::state::Enqueue;
+use crate::fetcher::test::queue::helpers::*;
#[test]
fn zero_timeout_accepted() {
diff --git a/crates/radicle-protocol/src/service.rs b/crates/radicle-protocol/src/service.rs
index 5eee6ce8..0bf6b405 100644
--- a/crates/radicle-protocol/src/service.rs
+++ b/crates/radicle-protocol/src/service.rs
@@ -42,14 +42,14 @@ use radicle::storage::{RepositoryError, RepositoryInfo, SignedRefsInfo};
use radicle_fetch::policy::SeedingPolicy;
use crate::fetcher;
-use crate::fetcher::service::FetcherService;
use crate::fetcher::FetcherState;
use crate::fetcher::RefsToFetch;
+use crate::fetcher::service::FetcherService;
use crate::service::gossip::Store as _;
use crate::service::message::{
Announcement, AnnouncementMessage, Info, NodeAnnouncement, Ping, RefsAnnouncement, RefsStatus,
};
-use crate::service::policy::{store::Write, Scope};
+use crate::service::policy::{Scope, store::Write};
use radicle::identity::RepoId;
use radicle::node::events::Emitter;
use radicle::node::routing;
@@ -57,7 +57,7 @@ use radicle::node::routing::InsertResult;
use radicle::node::{Address, Features, FetchResult, HostName, Seed, Seeds, SyncStatus, SyncedAt};
use radicle::prelude::*;
use radicle::storage;
-use radicle::storage::{refs::RefsAt, Namespaces, ReadStorage};
+use radicle::storage::{Namespaces, ReadStorage, refs::RefsAt};
// use radicle::worker::fetch;
// use crate::worker::FetchError;
use radicle::crypto;
diff --git a/crates/radicle-protocol/src/service/command.rs b/crates/radicle-protocol/src/service/command.rs
index 85d35258..cd6fb42c 100644
--- a/crates/radicle-protocol/src/service/command.rs
+++ b/crates/radicle-protocol/src/service/command.rs
@@ -4,9 +4,9 @@ use crossbeam_channel::Receiver;
use crossbeam_channel::SendError;
use crossbeam_channel::Sender;
use radicle::crypto::PublicKey;
-use radicle::node::policy::Scope;
use radicle::node::FetchResult;
use radicle::node::Seeds;
+use radicle::node::policy::Scope;
use radicle::node::{Address, Alias, Config, ConnectOptions};
use radicle::storage::refs;
use radicle::storage::refs::RefsAt;
diff --git a/crates/radicle-protocol/src/service/gossip.rs b/crates/radicle-protocol/src/service/gossip.rs
index 45aa0b89..1efe073b 100644
--- a/crates/radicle-protocol/src/service/gossip.rs
+++ b/crates/radicle-protocol/src/service/gossip.rs
@@ -5,8 +5,8 @@ use std::sync::LazyLock;
use super::*;
use crate::bounded::BoundedVec;
-use radicle::node::UserAgent;
use radicle::node::PROTOCOL_VERSION;
+use radicle::node::UserAgent;
pub use store::{AnnouncementId, Error, RelayStatus, Store};
diff --git a/crates/radicle-protocol/src/service/io.rs b/crates/radicle-protocol/src/service/io.rs
index 3c82ee86..60a6c4b5 100644
--- a/crates/radicle-protocol/src/service/io.rs
+++ b/crates/radicle-protocol/src/service/io.rs
@@ -3,16 +3,16 @@ use std::collections::VecDeque;
use localtime::LocalDuration;
use log::*;
use radicle::identity::RepoId;
-use radicle::node::config::FetchPackSizeLimit;
use radicle::node::Address;
use radicle::node::NodeId;
+use radicle::node::config::FetchPackSizeLimit;
use radicle::storage::refs::RefsAt;
use crate::fetcher;
-use crate::service::message::Message;
-use crate::service::session::Session;
use crate::service::DisconnectReason;
use crate::service::Link;
+use crate::service::message::Message;
+use crate::service::session::Session;
use super::gossip;
use super::message::{Announcement, AnnouncementMessage};
diff --git a/crates/radicle-protocol/src/service/limiter.rs b/crates/radicle-protocol/src/service/limiter.rs
index d9867bcd..0246ba17 100644
--- a/crates/radicle-protocol/src/service/limiter.rs
+++ b/crates/radicle-protocol/src/service/limiter.rs
@@ -1,7 +1,7 @@
use std::collections::{HashMap, HashSet};
use localtime::LocalTime;
-use radicle::node::{address, config, HostName, NodeId};
+use radicle::node::{HostName, NodeId, address, config};
/// Peer rate limiter.
///
diff --git a/crates/radicle-protocol/src/service/message.rs b/crates/radicle-protocol/src/service/message.rs
index b53bc3a1..cca54ded 100644
--- a/crates/radicle-protocol/src/service/message.rs
+++ b/crates/radicle-protocol/src/service/message.rs
@@ -482,26 +482,35 @@ impl Message {
};
let msg = match self {
Self::Announcement(Announcement { node, message, .. }) => match message {
- AnnouncementMessage::Node(NodeAnnouncement { addresses, timestamp, .. }) => format!(
+ AnnouncementMessage::Node(NodeAnnouncement {
+ addresses,
+ timestamp,
+ ..
+ }) => format!(
"{verb} node announcement of {node} with {} address(es) {prep} {remote} (t={timestamp})",
addresses.len()
),
- AnnouncementMessage::Refs(RefsAnnouncement { rid, refs, timestamp }) => format!(
+ AnnouncementMessage::Refs(RefsAnnouncement {
+ rid,
+ refs,
+ timestamp,
+ }) => format!(
"{verb} refs announcement of {node} for {rid} with {} remote(s) {prep} {remote} (t={timestamp})",
refs.len()
),
- AnnouncementMessage::Inventory(InventoryAnnouncement { inventory, timestamp }) => {
+ AnnouncementMessage::Inventory(InventoryAnnouncement {
+ inventory,
+ timestamp,
+ }) => {
format!(
"{verb} inventory announcement of {node} with {} item(s) {prep} {remote} (t={timestamp})",
inventory.len()
)
}
},
- Self::Info(Info::RefsAlreadySynced { rid, .. }) => {
- format!(
- "{verb} `refs-already-synced` info {prep} {remote} for {rid}"
- )
- },
+ Self::Info(Info::RefsAlreadySynced { rid, .. }) => {
+ format!("{verb} `refs-already-synced` info {prep} {remote} for {rid}")
+ }
Self::Ping { .. } => format!("{verb} ping {prep} {remote}"),
Self::Pong { .. } => format!("{verb} pong {prep} {remote}"),
Self::Subscribe(Subscribe { .. }) => {
@@ -530,7 +539,7 @@ impl Ping {
/// Maximum number of zero bytes in a pong message.
pub const MAX_PONG_ZEROES: wire::Size =
Message::MAX_SIZE - mem::size_of::<wire::Size>() as wire::Size; // Account for zeroes length
- // prefix.
+ // prefix.
pub fn new(rng: &mut fastrand::Rng) -> Self {
let ponglen = rng.u16(0..Self::MAX_PONG_ZEROES);
diff --git a/crates/radicle-protocol/src/wire.rs b/crates/radicle-protocol/src/wire.rs
index df5cd639..6d5aea8a 100644
--- a/crates/radicle-protocol/src/wire.rs
+++ b/crates/radicle-protocol/src/wire.rs
@@ -85,7 +85,9 @@ pub enum Error {
#[error(transparent)]
Invalid(#[from] Invalid),
- #[error("unexpected end of buffer, requested {requested} more bytes but only {available} are available")]
+ #[error(
+ "unexpected end of buffer, requested {requested} more bytes but only {available} are available"
+ )]
UnexpectedEnd { available: usize, requested: usize },
}
diff --git a/crates/radicle-protocol/src/wire/frame.rs b/crates/radicle-protocol/src/wire/frame.rs
index 7f2bd312..fd8d1509 100644
--- a/crates/radicle-protocol/src/wire/frame.rs
+++ b/crates/radicle-protocol/src/wire/frame.rs
@@ -6,7 +6,7 @@ use bytes::{Buf, BufMut};
use radicle::node::Link;
use crate::service::Message;
-use crate::{wire, wire::varint, wire::varint::VarInt, PROTOCOL_VERSION};
+use crate::{PROTOCOL_VERSION, wire, wire::varint, wire::varint::VarInt};
/// Protocol version strings all start with the magic sequence `rad`, followed
/// by a version number.
diff --git a/crates/radicle-protocol/src/wire/message.rs b/crates/radicle-protocol/src/wire/message.rs
index 99e7e8c0..e8520949 100644
--- a/crates/radicle-protocol/src/wire/message.rs
+++ b/crates/radicle-protocol/src/wire/message.rs
@@ -2,7 +2,7 @@ use std::{mem, net};
use bytes::Buf;
use bytes::BufMut;
-use cypheraddr::{tor, HostName, NetAddr};
+use cypheraddr::{HostName, NetAddr, tor};
use radicle::crypto::Signature;
use radicle::git::Oid;
use radicle::identity::RepoId;
@@ -426,14 +426,14 @@ impl wire::Decode for ZeroBytes {
#[cfg(test)]
mod tests {
use qcheck_macros::quickcheck;
- use radicle::node::device::Device;
use radicle::node::UserAgent;
+ use radicle::node::device::Device;
use radicle::storage::refs::RefsAt;
use radicle::test::arbitrary;
use crate::deserializer::Deserializer;
use crate::prop_roundtrip;
- use crate::wire::{roundtrip, Encode as _};
+ use crate::wire::{Encode as _, roundtrip};
use super::*;
diff --git a/crates/radicle-protocol/src/worker/fetch/error.rs b/crates/radicle-protocol/src/worker/fetch/error.rs
index 71fc0cf9..caad8b05 100644
--- a/crates/radicle-protocol/src/worker/fetch/error.rs
+++ b/crates/radicle-protocol/src/worker/fetch/error.rs
@@ -19,7 +19,9 @@ pub enum Fetch {
Repository(#[from] radicle::storage::RepositoryError),
#[error(transparent)]
RefsDb(Box<radicle::node::refs::Error>),
- #[error("validation of the storage repository failed: the delegates {delegates:?} failed to validate to meet a threshold of {threshold}")]
+ #[error(
+ "validation of the storage repository failed: the delegates {delegates:?} failed to validate to meet a threshold of {threshold}"
+ )]
Validation {
threshold: usize,
delegates: Vec<String>,
diff --git a/crates/radicle-remote-helper/src/fetch.rs b/crates/radicle-remote-helper/src/fetch.rs
index 04044d2f..634078c7 100644
--- a/crates/radicle-remote-helper/src/fetch.rs
+++ b/crates/radicle-remote-helper/src/fetch.rs
@@ -5,8 +5,8 @@ use thiserror::Error;
use radicle::git;
-use crate::service::GitService;
use crate::Verbosity;
+use crate::service::GitService;
#[derive(Debug, Error)]
pub(super) enum Error {
@@ -24,7 +24,9 @@ pub(super) enum Error {
InvalidOid(#[from] radicle::git::ParseOidError),
/// Error fetching pack from storage to working copy.
- #[error("`git fetch-pack` failed with exit status {status}, stderr and stdout follow:\n{stderr}\n{stdout}")]
+ #[error(
+ "`git fetch-pack` failed with exit status {status}, stderr and stdout follow:\n{stderr}\n{stdout}"
+ )]
FetchPackFailed {
status: ExitStatus,
stderr: String,
diff --git a/crates/radicle-remote-helper/src/list.rs b/crates/radicle-remote-helper/src/list.rs
index ec4fe4f5..0d0fca77 100644
--- a/crates/radicle-remote-helper/src/list.rs
+++ b/crates/radicle-remote-helper/src/list.rs
@@ -2,12 +2,12 @@ use radicle::patch::cache::Patches as _;
use radicle::profile;
use thiserror::Error;
+use radicle::Profile;
use radicle::cob;
use radicle::git;
use radicle::prelude::NodeId;
-use radicle::storage::git::transport::local::Url;
use radicle::storage::ReadRepository;
-use radicle::Profile;
+use radicle::storage::git::transport::local::Url;
#[derive(Debug, Error)]
pub(super) enum Error {
diff --git a/crates/radicle-remote-helper/src/main.rs b/crates/radicle-remote-helper/src/main.rs
index 86defaf9..aca17228 100644
--- a/crates/radicle-remote-helper/src/main.rs
+++ b/crates/radicle-remote-helper/src/main.rs
@@ -34,8 +34,8 @@ use radicle::prelude::NodeId;
use radicle::storage::git::transport::local::{Url, UrlError};
use radicle::storage::{ReadRepository, WriteStorage};
use radicle::version::Version;
+use radicle::{Profile, git, storage};
use radicle::{cob, profile};
-use radicle::{git, storage, Profile};
use radicle_cli::terminal as cli;
use crate::protocol::{Command, Line, LineReader};
diff --git a/crates/radicle-remote-helper/src/push.rs b/crates/radicle-remote-helper/src/push.rs
index 953513b0..56d5f1b9 100644
--- a/crates/radicle-remote-helper/src/push.rs
+++ b/crates/radicle-remote-helper/src/push.rs
@@ -13,6 +13,7 @@ use radicle::identity::doc::CanonicalRefsError;
use radicle::node::device::Device;
use thiserror::Error;
+use radicle::Profile;
use radicle::cob;
use radicle::cob::object::ParseObjectId;
use radicle::cob::patch;
@@ -25,13 +26,12 @@ use radicle::node::NodeId;
use radicle::storage;
use radicle::storage::git::transport::local::Url;
use radicle::storage::{ReadRepository, SignRepository as _, WriteRepository};
-use radicle::Profile;
use radicle::{git, rad};
use radicle_cli::terminal as term;
use crate::service::GitService;
use crate::service::NodeSession;
-use crate::{hint, warn, Options, Verbosity};
+use crate::{Options, Verbosity, hint, warn};
#[derive(Debug, Error)]
pub(super) enum Error {
@@ -39,7 +39,9 @@ pub(super) enum Error {
#[error("cannot push to remote namespace owned by {0}")]
KeyMismatch(Did),
/// No public key is given
- #[error("no public key given as a remote namespace, perhaps you are attempting to push to restricted refs")]
+ #[error(
+ "no public key given as a remote namespace, perhaps you are attempting to push to restricted refs"
+ )]
NoKey,
/// User tried to delete the canonical branch.
#[error("refusing to delete default branch ref '{0}'")]
@@ -116,7 +118,9 @@ pub(super) enum Error {
FindObjects(#[from] git::canonical::error::FindObjectsError),
/// Error sending pack from the working copy to storage.
- #[error("`git send-pack` failed with exit status {status}, stderr and stdout follow:\n{stderr}\n{stdout}")]
+ #[error(
+ "`git send-pack` failed with exit status {status}, stderr and stdout follow:\n{stderr}\n{stdout}"
+ )]
SendPackFailed {
status: ExitStatus,
stderr: String,
diff --git a/crates/radicle-remote-helper/src/push/canonical.rs b/crates/radicle-remote-helper/src/push/canonical.rs
index ce524bac..7f9f3876 100644
--- a/crates/radicle-remote-helper/src/push/canonical.rs
+++ b/crates/radicle-remote-helper/src/push/canonical.rs
@@ -1,8 +1,8 @@
use radicle::git;
use radicle::git::canonical;
+use radicle::git::canonical::QuorumWithConvergence;
use radicle::git::canonical::effects;
use radicle::git::canonical::error::QuorumError;
-use radicle::git::canonical::QuorumWithConvergence;
use radicle::prelude::Did;
/// Validates a vote to update a canonical reference during push.
diff --git a/crates/radicle-remote-helper/src/push/error.rs b/crates/radicle-remote-helper/src/push/error.rs
index f0e71e19..62f69c81 100644
--- a/crates/radicle-remote-helper/src/push/error.rs
+++ b/crates/radicle-remote-helper/src/push/error.rs
@@ -26,7 +26,9 @@ pub(crate) struct GraphDescendant {
#[derive(Debug, Error)]
/// Head being pushed diverges from canonical head.
-#[error("refusing to update canonical reference to commit that is not a descendant of current canonical head")]
+#[error(
+ "refusing to update canonical reference to commit that is not a descendant of current canonical head"
+)]
pub(crate) struct HeadsDiverge {
head: git::Oid,
canonical: git::Oid,
diff --git a/crates/radicle-remote-helper/src/service.rs b/crates/radicle-remote-helper/src/service.rs
index c2c1cd15..668f88c8 100644
--- a/crates/radicle-remote-helper/src/service.rs
+++ b/crates/radicle-remote-helper/src/service.rs
@@ -3,11 +3,11 @@ use std::io::IsTerminal;
use std::path::Path;
use std::process;
+use radicle::Profile;
use radicle::explorer::ExplorerResource;
use radicle::git;
use radicle::node::Handle;
use radicle::storage;
-use radicle::Profile;
use radicle_cli::node::{SyncError, SyncReporting, SyncSettings};
use radicle_cli::terminal as term;
diff --git a/crates/radicle-signals/src/windows.rs b/crates/radicle-signals/src/windows.rs
index 23822595..18eb156a 100644
--- a/crates/radicle-signals/src/windows.rs
+++ b/crates/radicle-signals/src/windows.rs
@@ -3,13 +3,13 @@ use std::sync::OnceLock;
use crossbeam_channel as chan;
-use ::windows::core::BOOL;
use ::windows::Win32::System::Console::{
- SetConsoleCtrlHandler, CTRL_BREAK_EVENT, CTRL_CLOSE_EVENT, CTRL_C_EVENT, CTRL_LOGOFF_EVENT,
- CTRL_SHUTDOWN_EVENT,
+ CTRL_BREAK_EVENT, CTRL_C_EVENT, CTRL_CLOSE_EVENT, CTRL_LOGOFF_EVENT, CTRL_SHUTDOWN_EVENT,
+ SetConsoleCtrlHandler,
};
+use ::windows::core::BOOL;
-use crate::{already_installed, Signal};
+use crate::{Signal, already_installed};
static NOTIFY: OnceLock<chan::Sender<Signal>> = OnceLock::new();
diff --git a/crates/radicle-ssh/src/agent/client.rs b/crates/radicle-ssh/src/agent/client.rs
index ffc1fa47..510b5f88 100644
--- a/crates/radicle-ssh/src/agent/client.rs
+++ b/crates/radicle-ssh/src/agent/client.rs
@@ -11,8 +11,8 @@ pub use winpipe::WinStream as Stream;
use thiserror::Error;
use zeroize::Zeroize as _;
-use crate::agent::msg;
use crate::agent::Constraint;
+use crate::agent::msg;
use crate::encoding::{self, Encodable};
use crate::encoding::{Buffer, Encoding, Reader};
@@ -97,13 +97,13 @@ impl AgentClient<Stream> {
return Err(Error::BadAuthSock {
path: path.display().to_string(),
source: err,
- })
+ });
}
Err(err) => {
return Err(Error::Connect {
path: path.display().to_string(),
source: err,
- })
+ });
}
Ok(stream) => stream,
};
diff --git a/crates/radicle-systemd/src/credential.rs b/crates/radicle-systemd/src/credential.rs
index d367b620..999eb407 100644
--- a/crates/radicle-systemd/src/credential.rs
+++ b/crates/radicle-systemd/src/credential.rs
@@ -1,7 +1,7 @@
-use std::env::{var, VarError::*};
+use std::env::{VarError::*, var};
use std::ffi::OsString;
use std::fmt;
-use std::path::{is_separator, PathBuf};
+use std::path::{PathBuf, is_separator};
const CREDENTIALS_DIRECTORY: &str = "CREDENTIALS_DIRECTORY";
@@ -39,8 +39,12 @@ impl fmt::Display for PathError {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
use PathError::*;
match self {
- InvalidCredentialId { id } => write!(f, "The systemd credential ID '{id}' is invalid."),
- EnvVarNotUnicode { os } => write!(f, "The value of environment variable '{CREDENTIALS_DIRECTORY}' is not valid Unicode (it lossily translates to '{}').", os.to_string_lossy()),
- }
+ InvalidCredentialId { id } => write!(f, "The systemd credential ID '{id}' is invalid."),
+ EnvVarNotUnicode { os } => write!(
+ f,
+ "The value of environment variable '{CREDENTIALS_DIRECTORY}' is not valid Unicode (it lossily translates to '{}').",
+ os.to_string_lossy()
+ ),
+ }
}
}
diff --git a/crates/radicle-systemd/src/journal.rs b/crates/radicle-systemd/src/journal.rs
index 4d53df52..a75972ef 100644
--- a/crates/radicle-systemd/src/journal.rs
+++ b/crates/radicle-systemd/src/journal.rs
@@ -1,4 +1,4 @@
-use systemd_journal_logger::{connected_to_journal, JournalLog};
+use systemd_journal_logger::{JournalLog, connected_to_journal};
/// If the current process is directly connected to the systemd journal,
/// return a logger that will write to it.
diff --git a/crates/radicle-systemd/src/listen.rs b/crates/radicle-systemd/src/listen.rs
index 500671b1..aa808fb9 100644
--- a/crates/radicle-systemd/src/listen.rs
+++ b/crates/radicle-systemd/src/listen.rs
@@ -1,4 +1,4 @@
-use std::env::{remove_var, var, VarError};
+use std::env::{VarError, remove_var, var};
use std::os::fd::RawFd;
use std::process::id;
diff --git a/crates/radicle-term/src/ansi.rs b/crates/radicle-term/src/ansi.rs
index 00ea7d7d..b1e9bc76 100644
--- a/crates/radicle-term/src/ansi.rs
+++ b/crates/radicle-term/src/ansi.rs
@@ -10,8 +10,8 @@ mod style;
mod tests;
pub use color::Color;
-pub use paint::paint;
pub use paint::Filled;
pub use paint::Paint;
pub use paint::TerminalFile;
+pub use paint::paint;
pub use style::Style;
diff --git a/crates/radicle-term/src/ansi/paint.rs b/crates/radicle-term/src/ansi/paint.rs
index 5ed8a11b..dfb22b58 100644
--- a/crates/radicle-term/src/ansi/paint.rs
+++ b/crates/radicle-term/src/ansi/paint.rs
@@ -1,6 +1,6 @@
use std::io::IsTerminal as _;
-use std::sync::atomic::{AtomicBool, AtomicI32};
use std::sync::LazyLock;
+use std::sync::atomic::{AtomicBool, AtomicI32};
use std::{fmt, sync};
use super::color::Color;
diff --git a/crates/radicle-term/src/element.rs b/crates/radicle-term/src/element.rs
index feee19a9..7e1ebada 100644
--- a/crates/radicle-term/src/element.rs
+++ b/crates/radicle-term/src/element.rs
@@ -4,7 +4,7 @@ use std::ops::Deref;
use std::{io, vec};
use crate::cell::Cell;
-use crate::{viewport, Color, Filled, Label, Style};
+use crate::{Color, Filled, Label, Style, viewport};
/// Rendering constraint.
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
diff --git a/crates/radicle-term/src/io.rs b/crates/radicle-term/src/io.rs
index 619631fe..ff74445a 100644
--- a/crates/radicle-term/src/io.rs
+++ b/crates/radicle-term/src/io.rs
@@ -4,15 +4,15 @@ use std::process::Stdio;
use std::sync::LazyLock;
use std::{env, fmt, io, process};
+use inquire::InquireError;
use inquire::ui::{ErrorMessageRenderConfig, StyleSheet, Styled};
use inquire::validator;
-use inquire::InquireError;
-use inquire::{ui::Color, ui::RenderConfig, Confirm, CustomType, Password};
+use inquire::{Confirm, CustomType, Password, ui::Color, ui::RenderConfig};
use thiserror::Error;
use zeroize::Zeroizing;
use crate::format;
-use crate::{style, Paint, Size};
+use crate::{Paint, Size, style};
pub use inquire;
pub use inquire::Select;
diff --git a/crates/radicle-term/src/label.rs b/crates/radicle-term/src/label.rs
index 10e44058..b26349cc 100644
--- a/crates/radicle-term/src/label.rs
+++ b/crates/radicle-term/src/label.rs
@@ -1,6 +1,6 @@
use std::fmt;
-use crate::{cell::Cell, Color, Constraint, Element, Filled, Line, Paint, Size, Style};
+use crate::{Color, Constraint, Element, Filled, Line, Paint, Size, Style, cell::Cell};
/// A styled string that does not contain any `'\n'` and implements [`Element`] and [`Cell`].
#[derive(Clone, Default, Debug)]
diff --git a/crates/radicle-term/src/lib.rs b/crates/radicle-term/src/lib.rs
index 2113c6f7..d53ac06b 100644
--- a/crates/radicle-term/src/lib.rs
+++ b/crates/radicle-term/src/lib.rs
@@ -16,16 +16,16 @@ use std::fmt;
use std::io::IsTerminal;
pub use ansi::Color;
-pub use ansi::{paint, Filled, Paint, Style, TerminalFile};
+pub use ansi::{Filled, Paint, Style, TerminalFile, paint};
pub use editor::Editor;
pub use element::{Constraint, Element, Line, Size};
pub use hstack::HStack;
pub use inquire::ui::Styled;
pub use io::*;
-pub use label::{label, Label};
-pub use spinner::{spinner, spinner_to, Spinner};
+pub use label::{Label, label};
+pub use spinner::{Spinner, spinner, spinner_to};
pub use table::{Table, TableOptions};
-pub use textarea::{textarea, TextArea};
+pub use textarea::{TextArea, textarea};
pub use vstack::{VStack, VStackOptions};
#[derive(Debug, PartialEq, Eq, Copy, Clone, Default)]
@@ -49,11 +49,7 @@ impl Interactive {
}
pub fn confirm(&self, prompt: impl fmt::Display) -> bool {
- if self.yes() {
- confirm(prompt)
- } else {
- true
- }
+ if self.yes() { confirm(prompt) } else { true }
}
}
@@ -68,11 +64,7 @@ impl From<Interactive> for bool {
impl From<bool> for Interactive {
fn from(b: bool) -> Self {
- if b {
- Interactive::Yes
- } else {
- Interactive::No
- }
+ if b { Interactive::Yes } else { Interactive::No }
}
}
diff --git a/crates/radicle-term/src/textarea.rs b/crates/radicle-term/src/textarea.rs
index f115f9c5..af6c0005 100644
--- a/crates/radicle-term/src/textarea.rs
+++ b/crates/radicle-term/src/textarea.rs
@@ -1,4 +1,4 @@
-use crate::{cell::Cell, Constraint, Element, Line, Paint, Size};
+use crate::{Constraint, Element, Line, Paint, Size, cell::Cell};
/// Default text wrap width.
pub const DEFAULT_WRAP: usize = 80;
diff --git a/crates/radicle-windows/src/jobs.rs b/crates/radicle-windows/src/jobs.rs
index 82ba3863..22a9ad87 100644
--- a/crates/radicle-windows/src/jobs.rs
+++ b/crates/radicle-windows/src/jobs.rs
@@ -2,11 +2,11 @@ use std::io;
use std::os::windows::io::AsRawHandle as _;
use windows::{
- core::PCWSTR,
Win32::{
Foundation::{CloseHandle, HANDLE},
System::JobObjects::{AssignProcessToJobObject, CreateJobObjectW, TerminateJobObject},
},
+ core::PCWSTR,
};
use thiserror::Error;
diff --git a/crates/radicle/src/cob.rs b/crates/radicle/src/cob.rs
index 7892bd41..c17a50dd 100644
--- a/crates/radicle/src/cob.rs
+++ b/crates/radicle/src/cob.rs
@@ -16,13 +16,13 @@ pub mod test;
#[cfg(test)]
pub use radicle_cob::stable;
-pub use cache::{migrate, MigrateCallback};
+pub use cache::{MigrateCallback, migrate};
pub use common::*;
pub use op::{ActorId, Op};
pub use radicle_cob::{
- change, history::EntryId, object, object::collaboration::error, type_name::TypeNameParse,
CollaborativeObject, Contents, Create, Embed, Entry, Evaluate, History, Manifest, ObjectId,
- Store, TypeName, Update, Updated, Version,
+ Store, TypeName, Update, Updated, Version, change, history::EntryId, object,
+ object::collaboration::error, type_name::TypeNameParse,
};
pub use radicle_cob::{create, get, list, remove, update};
diff --git a/crates/radicle/src/cob/common.rs b/crates/radicle/src/cob/common.rs
index 0a053b5c..56356bc0 100644
--- a/crates/radicle/src/cob/common.rs
+++ b/crates/radicle/src/cob/common.rs
@@ -4,7 +4,7 @@ use std::ops::{Deref, Range};
use std::path::PathBuf;
use std::str::FromStr;
-use base64::prelude::{Engine, BASE64_STANDARD};
+use base64::prelude::{BASE64_STANDARD, Engine};
use localtime::LocalTime;
use serde::{Deserialize, Serialize};
use thiserror::Error;
@@ -454,11 +454,7 @@ pub enum Authorization {
impl From<bool> for Authorization {
fn from(value: bool) -> Self {
- if value {
- Self::Allow
- } else {
- Self::Deny
- }
+ if value { Self::Allow } else { Self::Deny }
}
}
diff --git a/crates/radicle/src/cob/external.rs b/crates/radicle/src/cob/external.rs
index 9014b46f..d3ff9535 100644
--- a/crates/radicle/src/cob/external.rs
+++ b/crates/radicle/src/cob/external.rs
@@ -87,7 +87,7 @@ use std::process::{Command, Stdio};
use serde::{Deserialize, Serialize};
use thiserror::Error;
-use serde_json::{from_slice, to_writer, Error as JsonError, Map, Value};
+use serde_json::{Error as JsonError, Map, Value, from_slice, to_writer};
use crate::cob::object::collaboration::Evaluate;
use crate::cob::op::{Op as CobOp, OpEncodingError};
diff --git a/crates/radicle/src/cob/identity.rs b/crates/radicle/src/cob/identity.rs
index 5732dbc0..e8bbadf9 100644
--- a/crates/radicle/src/cob/identity.rs
+++ b/crates/radicle/src/cob/identity.rs
@@ -10,19 +10,18 @@ use thiserror::Error;
use crate::git;
use crate::git::Oid;
use crate::identity::doc::Doc;
-use crate::node::device::Device;
use crate::node::NodeId;
+use crate::node::device::Device;
use crate::storage;
use crate::{
cob,
cob::{
- op, store,
+ ActorId, Timestamp, Uri, op, store,
store::{Cob, CobAction, Transaction},
- ActorId, Timestamp, Uri,
},
identity::{
- doc::{DocError, RepoId},
Did,
+ doc::{DocError, RepoId},
},
storage::{ReadRepository, RepositoryError, WriteRepository},
};
@@ -1074,12 +1073,12 @@ mod test {
use crate::cob::{self, Title};
use crate::crypto::PublicKey;
+ use crate::identity::Visibility;
use crate::identity::did::Did;
use crate::identity::doc::PayloadId;
- use crate::identity::Visibility;
use crate::rad;
- use crate::storage::git::Storage;
use crate::storage::ReadStorage;
+ use crate::storage::git::Storage;
use crate::test::fixtures;
use crate::test::setup::{Network, NodeWithRepo};
diff --git a/crates/radicle/src/cob/issue.rs b/crates/radicle/src/cob/issue.rs
index 1a3ffffb..ee438c6e 100644
--- a/crates/radicle/src/cob/issue.rs
+++ b/crates/radicle/src/cob/issue.rs
@@ -13,11 +13,11 @@ use crate::cob::common::{Author, Authorization, Label, Reaction, Timestamp, Uri}
use crate::cob::store::Transaction;
use crate::cob::store::{Cob, CobAction};
use crate::cob::thread::{Comment, CommentId, Thread};
-use crate::cob::{op, store, ActorId, Embed, EntryId, ObjectId, TypeName};
-use crate::cob::{thread, TitleError};
+use crate::cob::{ActorId, Embed, EntryId, ObjectId, TypeName, op, store};
+use crate::cob::{TitleError, thread};
use crate::identity::doc::DocError;
-use crate::node::device::Device;
use crate::node::NodeId;
+use crate::node::device::Device;
use crate::prelude::{Did, Doc, ReadRepository, RepoId};
use crate::storage;
use crate::storage::{HasRepoId, RepositoryError, WriteRepository};
@@ -981,7 +981,7 @@ mod test {
use pretty_assertions::assert_eq;
use super::*;
- use crate::cob::{store::CobWithType, ActorId, Reaction};
+ use crate::cob::{ActorId, Reaction, store::CobWithType};
use crate::git::Oid;
use crate::issue::cache::Issues as _;
use crate::test::arbitrary;
diff --git a/crates/radicle/src/cob/issue/cache.rs b/crates/radicle/src/cob/issue/cache.rs
index 70f5ac6f..08cef436 100644
--- a/crates/radicle/src/cob/issue/cache.rs
+++ b/crates/radicle/src/cob/issue/cache.rs
@@ -9,8 +9,8 @@ use crate::cob::cache;
use crate::cob::cache::{Remove, StoreReader, StoreWriter, Update};
use crate::cob::store;
use crate::cob::{Embed, Label, ObjectId, TypeName, Uri};
-use crate::node::device::Device;
use crate::node::NodeId;
+use crate::node::device::Device;
use crate::prelude::{Did, RepoId};
use crate::storage::{HasRepoId, ReadRepository, RepositoryError, SignRepository, WriteRepository};
diff --git a/crates/radicle/src/cob/op.rs b/crates/radicle/src/cob/op.rs
index b9cbbd3b..e6439ad9 100644
--- a/crates/radicle/src/cob/op.rs
+++ b/crates/radicle/src/cob/op.rs
@@ -122,10 +122,10 @@ impl<A> Op<A> {
pub fn manifest_of<S>(store: &S, id: &git::Oid) -> Result<Manifest, ManifestError>
where
S: cob::change::Storage<
- ObjectId = git::Oid,
- Parent = git::Oid,
- Signatures = crypto::ssh::ExtendedSignature,
- >,
+ ObjectId = git::Oid,
+ Parent = git::Oid,
+ Signatures = crypto::ssh::ExtendedSignature,
+ >,
{
store.manifest_of(id).map_err(|err| ManifestError {
object: *id,
@@ -137,10 +137,10 @@ impl<A> Op<A> {
pub fn load<S>(store: &S, id: git::Oid) -> Result<Self, LoadError>
where
S: cob::change::Storage<
- ObjectId = git::Oid,
- Parent = git::Oid,
- Signatures = crypto::ssh::ExtendedSignature,
- >,
+ ObjectId = git::Oid,
+ Parent = git::Oid,
+ Signatures = crypto::ssh::ExtendedSignature,
+ >,
for<'de> A: serde::Deserialize<'de>,
{
let entry = store.load(id).map_err(|err| LoadError::Load {
diff --git a/crates/radicle/src/cob/patch.rs b/crates/radicle/src/cob/patch.rs
index 98214b9b..bb5ae28c 100644
--- a/crates/radicle/src/cob/patch.rs
+++ b/crates/radicle/src/cob/patch.rs
@@ -25,11 +25,11 @@ use crate::cob::store::{Cob, CobAction};
use crate::cob::thread;
use crate::cob::thread::Thread;
use crate::cob::thread::{Comment, CommentId, Edit, Reactions};
-use crate::cob::{op, store, ActorId, Embed, EntryId, ObjectId, TypeName, Uri};
+use crate::cob::{ActorId, Embed, EntryId, ObjectId, TypeName, Uri, op, store};
use crate::crypto::PublicKey;
use crate::git;
-use crate::identity::doc::{DocAt, DocError};
use crate::identity::PayloadError;
+use crate::identity::doc::{DocAt, DocError};
use crate::node::device::Device;
use crate::prelude::*;
use crate::storage;
@@ -2868,7 +2868,7 @@ mod ser {
use serde::ser::SerializeSeq;
- use crate::cob::{thread::Reactions, ActorId, CodeLocation};
+ use crate::cob::{ActorId, CodeLocation, thread::Reactions};
/// Serialize a `Revision`'s reaction as an object containing the
/// `location`, `emoji`, and all `authors` that have performed the
diff --git a/crates/radicle/src/cob/patch/actions.rs b/crates/radicle/src/cob/patch/actions.rs
index 67f6cfc1..17a2405f 100644
--- a/crates/radicle/src/cob/patch/actions.rs
+++ b/crates/radicle/src/cob/patch/actions.rs
@@ -5,9 +5,9 @@
use serde::{Deserialize, Serialize};
-use crate::cob::{thread::Edit, ActorId, Embed, Label, Timestamp, Uri};
+use crate::cob::{ActorId, Embed, Label, Timestamp, Uri, thread::Edit};
-use super::{lookup, Error, Patch, ReviewId, Verdict};
+use super::{Error, Patch, ReviewId, Verdict, lookup};
/// A review edit that keeps track of the different versions of actions.
///
diff --git a/crates/radicle/src/cob/patch/cache.rs b/crates/radicle/src/cob/patch/cache.rs
index c6a527f0..0f17c12d 100644
--- a/crates/radicle/src/cob/patch/cache.rs
+++ b/crates/radicle/src/cob/patch/cache.rs
@@ -712,7 +712,7 @@ mod tests {
use crate::cob::cache::{Store, Update, Write};
use crate::cob::thread::{Comment, Thread};
- use crate::cob::{migrate, Author, Title};
+ use crate::cob::{Author, Title, migrate};
use crate::patch::{
ByRevision, MergeTarget, Patch, PatchCounts, PatchId, Revision, RevisionId, State, Status,
};
diff --git a/crates/radicle/src/cob/patch/encoding/review.rs b/crates/radicle/src/cob/patch/encoding/review.rs
index bb60b0f1..ae626eff 100644
--- a/crates/radicle/src/cob/patch/encoding/review.rs
+++ b/crates/radicle/src/cob/patch/encoding/review.rs
@@ -127,7 +127,7 @@ mod test {
use serde_json::json;
use crate::{
- cob::{thread::Edit, Timestamp},
+ cob::{Timestamp, thread::Edit},
patch,
};
diff --git a/crates/radicle/src/cob/store.rs b/crates/radicle/src/cob/store.rs
index cf5ffb42..88653069 100644
--- a/crates/radicle/src/cob/store.rs
+++ b/crates/radicle/src/cob/store.rs
@@ -13,8 +13,8 @@ use crate::cob::{Create, Embed, EntryId, ObjectId, TypeName, Update, Updated, Ur
use crate::git;
use crate::node::device::Device;
use crate::prelude::*;
-use crate::storage::git as storage;
use crate::storage::SignRepository;
+use crate::storage::git as storage;
use crate::{cob, identity};
pub trait CobAction {
@@ -129,7 +129,9 @@ pub enum Error {
#[source]
err: git::raw::Error,
},
- #[error("transaction already contains action {0} which produces an identifier, denying to add action {1} which also produces an identifier")]
+ #[error(
+ "transaction already contains action {0} which produces an identifier, denying to add action {1} which also produces an identifier"
+ )]
ClashingIdentifiers(String, String),
}
@@ -344,7 +346,8 @@ where
/// Return all objects.
pub fn all(
&self,
- ) -> Result<impl ExactSizeIterator<Item = Result<(ObjectId, T), Error>> + use<'a, T, R>, Error> {
+ ) -> Result<impl ExactSizeIterator<Item = Result<(ObjectId, T), Error>> + use<'a, T, R>, Error>
+ {
let raw = cob::list::<T, _>(self.repo, self.type_name)?;
Ok(raw.into_iter().map(|o| Ok((*o.id(), o.object))))
diff --git a/crates/radicle/src/cob/stream/iter.rs b/crates/radicle/src/cob/stream/iter.rs
index ef6c5951..760b354c 100644
--- a/crates/radicle/src/cob/stream/iter.rs
+++ b/crates/radicle/src/cob/stream/iter.rs
@@ -4,11 +4,11 @@ use serde::Deserialize;
use crate::cob::{Op, TypeName};
use crate::git;
-use crate::git::fmt::refspec::PatternString;
use crate::git::Oid;
+use crate::git::fmt::refspec::PatternString;
-use super::error;
use super::CobRange;
+use super::error;
/// A `Walk` specifies a range to construct a [`WalkIter`].
#[derive(Clone, Debug)]
diff --git a/crates/radicle/src/cob/test.rs b/crates/radicle/src/cob/test.rs
index 8ecad448..7a1c9654 100644
--- a/crates/radicle/src/cob/test.rs
+++ b/crates/radicle/src/cob/test.rs
@@ -9,8 +9,8 @@ use serde::{Deserialize, Serialize};
use crate::cob::op::Op;
use crate::cob::patch::Patch;
use crate::cob::store::encoding;
-use crate::cob::{patch, Title};
use crate::cob::{Entry, History, Manifest, Timestamp, Version};
+use crate::cob::{Title, patch};
use crate::crypto::Signer;
use crate::git::Oid;
use crate::node::device::Device;
@@ -257,7 +257,7 @@ fn encoded<T: Cob, G: Signer>(
) -> (Vec<u8>, crate::git::Oid) {
use radicle_git_metadata::{
author::{Author, Time},
- commit::{headers::Headers, trailers::OwnedTrailer, CommitData},
+ commit::{CommitData, headers::Headers, trailers::OwnedTrailer},
};
let data = encoding::encode(action).unwrap();
diff --git a/crates/radicle/src/cob/thread.rs b/crates/radicle/src/cob/thread.rs
index b0be343b..572c4528 100644
--- a/crates/radicle/src/cob/thread.rs
+++ b/crates/radicle/src/cob/thread.rs
@@ -3,13 +3,13 @@ use std::collections::{BTreeMap, BTreeSet};
use std::str::FromStr;
use std::sync::LazyLock;
-use serde::{ser::SerializeStruct, Deserialize, Serialize};
+use serde::{Deserialize, Serialize, ser::SerializeStruct};
use thiserror::Error;
use crate::cob;
use crate::cob::common::{Reaction, Timestamp, Uri};
use crate::cob::store::Cob;
-use crate::cob::{op, ActorId, Embed, EntryId, Op};
+use crate::cob::{ActorId, Embed, EntryId, Op, op};
use crate::git;
use crate::prelude::ReadRepository;
@@ -633,8 +633,8 @@ mod tests {
use crate as radicle;
use crate::cob::store::Cob;
use crate::cob::test;
- use crate::crypto::test::signer::MockSigner;
use crate::crypto::Signer;
+ use crate::crypto::test::signer::MockSigner;
use crate::node::device::Device;
use crate::profile::env;
use crate::test::arbitrary;
diff --git a/crates/radicle/src/git.rs b/crates/radicle/src/git.rs
index 0cfd2de1..a1f34645 100644
--- a/crates/radicle/src/git.rs
+++ b/crates/radicle/src/git.rs
@@ -6,7 +6,7 @@ use std::path::Path;
use std::process::Command;
use std::str::FromStr;
-pub use radicle_oid::{str::ParseOidError, Oid};
+pub use radicle_oid::{Oid, str::ParseOidError};
pub extern crate radicle_git_ref_format as fmt;
@@ -705,20 +705,12 @@ pub fn set_upstream(
let branch_remote = format!("branch.{branch}.remote");
let branch_merge = format!("branch.{branch}.merge");
- config.remove_multivar(&branch_remote, ".*").or_else(|e| {
- if e.is_not_found() {
- Ok(())
- } else {
- Err(e)
- }
- })?;
- config.remove_multivar(&branch_merge, ".*").or_else(|e| {
- if e.is_not_found() {
- Ok(())
- } else {
- Err(e)
- }
- })?;
+ config
+ .remove_multivar(&branch_remote, ".*")
+ .or_else(|e| if e.is_not_found() { Ok(()) } else { Err(e) })?;
+ config
+ .remove_multivar(&branch_merge, ".*")
+ .or_else(|e| if e.is_not_found() { Ok(()) } else { Err(e) })?;
config.set_multivar(&branch_remote, ".*", remote)?;
config.set_multivar(&branch_merge, ".*", merge)?;
@@ -768,7 +760,7 @@ pub mod process {
use crate::storage::ReadRepository;
- use super::{run, Oid, Verbosity};
+ use super::{Oid, Verbosity, run};
/// Perform a local fetch, from storage using `git fetch-pack`.
///
diff --git a/crates/radicle/src/git/canonical/convergence.rs b/crates/radicle/src/git/canonical/convergence.rs
index ca5e2dea..90fcba22 100644
--- a/crates/radicle/src/git/canonical/convergence.rs
+++ b/crates/radicle/src/git/canonical/convergence.rs
@@ -3,7 +3,7 @@ use std::{fmt, ops::ControlFlow};
use crate::git::Oid;
use crate::prelude::Did;
-use super::{effects, error, Object};
+use super::{Object, effects, error};
/// Checks for convergence and ensures that compared objects are of the same
/// type, i.e. commit or tag, to the [`Candidate`].
diff --git a/crates/radicle/src/git/canonical/effects.rs b/crates/radicle/src/git/canonical/effects.rs
index de70f9d5..b63a8118 100644
--- a/crates/radicle/src/git/canonical/effects.rs
+++ b/crates/radicle/src/git/canonical/effects.rs
@@ -1,9 +1,9 @@
use std::collections::{BTreeMap, BTreeSet};
use crate::git;
+use crate::git::Oid;
use crate::git::fmt::Qualified;
use crate::git::raw::ErrorExt as _;
-use crate::git::Oid;
use crate::prelude::Did;
use super::{FoundObjects, GraphAheadBehind, MergeBase, Object};
diff --git a/crates/radicle/src/git/canonical/error.rs b/crates/radicle/src/git/canonical/error.rs
index d6b1529c..b482f32d 100644
--- a/crates/radicle/src/git/canonical/error.rs
+++ b/crates/radicle/src/git/canonical/error.rs
@@ -2,20 +2,26 @@ use thiserror::Error;
use crate::git::Oid;
-use super::{effects, ObjectType};
+use super::{ObjectType, effects};
pub use effects::{FindObjectsError, MergeBaseError};
#[derive(Debug, Error)]
pub enum QuorumError {
- #[error("could not determine target for canonical reference '{refname}', found objects of different types")]
+ #[error(
+ "could not determine target for canonical reference '{refname}', found objects of different types"
+ )]
DifferentTypes { refname: String },
#[error(transparent)]
Convergence(#[from] ConvergesError),
#[error(transparent)]
MergeBase(#[from] MergeBaseError),
- #[error("could not determine target for canonical reference '{refname}', no object with at least {threshold} vote(s) found (threshold not met)")]
+ #[error(
+ "could not determine target for canonical reference '{refname}', no object with at least {threshold} vote(s) found (threshold not met)"
+ )]
NoCandidates { refname: String, threshold: usize },
- #[error("could not determine target commit for canonical reference '{refname}', found diverging commits {longest} and {head}, with base commit {base} and threshold {threshold}")]
+ #[error(
+ "could not determine target commit for canonical reference '{refname}', found diverging commits {longest} and {head}, with base commit {base} and threshold {threshold}"
+ )]
DivergingCommits {
refname: String,
threshold: usize,
@@ -23,7 +29,9 @@ pub enum QuorumError {
longest: Oid,
head: Oid,
},
- #[error("could not determine target tag for canonical reference '{refname}', found multiple candidates with threshold {threshold}")]
+ #[error(
+ "could not determine target tag for canonical reference '{refname}', found multiple candidates with threshold {threshold}"
+ )]
DivergingTags {
refname: String,
threshold: usize,
diff --git a/crates/radicle/src/git/canonical/quorum.rs b/crates/radicle/src/git/canonical/quorum.rs
index 5279b0ed..6e805f76 100644
--- a/crates/radicle/src/git/canonical/quorum.rs
+++ b/crates/radicle/src/git/canonical/quorum.rs
@@ -239,7 +239,7 @@ pub enum CommitQuorumFailure {
#[allow(clippy::unwrap_used)]
#[cfg(test)]
mod test {
- use crate::git::{canonical::MergeBase, Oid};
+ use crate::git::{Oid, canonical::MergeBase};
use super::MergeBases;
diff --git a/crates/radicle/src/git/canonical/rules.rs b/crates/radicle/src/git/canonical/rules.rs
index 0a9d37a1..ca9353b0 100644
--- a/crates/radicle/src/git/canonical/rules.rs
+++ b/crates/radicle/src/git/canonical/rules.rs
@@ -22,10 +22,10 @@ use thiserror::Error;
use crate::git;
use crate::git::canonical;
use crate::git::canonical::Canonical;
-use crate::git::fmt::refspec::QualifiedPattern;
use crate::git::fmt::Qualified;
-use crate::git::fmt::{refname, RefString};
-use crate::identity::{doc, Did};
+use crate::git::fmt::refspec::QualifiedPattern;
+use crate::git::fmt::{RefString, refname};
+use crate::identity::{Did, doc};
const ASTERISK: char = '*';
@@ -745,18 +745,18 @@ mod tests {
use nonempty::nonempty;
- use crate::crypto::{test::signer::MockSigner, Signer};
+ use crate::Storage;
+ use crate::crypto::{Signer, test::signer::MockSigner};
use crate::git;
- use crate::git::fmt::qualified_pattern;
use crate::git::fmt::RefString;
- use crate::identity::doc::Doc;
+ use crate::git::fmt::qualified_pattern;
use crate::identity::Visibility;
+ use crate::identity::doc::Doc;
use crate::node::device::Device;
use crate::rad;
use crate::storage::refs::{IDENTITY_BRANCH, IDENTITY_ROOT, SIGREFS_BRANCH, SIGREFS_PARENT};
- use crate::storage::{git::transport, ReadStorage};
+ use crate::storage::{ReadStorage, git::transport};
use crate::test::{arbitrary, fixtures};
- use crate::Storage;
use super::*;
@@ -994,7 +994,9 @@ mod tests {
assert_eq!(
patterns,
- [pattern05, pattern06, pattern03, pattern02, pattern04, pattern01]
+ [
+ pattern05, pattern06, pattern03, pattern02, pattern04, pattern01
+ ]
);
}
diff --git a/crates/radicle/src/git/raw.rs b/crates/radicle/src/git/raw.rs
index 5824c8e9..a27f79e3 100644
--- a/crates/radicle/src/git/raw.rs
+++ b/crates/radicle/src/git/raw.rs
@@ -6,7 +6,7 @@
// Re-exports that are only used within this crate.
pub(crate) use git2::{
- message_trailers_strs, AutotagOption, Blob, FetchOptions, FetchPrune, Object, Revwalk, Sort,
+ AutotagOption, Blob, FetchOptions, FetchPrune, Object, Revwalk, Sort, message_trailers_strs,
};
#[cfg(unix)]
@@ -35,7 +35,7 @@ pub mod build {
pub(crate) mod transport {
pub use git2::transport::{
- register, Service, SmartSubtransport, SmartSubtransportStream, Transport,
+ Service, SmartSubtransport, SmartSubtransportStream, Transport, register,
};
}
diff --git a/crates/radicle/src/identity/crefs.rs b/crates/radicle/src/identity/crefs.rs
index 939d5b16..9a089fa2 100644
--- a/crates/radicle/src/identity/crefs.rs
+++ b/crates/radicle/src/identity/crefs.rs
@@ -1,8 +1,8 @@
use serde::{Deserialize, Serialize};
use crate::git::canonical::{
- rules::{self, RawRules, Rules, ValidationError},
ValidRule,
+ rules::{self, RawRules, Rules, ValidationError},
};
use super::doc::{Delegates, Payload};
diff --git a/crates/radicle/src/identity/doc.rs b/crates/radicle/src/identity/doc.rs
index f2e33116..f017c9b3 100644
--- a/crates/radicle/src/identity/doc.rs
+++ b/crates/radicle/src/identity/doc.rs
@@ -11,7 +11,7 @@ use std::sync::LazyLock;
use crate::git::Oid;
use nonempty::NonEmpty;
use radicle_cob::type_name::{TypeName, TypeNameParse};
-use serde::{de, Deserialize, Serialize};
+use serde::{Deserialize, Serialize, de};
use thiserror::Error;
use crate::canonical::formatter::CanonicalFormatter;
@@ -21,7 +21,7 @@ use crate::crypto::Signature;
use crate::git;
use crate::git::canonical::rules;
use crate::git::raw::ErrorExt as _;
-use crate::identity::{project::Project, Did};
+use crate::identity::{Did, project::Project};
use crate::node::device::Device;
use crate::storage;
use crate::storage::{ReadRepository, RepositoryError};
@@ -29,8 +29,8 @@ use crate::storage::{ReadRepository, RepositoryError};
pub use crypto::PublicKey;
pub use radicle_core::repo::*;
-use super::crefs::{self, RawCanonicalRefs};
use super::CanonicalRefs;
+use super::crefs::{self, RawCanonicalRefs};
/// Path to the identity document in the identity branch.
pub static PATH: LazyLock<&Path> = LazyLock::new(|| Path::new("radicle.json"));
@@ -974,8 +974,8 @@ mod test {
use crate::assert_matches;
use crate::rad;
- use crate::storage::git::transport;
use crate::storage::git::Storage;
+ use crate::storage::git::transport;
use crate::storage::{ReadStorage as _, RemoteId, WriteStorage as _};
use crate::test::arbitrary;
use crate::test::arbitrary::r#gen;
diff --git a/crates/radicle/src/identity/doc/update.rs b/crates/radicle/src/identity/doc/update.rs
index 70d1d209..affa7642 100644
--- a/crates/radicle/src/identity/doc/update.rs
+++ b/crates/radicle/src/identity/doc/update.rs
@@ -8,7 +8,7 @@ use crate::{
git,
identity::crefs::GetCanonicalRefs as _,
prelude::Did,
- storage::{self, refs, ReadRepository, RepositoryError},
+ storage::{self, ReadRepository, RepositoryError, refs},
};
use super::{Doc, PayloadError, PayloadId, RawDoc, Visibility};
@@ -206,7 +206,7 @@ pub fn verify(raw: RawDoc) -> Result<Doc, error::DocVerification> {
return Err(error::DocVerification::PayloadError {
id: PayloadId::project(),
err: e.to_string(),
- })
+ });
}
};
// Ensure that if we have canonical reference rules and a project, that no
@@ -279,7 +279,7 @@ mod test {
git,
identity::{
crefs::GetCanonicalRefs,
- doc::{update::error, PayloadId},
+ doc::{PayloadId, update::error},
},
prelude::RawDoc,
test::arbitrary,
diff --git a/crates/radicle/src/identity/doc/update/error.rs b/crates/radicle/src/identity/doc/update/error.rs
index 05dd3703..bf19aca6 100644
--- a/crates/radicle/src/identity/doc/update/error.rs
+++ b/crates/radicle/src/identity/doc/update/error.rs
@@ -2,7 +2,7 @@ use thiserror::Error;
use crate::git;
use crate::git::fmt::RefString;
-use crate::identity::{doc::PayloadId, Did, DocError};
+use crate::identity::{Did, DocError, doc::PayloadId};
#[derive(Debug, Error)]
#[error("'{0}' is not a valid visibility type")]
@@ -28,7 +28,9 @@ pub enum DocVerification {
PayloadError { id: PayloadId, err: String },
#[error(transparent)]
Doc(#[from] DocError),
- #[error("incompatible payloads: The rule(s) xyz.radicle.crefs.rules.{matches:?} matches the value of xyz.radicle.project.defaultBranch ('{default}'). Possible resolutions: Change the name of the default branch or remove the rule(s).")]
+ #[error(
+ "incompatible payloads: The rule(s) xyz.radicle.crefs.rules.{matches:?} matches the value of xyz.radicle.project.defaultBranch ('{default}'). Possible resolutions: Change the name of the default branch or remove the rule(s)."
+ )]
DisallowDefault {
matches: Vec<String>,
default: git::fmt::Qualified<'static>,
diff --git a/crates/radicle/src/identity/project.rs b/crates/radicle/src/identity/project.rs
index 908d8b90..9f250475 100644
--- a/crates/radicle/src/identity/project.rs
+++ b/crates/radicle/src/identity/project.rs
@@ -1,8 +1,8 @@
use std::{fmt, str::FromStr};
use serde::{
- de::{self, MapAccess, Visitor},
Deserialize, Serialize,
+ de::{self, MapAccess, Visitor},
};
use thiserror::Error;
diff --git a/crates/radicle/src/io.rs b/crates/radicle/src/io.rs
index a446f834..ab0f56ac 100644
--- a/crates/radicle/src/io.rs
+++ b/crates/radicle/src/io.rs
@@ -1,7 +1,7 @@
use std::io;
#[cfg(unix)]
-use libc::{getrlimit, rlim_t, rlimit, setrlimit, RLIMIT_NOFILE};
+use libc::{RLIMIT_NOFILE, getrlimit, rlim_t, rlimit, setrlimit};
#[cfg(unix)]
type Int = rlim_t;
diff --git a/crates/radicle/src/lib.rs b/crates/radicle/src/lib.rs
index 15169967..e5bd7150 100644
--- a/crates/radicle/src/lib.rs
+++ b/crates/radicle/src/lib.rs
@@ -44,7 +44,7 @@ pub mod prelude {
pub use crypto::PublicKey;
pub use git::BranchName;
- pub use identity::{project::Project, Did, Doc, RawDoc, RepoId};
+ pub use identity::{Did, Doc, RawDoc, RepoId, project::Project};
pub use node::{Alias, NodeId, Timestamp};
pub use profile::Profile;
pub use storage::{ReadRepository, ReadStorage, SignRepository, WriteRepository, WriteStorage};
diff --git a/crates/radicle/src/node.rs b/crates/radicle/src/node.rs
index d6619e5a..e313e94d 100644
--- a/crates/radicle/src/node.rs
+++ b/crates/radicle/src/node.rs
@@ -43,11 +43,11 @@ use crate::crypto::PublicKey;
use crate::git;
use crate::identity::RepoId;
use crate::profile;
-use crate::storage::refs::{FeatureLevel, RefsAt};
use crate::storage::RefUpdate;
+use crate::storage::refs::{FeatureLevel, RefsAt};
pub use address::KnownAddress;
-pub use command::{Command, CommandResult, ConnectOptions, Success, DEFAULT_TIMEOUT};
+pub use command::{Command, CommandResult, ConnectOptions, DEFAULT_TIMEOUT, Success};
pub use config::Config;
pub use cyphernet::addr::{HostName, PeerAddr, PeerAddrParseError};
pub use db::Database;
@@ -1049,7 +1049,7 @@ impl<T: DeserializeOwned> Iterator for LineIter<T> {
return Some(Err(Error::InvalidJson {
response: l.clone(),
error: e,
- }))
+ }));
}
Ok(result) => result,
};
diff --git a/crates/radicle/src/node/address/store.rs b/crates/radicle/src/node/address/store.rs
index 4c7609fd..8a683385 100644
--- a/crates/radicle/src/node/address/store.rs
+++ b/crates/radicle/src/node/address/store.rs
@@ -8,8 +8,8 @@ use sqlite as sql;
use thiserror::Error;
use crate::node;
-use crate::node::address::{AddressType, KnownAddress, Node, Source};
use crate::node::UserAgent;
+use crate::node::address::{AddressType, KnownAddress, Node, Source};
use crate::node::{Address, Alias, AliasError, AliasStore, Database, NodeId, Penalty, Severity};
use crate::prelude::Timestamp;
use crate::sql::transaction;
diff --git a/crates/radicle/src/node/command.rs b/crates/radicle/src/node/command.rs
index 1ac5ae7f..aa5dbbf4 100644
--- a/crates/radicle/src/node/command.rs
+++ b/crates/radicle/src/node/command.rs
@@ -17,8 +17,8 @@ use crate::crypto::PublicKey;
use crate::identity::RepoId;
use crate::storage::refs;
-use super::events::Event;
use super::NodeId;
+use super::events::Event;
/// Default timeout when waiting for the node to respond with data.
pub const DEFAULT_TIMEOUT: time::Duration = time::Duration::from_secs(30);
diff --git a/crates/radicle/src/node/config.rs b/crates/radicle/src/node/config.rs
index 9057db79..dfdaa886 100644
--- a/crates/radicle/src/node/config.rs
+++ b/crates/radicle/src/node/config.rs
@@ -22,7 +22,7 @@ pub type ProtocolVersion = u8;
pub mod seeds {
use std::{str::FromStr, sync::LazyLock};
- use cyphernet::addr::{tor::OnionAddrV3, HostName, NetAddr};
+ use cyphernet::addr::{HostName, NetAddr, tor::OnionAddrV3};
use super::{ConnectAddress, NodeId, PeerAddr};
@@ -767,7 +767,7 @@ wrapper!(
#[allow(clippy::unwrap_used)]
mod test {
use super::{DefaultSeedingPolicy, Scope};
- use crate::node::{policy, Alias};
+ use crate::node::{Alias, policy};
use serde_json::json;
#[test]
diff --git a/crates/radicle/src/node/db.rs b/crates/radicle/src/node/db.rs
index b8b010a9..5cd30f2a 100644
--- a/crates/radicle/src/node/db.rs
+++ b/crates/radicle/src/node/db.rs
@@ -16,7 +16,7 @@ use sqlite as sql;
use thiserror::Error;
use crate::node::{
- address, Address, Alias, Features, KnownAddress, NodeId, Timestamp, UserAgent, PROTOCOL_VERSION,
+ Address, Alias, Features, KnownAddress, NodeId, PROTOCOL_VERSION, Timestamp, UserAgent, address,
};
use crate::sql::transaction;
diff --git a/crates/radicle/src/node/device.rs b/crates/radicle/src/node/device.rs
index 7a0f9869..3e2556ae 100644
--- a/crates/radicle/src/node/device.rs
+++ b/crates/radicle/src/node/device.rs
@@ -2,9 +2,9 @@ use std::fmt;
use std::ops::Deref;
use crypto::{
+ Signature,
signature::{Keypair, KeypairRef, Signer, Verifier},
ssh::ExtendedSignature,
- Signature,
};
use crate::crypto;
diff --git a/crates/radicle/src/node/events.rs b/crates/radicle/src/node/events.rs
index 01f7f968..5100b509 100644
--- a/crates/radicle/src/node/events.rs
+++ b/crates/radicle/src/node/events.rs
@@ -9,11 +9,11 @@ use std::time;
use crossbeam_channel as chan;
-use crate::git::fmt::Qualified;
use crate::git::Oid;
+use crate::git::fmt::Qualified;
use crate::node;
use crate::prelude::*;
-use crate::storage::{refs, RefUpdate};
+use crate::storage::{RefUpdate, refs};
/// Maximum unconsumed events allowed per subscription.
pub const MAX_PENDING_EVENTS: usize = 8192;
diff --git a/crates/radicle/src/node/features.rs b/crates/radicle/src/node/features.rs
index 2306f870..a643b207 100644
--- a/crates/radicle/src/node/features.rs
+++ b/crates/radicle/src/node/features.rs
@@ -116,13 +116,17 @@ mod test {
fn test_operations() {
assert_eq!(Features::NONE.with(Features::SEED), Features::SEED);
- assert!(!Features::from(u64::MAX)
- .without(Features::SEED)
- .has(Features::SEED));
+ assert!(
+ !Features::from(u64::MAX)
+ .without(Features::SEED)
+ .has(Features::SEED)
+ );
- assert!(Features::from(u64::MIN)
- .with(Features::SEED)
- .has(Features::SEED));
+ assert!(
+ Features::from(u64::MIN)
+ .with(Features::SEED)
+ .has(Features::SEED)
+ );
assert_eq!(
Features::NONE.with(Features::SEED).without(Features::SEED),
diff --git a/crates/radicle/src/node/notifications.rs b/crates/radicle/src/node/notifications.rs
index 704a2f94..217712e5 100644
--- a/crates/radicle/src/node/notifications.rs
+++ b/crates/radicle/src/node/notifications.rs
@@ -7,7 +7,7 @@ use thiserror::Error;
use crate::cob;
use crate::cob::TypedId;
-use crate::git::{fmt::Qualified, BranchName};
+use crate::git::{BranchName, fmt::Qualified};
use crate::prelude::RepoId;
use crate::storage::{RefUpdate, RemoteId};
diff --git a/crates/radicle/src/node/notifications/store.rs b/crates/radicle/src/node/notifications/store.rs
index a2fe85cf..be7654f4 100644
--- a/crates/radicle/src/node/notifications/store.rs
+++ b/crates/radicle/src/node/notifications/store.rs
@@ -10,9 +10,9 @@ use sqlite as sql;
use thiserror::Error;
use crate::git;
-use crate::git::fmt::RefString;
use crate::git::Oid;
use crate::git::RefError;
+use crate::git::fmt::RefString;
use crate::prelude::RepoId;
use crate::sql::transaction;
use crate::storage::RefUpdate;
@@ -578,9 +578,10 @@ mod test {
assert!(db.insert(&repo, &update1, time).unwrap());
assert!(db.insert(&repo, &update2, time).unwrap());
assert!(db.insert(&repo, &update3, time).unwrap());
- assert!(db
- .set_status(NotificationStatus::ReadAt(time), &[1, 2, 3])
- .unwrap());
+ assert!(
+ db.set_status(NotificationStatus::ReadAt(time), &[1, 2, 3])
+ .unwrap()
+ );
let mut notifs = db.by_repo(&repo, "timestamp").unwrap();
@@ -619,9 +620,10 @@ mod test {
new: master2,
};
assert!(db.insert(&repo, &update1, time1).unwrap());
- assert!(db
- .set_status(NotificationStatus::ReadAt(time1), &[1])
- .unwrap());
+ assert!(
+ db.set_status(NotificationStatus::ReadAt(time1), &[1])
+ .unwrap()
+ );
assert!(db.insert(&repo, &update2, time2).unwrap());
let mut notifs = db.by_repo(&repo, "timestamp").unwrap();
diff --git a/crates/radicle/src/node/refs/store.rs b/crates/radicle/src/node/refs/store.rs
index e5018b99..7b859f2e 100644
--- a/crates/radicle/src/node/refs/store.rs
+++ b/crates/radicle/src/node/refs/store.rs
@@ -6,8 +6,8 @@ use localtime::LocalTime;
use sqlite as sql;
use thiserror::Error;
-use crate::git::fmt::Qualified;
use crate::git::Oid;
+use crate::git::fmt::Qualified;
use crate::node::Database;
use crate::node::NodeId;
use crate::prelude::RepoId;
@@ -195,15 +195,17 @@ mod test {
assert!(db.is_empty().unwrap());
assert_eq!(db.count().unwrap(), 0);
- assert!(db
- .set(&repo, &namespace, &refname1, oid, timestamp)
- .unwrap());
+ assert!(
+ db.set(&repo, &namespace, &refname1, oid, timestamp)
+ .unwrap()
+ );
assert!(!db.is_empty().unwrap());
assert_eq!(db.count().unwrap(), 1);
- assert!(db
- .set(&repo, &namespace, &refname2, oid, timestamp)
- .unwrap());
+ assert!(
+ db.set(&repo, &namespace, &refname2, oid, timestamp)
+ .unwrap()
+ );
assert_eq!(db.count().unwrap(), 2);
}
@@ -238,21 +240,24 @@ mod test {
let mut timestamp = LocalTime::now();
assert_eq!(db.get(&repo, &namespace, &refname).unwrap(), None);
- assert!(db
- .set(&repo, &namespace, &refname, oid1, timestamp)
- .unwrap());
+ assert!(
+ db.set(&repo, &namespace, &refname, oid1, timestamp)
+ .unwrap()
+ );
assert_eq!(
db.get(&repo, &namespace, &refname).unwrap(),
Some((oid1, timestamp))
);
- assert!(!db
- .set(&repo, &namespace, &refname, oid1, timestamp)
- .unwrap());
+ assert!(
+ !db.set(&repo, &namespace, &refname, oid1, timestamp)
+ .unwrap()
+ );
timestamp.elapse(LocalDuration::from_millis(1));
- assert!(db
- .set(&repo, &namespace, &refname, oid2, timestamp)
- .unwrap());
+ assert!(
+ db.set(&repo, &namespace, &refname, oid2, timestamp)
+ .unwrap()
+ );
assert_eq!(
db.get(&repo, &namespace, &refname).unwrap(),
Some((oid2, timestamp))
diff --git a/crates/radicle/src/node/routing.rs b/crates/radicle/src/node/routing.rs
index c812d563..00847726 100644
--- a/crates/radicle/src/node/routing.rs
+++ b/crates/radicle/src/node/routing.rs
@@ -320,11 +320,12 @@ mod test {
let mut db = database(":memory:");
for node in &nodes {
- assert!(db
- .add_inventory(&ids, *node, Timestamp::EPOCH)
- .unwrap()
- .iter()
- .all(|(_, r)| *r == InsertResult::SeedAdded));
+ assert!(
+ db.add_inventory(&ids, *node, Timestamp::EPOCH)
+ .unwrap()
+ .iter()
+ .all(|(_, r)| *r == InsertResult::SeedAdded)
+ );
}
let results = db.entries().unwrap().collect::<Vec<_>>();
diff --git a/crates/radicle/src/node/seed/store.rs b/crates/radicle/src/node/seed/store.rs
index 66ecf1b5..c00663cd 100644
--- a/crates/radicle/src/node/seed/store.rs
+++ b/crates/radicle/src/node/seed/store.rs
@@ -6,10 +6,10 @@ use sqlite as sql;
use thiserror::Error;
use crate::git::Oid;
+use crate::node::NodeId;
use crate::node::address;
use crate::node::address::Store as _;
-use crate::node::NodeId;
-use crate::node::{seed::SyncedSeed, Database, SyncedAt};
+use crate::node::{Database, SyncedAt, seed::SyncedSeed};
use crate::prelude::{RepoId, Timestamp};
#[derive(Error, Debug)]
diff --git a/crates/radicle/src/node/timestamp.rs b/crates/radicle/src/node/timestamp.rs
index 9dd1689d..9af6380c 100644
--- a/crates/radicle/src/node/timestamp.rs
+++ b/crates/radicle/src/node/timestamp.rs
@@ -76,11 +76,7 @@ impl TryFrom<u64> for Timestamp {
type Error = u64;
fn try_from(u: u64) -> Result<Self, u64> {
- if u <= *Self::MAX {
- Ok(Self(u))
- } else {
- Err(u)
- }
+ if u <= *Self::MAX { Ok(Self(u)) } else { Err(u) }
}
}
diff --git a/crates/radicle/src/profile.rs b/crates/radicle/src/profile.rs
index 99bce2a6..09cbd045 100644
--- a/crates/radicle/src/profile.rs
+++ b/crates/radicle/src/profile.rs
@@ -22,18 +22,18 @@ use localtime::LocalTime;
use thiserror::Error;
use crate::cob::migrate;
-use crate::crypto::ssh::agent::Agent;
-use crate::crypto::ssh::{keystore, Keystore, Passphrase};
use crate::crypto::PublicKey;
+use crate::crypto::ssh::agent::Agent;
+use crate::crypto::ssh::{Keystore, Passphrase, keystore};
use crate::node::device::{BoxedDevice, Device};
use crate::node::policy::config::store::Read;
use crate::node::{
- notifications, policy, policy::Scope, Alias, AliasStore, Handle as _, Node, UserAgent,
+ Alias, AliasStore, Handle as _, Node, UserAgent, notifications, policy, policy::Scope,
};
use crate::prelude::{Did, NodeId, RepoId};
-use crate::storage::git::transport;
-use crate::storage::git::Storage;
use crate::storage::ReadRepository;
+use crate::storage::git::Storage;
+use crate::storage::git::transport;
use crate::{cob, git, node, storage};
/// Environment variables used by radicle.
@@ -496,8 +496,7 @@ pub fn home() -> Result<Home, io::Error> {
"Environment variables `RAD_HOME` and `HOME` are both unset or not valid Unicode.";
#[cfg(windows)]
- const ERROR_MESSAGE_UNSET: &str =
- "Environment variables `RAD_HOME`, `HOME`, and `USERPROFILE` are all unset or not valid Unicode.";
+ const ERROR_MESSAGE_UNSET: &str = "Environment variables `RAD_HOME`, `HOME`, and `USERPROFILE` are all unset or not valid Unicode.";
struct DetectedHome {
path: String,
diff --git a/crates/radicle/src/profile/config.rs b/crates/radicle/src/profile/config.rs
index 2ca45973..6fb8875d 100644
--- a/crates/radicle/src/profile/config.rs
+++ b/crates/radicle/src/profile/config.rs
@@ -7,9 +7,9 @@ use serde_json as json;
use thiserror::Error;
use crate::explorer::Explorer;
+use crate::node::Alias;
use crate::node::config::DefaultSeedingPolicy;
use crate::node::policy::{Policy, Scope};
-use crate::node::Alias;
use crate::{cli, node, web};
#[derive(Debug, Error)]
@@ -112,7 +112,9 @@ pub enum InitError {
#[derive(Debug, Error)]
pub enum LoadError {
- #[error("failed to open configuration file {path:?}: {err}, perhaps you need to initialise one `rad config init --alias <alias>`")]
+ #[error(
+ "failed to open configuration file {path:?}: {err}, perhaps you need to initialise one `rad config init --alias <alias>`"
+ )]
File {
path: PathBuf,
#[source]
@@ -380,13 +382,11 @@ impl RawConfig {
let mut current = &mut self.0;
for key in config_path.iter() {
current = match current {
- json::Value::Object(map) => {
- map.entry(key).or_insert_with(|| json::json!({}))
- }
+ json::Value::Object(map) => map.entry(key).or_insert_with(|| json::json!({})),
_ => {
return Err(ModifyError::Upsert {
key: key.to_owned(),
- })
+ });
}
}
}
diff --git a/crates/radicle/src/rad.rs b/crates/radicle/src/rad.rs
index ca2994fd..eb5f65ba 100644
--- a/crates/radicle/src/rad.rs
+++ b/crates/radicle/src/rad.rs
@@ -13,10 +13,10 @@ use crate::identity::doc;
use crate::identity::doc::{DocError, RepoId, Visibility};
use crate::identity::project::{Project, ProjectName};
use crate::node::device::Device;
-use crate::storage::git::transport;
+use crate::storage::RepositoryError;
use crate::storage::git::Repository;
+use crate::storage::git::transport;
use crate::storage::refs::SignedRefs;
-use crate::storage::RepositoryError;
use crate::storage::{ReadRepository as _, RemoteId, SignRepository as _};
use crate::storage::{WriteRepository, WriteStorage};
use crate::{identity, storage};
@@ -230,7 +230,9 @@ where
pub enum CheckoutError {
#[error("failed to fetch to working copy: {0}")]
FetchIo(#[source] std::io::Error),
- #[error("internal fetch failed with exit status {status}, stderr and stdout follow:\n{stderr}\n{stdout}")]
+ #[error(
+ "internal fetch failed with exit status {status}, stderr and stdout follow:\n{stderr}\n{stdout}"
+ )]
FetchGit {
status: std::process::ExitStatus,
stderr: String,
@@ -510,8 +512,8 @@ mod tests {
use pretty_assertions::assert_eq;
use crate::identity::Did;
- use crate::storage::git::transport;
use crate::storage::git::Storage;
+ use crate::storage::git::transport;
use crate::storage::{ReadStorage, RemoteRepository as _};
use crate::test::fixtures;
use git::fmt::{component, qualified};
diff --git a/crates/radicle/src/serde_ext.rs b/crates/radicle/src/serde_ext.rs
index bbcc365c..e39e891c 100644
--- a/crates/radicle/src/serde_ext.rs
+++ b/crates/radicle/src/serde_ext.rs
@@ -9,7 +9,7 @@ pub mod string {
use std::fmt::Display;
use std::str::FromStr;
- use serde::{de, Deserialize, Deserializer, Serializer};
+ use serde::{Deserialize, Deserializer, Serializer, de};
pub fn serialize<T, S>(value: &T, serializer: S) -> Result<S::Ok, S::Error>
where
diff --git a/crates/radicle/src/storage.rs b/crates/radicle/src/storage.rs
index 4fdebd6d..5156d594 100644
--- a/crates/radicle/src/storage.rs
+++ b/crates/radicle/src/storage.rs
@@ -1,7 +1,7 @@
pub mod git;
pub mod refs;
-use std::collections::{hash_map, HashSet};
+use std::collections::{HashSet, hash_map};
use std::ops::Deref;
use std::path::{Path, PathBuf};
use std::{fmt, io};
@@ -16,15 +16,15 @@ pub use git::{Validation, Validations};
use crate::cob;
use crate::collections::RandomMap;
+use crate::git::RefError;
use crate::git::canonical;
-use crate::git::fmt::{refspec::PatternString, refspec::Refspec, Qualified, RefStr, RefString};
+use crate::git::fmt::{Qualified, RefStr, RefString, refspec::PatternString, refspec::Refspec};
use crate::git::raw::ErrorExt as _;
-use crate::git::RefError;
-use crate::identity::{doc, Did, PayloadError};
+use crate::identity::{Did, PayloadError, doc};
use crate::identity::{Doc, DocAt, DocError};
use crate::identity::{Identity, RepoId};
-use crate::node::device::Device;
use crate::node::SyncedAt;
+use crate::node::device::Device;
use crate::storage::git::NAMESPACES_GLOB;
use crate::storage::refs::{FeatureLevel, Refs, SignedRefs};
diff --git a/crates/radicle/src/storage/git.rs b/crates/radicle/src/storage/git.rs
index dd5da412..0286cceb 100644
--- a/crates/radicle/src/storage/git.rs
+++ b/crates/radicle/src/storage/git.rs
@@ -19,21 +19,21 @@ use crate::identity::{CanonicalRefs, Doc, DocAt, RepoId};
use crate::identity::{Identity, Project};
use crate::node::device::Device;
use crate::storage::refs::{FeatureLevel, Refs, SignedRefs};
-use crate::storage::{refs, SignedRefsInfo};
use crate::storage::{
ReadRepository, ReadStorage, Remote, Remotes, RepositoryInfo, SetHead, SignRepository,
WriteRepository, WriteStorage,
};
+use crate::storage::{SignedRefsInfo, refs};
use crate::{git, git::Oid, node};
-use crate::git::fmt::{
- refname, refspec, refspec::PatternStr, refspec::PatternString, Qualified, RefString,
-};
use crate::git::RefError;
use crate::git::UserInfo;
+use crate::git::fmt::{
+ Qualified, RefString, refname, refspec, refspec::PatternStr, refspec::PatternString,
+};
pub use crate::storage::{Error, RepositoryError};
-use super::refs::{sigrefs, RefsAt};
+use super::refs::{RefsAt, sigrefs};
use super::{RemoteId, RemoteRepository, ValidateRepository};
pub static NAMESPACES_GLOB: LazyLock<PatternString> =
diff --git a/crates/radicle/src/storage/git/cob.rs b/crates/radicle/src/storage/git/cob.rs
index 889c9c2a..5c6a8b0f 100644
--- a/crates/radicle/src/storage/git/cob.rs
+++ b/crates/radicle/src/storage/git/cob.rs
@@ -16,18 +16,18 @@ use crate::git::fmt::*;
use crate::git::*;
use crate::identity;
use crate::identity::doc::DocError;
-use crate::node::device::Device;
use crate::node::NodeId;
+use crate::node::device::Device;
use crate::storage;
use crate::storage::Error;
use crate::storage::{
- git::{Remote, Remotes, Validations},
ReadRepository,
+ git::{Remote, Remotes, Validations},
};
use super::{RemoteId, Repository};
-pub use crate::cob::{store, ObjectId, Store};
+pub use crate::cob::{ObjectId, Store, store};
#[derive(Error, Debug)]
pub enum ObjectsError {
diff --git a/crates/radicle/src/storage/git/transport/local/url.rs b/crates/radicle/src/storage/git/transport/local/url.rs
index 44a922d9..ba07c148 100644
--- a/crates/radicle/src/storage/git/transport/local/url.rs
+++ b/crates/radicle/src/storage/git/transport/local/url.rs
@@ -123,16 +123,22 @@ mod test {
assert_eq!(url.repo, repo);
assert_eq!(url.namespace, Some(namespace));
- assert!(format!("heartwood://{}", repo.canonical())
- .parse::<Url>()
- .is_err());
- assert!(format!("git://{}", repo.canonical())
- .parse::<Url>()
- .is_err());
+ assert!(
+ format!("heartwood://{}", repo.canonical())
+ .parse::<Url>()
+ .is_err()
+ );
+ assert!(
+ format!("git://{}", repo.canonical())
+ .parse::<Url>()
+ .is_err()
+ );
assert!(format!("rad://{namespace}").parse::<Url>().is_err());
- assert!(format!("rad://{}/{namespace}/fnord", repo.canonical())
- .parse::<Url>()
- .is_err());
+ assert!(
+ format!("rad://{}/{namespace}/fnord", repo.canonical())
+ .parse::<Url>()
+ .is_err()
+ );
}
#[test]
diff --git a/crates/radicle/src/storage/git/transport/remote/mock.rs b/crates/radicle/src/storage/git/transport/remote/mock.rs
index 76066c26..f4256ec8 100644
--- a/crates/radicle/src/storage/git/transport/remote/mock.rs
+++ b/crates/radicle/src/storage/git/transport/remote/mock.rs
@@ -9,8 +9,8 @@ use std::{process, thread};
use super::Url;
use crate::git;
-use crate::storage::git::transport::ChildStream;
use crate::storage::RemoteId;
+use crate::storage::git::transport::ChildStream;
/// Nodes registered with the mock transport.
static NODES: LazyLock<Mutex<HashMap<(ThreadId, RemoteId), PathBuf>>> =
diff --git a/crates/radicle/src/storage/git/transport/remote/url.rs b/crates/radicle/src/storage/git/transport/remote/url.rs
index f22eaf9e..fd548349 100644
--- a/crates/radicle/src/storage/git/transport/remote/url.rs
+++ b/crates/radicle/src/storage/git/transport/remote/url.rs
@@ -130,9 +130,11 @@ mod test {
assert!(format!("heartwood://{node}").parse::<Url>().is_err());
assert!(format!("rad://{node}").parse::<Url>().is_err());
- assert!(format!("heartwood://{node}/{namespace}")
- .parse::<Url>()
- .is_err());
+ assert!(
+ format!("heartwood://{node}/{namespace}")
+ .parse::<Url>()
+ .is_err()
+ );
assert!(
format!("heartwood://{node}/{}/{namespace}/fnord", repo.canonical())
.parse::<Url>()
diff --git a/crates/radicle/src/storage/refs.rs b/crates/radicle/src/storage/refs.rs
index e8d455ac..ee98c977 100644
--- a/crates/radicle/src/storage/refs.rs
+++ b/crates/radicle/src/storage/refs.rs
@@ -17,11 +17,11 @@ use serde::{Deserialize, Serialize};
use thiserror::Error;
use crate::git;
-use crate::git::raw::ErrorExt as _;
use crate::git::Oid;
+use crate::git::raw::ErrorExt as _;
use crate::storage;
-use crate::storage::refs::sigrefs::read::Tip;
use crate::storage::RemoteId;
+use crate::storage::refs::sigrefs::read::Tip;
pub use crate::git::refs::storage::*;
@@ -495,13 +495,13 @@ pub mod canonical {
#[allow(clippy::unwrap_used)]
mod tests {
use qcheck_macros::quickcheck;
- use storage::{git::transport, RemoteRepository, SignRepository, WriteStorage};
+ use storage::{RemoteRepository, SignRepository, WriteStorage, git::transport};
use super::*;
use crate::assert_matches;
use crate::node::device::Device;
use crate::storage::WriteRepository as _;
- use crate::{cob::identity::Identity, cob::Title, rad, test::fixtures, Storage};
+ use crate::{Storage, cob::Title, cob::identity::Identity, rad, test::fixtures};
#[quickcheck]
fn prop_canonical_roundtrip(refs: Refs) {
diff --git a/crates/radicle/src/storage/refs/sigrefs/git.rs b/crates/radicle/src/storage/refs/sigrefs/git.rs
index a64f1b48..86693302 100644
--- a/crates/radicle/src/storage/refs/sigrefs/git.rs
+++ b/crates/radicle/src/storage/refs/sigrefs/git.rs
@@ -41,8 +41,8 @@ impl Committer {
#[cfg(not(any(test, feature = "test")))]
{
use crate::profile::env::GIT_COMMITTER_DATE;
- use std::env::var;
use std::env::VarError;
+ use std::env::var;
let timestamp = match var(GIT_COMMITTER_DATE) {
Ok(s) => match s.trim().parse::<u64>() {
@@ -147,7 +147,7 @@ mod git2_impls {
let commit = match self.find_commit(git2::Oid::from(*oid)) {
Ok(c) => c,
Err(e) if e.code() == git2::ErrorCode::NotFound => {
- return Err(ReadBlob::commit_not_found_error(*oid))
+ return Err(ReadBlob::commit_not_found_error(*oid));
}
Err(e) => return Err(ReadBlob::other(e)),
};
diff --git a/crates/radicle/src/storage/refs/sigrefs/property.rs b/crates/radicle/src/storage/refs/sigrefs/property.rs
index 81cf794a..39e5f8a5 100644
--- a/crates/radicle/src/storage/refs/sigrefs/property.rs
+++ b/crates/radicle/src/storage/refs/sigrefs/property.rs
@@ -3,14 +3,14 @@
mod mock;
use mock::*;
-use crypto::test::signer::MockSigner;
use crypto::Signer as _;
+use crypto::test::signer::MockSigner;
use qcheck::TestResult;
use qcheck_macros::quickcheck;
+use crate::storage::refs::Refs;
use crate::storage::refs::sigrefs::read::{SignedRefsReader, Tip};
use crate::storage::refs::sigrefs::write::{SignedRefsWriter, Update};
-use crate::storage::refs::Refs;
#[quickcheck]
fn roundtrip(BoundedVec(all_refs): BoundedVec<Refs>) -> TestResult {
diff --git a/crates/radicle/src/storage/refs/sigrefs/property/mock.rs b/crates/radicle/src/storage/refs/sigrefs/property/mock.rs
index f2c04590..f0853848 100644
--- a/crates/radicle/src/storage/refs/sigrefs/property/mock.rs
+++ b/crates/radicle/src/storage/refs/sigrefs/property/mock.rs
@@ -6,7 +6,7 @@ use tempfile::TempDir;
use crate::identity::doc;
use crate::storage::refs::sigrefs::git::Committer;
-use crate::storage::refs::{Refs, IDENTITY_ROOT};
+use crate::storage::refs::{IDENTITY_ROOT, Refs};
/// A `Vec<T>` whose [`Arbitrary`] instance caps the length at
/// [`Self::MAX_LEN`], preventing the property runner from generating inputs
diff --git a/crates/radicle/src/storage/refs/sigrefs/read.rs b/crates/radicle/src/storage/refs/sigrefs/read.rs
index d01c2483..3b27411a 100644
--- a/crates/radicle/src/storage/refs/sigrefs/read.rs
+++ b/crates/radicle/src/storage/refs/sigrefs/read.rs
@@ -9,7 +9,7 @@ use std::collections::{BTreeMap, HashMap};
use std::num::NonZeroUsize;
use std::path::Path;
-use crypto::{signature, PublicKey};
+use crypto::{PublicKey, signature};
use nonempty::NonEmpty;
use radicle_core::{NodeId, RepoId};
use radicle_git_metadata::commit::CommitData;
@@ -19,8 +19,8 @@ use crate::git;
use crate::identity::doc;
use crate::storage::refs::sigrefs::git::{object, reference};
use crate::storage::refs::{
- FeatureLevel, Refs, SignedRefs, IDENTITY_ROOT, REFS_BLOB_PATH, SIGNATURE_BLOB_PATH,
- SIGREFS_BRANCH,
+ FeatureLevel, IDENTITY_ROOT, REFS_BLOB_PATH, Refs, SIGNATURE_BLOB_PATH, SIGREFS_BRANCH,
+ SignedRefs,
};
/// A `rad/sigrefs` that has passed the following verification checks:
@@ -422,7 +422,7 @@ impl Commit {
sigrefs_commit: self.oid,
expected,
actual,
- })
+ });
}
};
diff --git a/crates/radicle/src/storage/refs/sigrefs/read/error.rs b/crates/radicle/src/storage/refs/sigrefs/read/error.rs
index b3491fba..c7a8c062 100644
--- a/crates/radicle/src/storage/refs/sigrefs/read/error.rs
+++ b/crates/radicle/src/storage/refs/sigrefs/read/error.rs
@@ -8,7 +8,7 @@ use thiserror::Error;
use crate::storage::refs::sigrefs::git::{object, reference};
use crate::storage::refs::sigrefs::read::FeatureLevels;
-use crate::storage::refs::{canonical, FeatureLevel};
+use crate::storage::refs::{FeatureLevel, canonical};
#[derive(Debug, Error)]
#[non_exhaustive]
@@ -114,7 +114,9 @@ pub enum IdentityRoot {
pub enum Verify {
#[error("failed to verify signature over signed references")]
Signature(crypto::signature::Error),
- #[error("expected repository identity {expected}, but found {found} under commit '{identity_commit}' during verification of '{sigrefs_commit}")]
+ #[error(
+ "expected repository identity {expected}, but found {found} under commit '{identity_commit}' during verification of '{sigrefs_commit}"
+ )]
MismatchedIdentity {
identity_commit: Oid,
sigrefs_commit: Oid,
diff --git a/crates/radicle/src/storage/refs/sigrefs/read/iter.rs b/crates/radicle/src/storage/refs/sigrefs/read/iter.rs
index 61decc26..5807575f 100644
--- a/crates/radicle/src/storage/refs/sigrefs/read/iter.rs
+++ b/crates/radicle/src/storage/refs/sigrefs/read/iter.rs
@@ -2,7 +2,7 @@ use radicle_oid::Oid;
use crate::storage::refs::sigrefs::git::object;
-use super::{error, Commit, CommitReader};
+use super::{Commit, CommitReader, error};
pub(super) struct Walk<'a, R> {
repository: &'a R,
diff --git a/crates/radicle/src/storage/refs/sigrefs/read/test/commit_reader.rs b/crates/radicle/src/storage/refs/sigrefs/read/test/commit_reader.rs
index 674bdda6..08d72b10 100644
--- a/crates/radicle/src/storage/refs/sigrefs/read/test/commit_reader.rs
+++ b/crates/radicle/src/storage/refs/sigrefs/read/test/commit_reader.rs
@@ -1,8 +1,8 @@
use radicle_oid::Oid;
-use crate::storage::refs::sigrefs::read::{error, SignedRefsReader, Tip};
-use crate::storage::refs::sigrefs::VerifiedCommit;
use crate::storage::refs::IDENTITY_ROOT;
+use crate::storage::refs::sigrefs::VerifiedCommit;
+use crate::storage::refs::sigrefs::read::{SignedRefsReader, Tip, error};
use super::mock;
use super::mock::{AlwaysVerify, MockRepository};
diff --git a/crates/radicle/src/storage/refs/sigrefs/read/test/identity_root_reader.rs b/crates/radicle/src/storage/refs/sigrefs/read/test/identity_root_reader.rs
index b2098c1d..0ca37832 100644
--- a/crates/radicle/src/storage/refs/sigrefs/read/test/identity_root_reader.rs
+++ b/crates/radicle/src/storage/refs/sigrefs/read/test/identity_root_reader.rs
@@ -2,11 +2,11 @@ use radicle_core::RepoId;
use radicle_oid::Oid;
use crate::git;
+use crate::storage::refs::sigrefs::VerifiedCommit;
use crate::storage::refs::sigrefs::read::{
- error, IdentityRoot, IdentityRootReader, SignedRefsReader, Tip,
+ IdentityRoot, IdentityRootReader, SignedRefsReader, Tip, error,
};
-use crate::storage::refs::sigrefs::VerifiedCommit;
-use crate::storage::refs::{Refs, IDENTITY_ROOT};
+use crate::storage::refs::{IDENTITY_ROOT, Refs};
use super::mock;
use super::mock::{AlwaysVerify, MockRepository};
diff --git a/crates/radicle/src/storage/refs/sigrefs/read/test/mock.rs b/crates/radicle/src/storage/refs/sigrefs/read/test/mock.rs
index 5424bef3..651c3782 100644
--- a/crates/radicle/src/storage/refs/sigrefs/read/test/mock.rs
+++ b/crates/radicle/src/storage/refs/sigrefs/read/test/mock.rs
@@ -6,15 +6,15 @@ use std::path::{Path, PathBuf};
use radicle_core::NodeId;
use radicle_git_metadata::author::{Author, Time};
+use radicle_git_metadata::commit::CommitData;
use radicle_git_metadata::commit::headers::Headers;
use radicle_git_metadata::commit::trailers::OwnedTrailer;
-use radicle_git_metadata::commit::CommitData;
use radicle_oid::Oid;
use crate::git;
use crate::identity::doc;
use crate::storage::refs::sigrefs::git::{object, reference};
-use crate::storage::refs::{Refs, REFS_BLOB_PATH, SIGNATURE_BLOB_PATH, SIGREFS_BRANCH};
+use crate::storage::refs::{REFS_BLOB_PATH, Refs, SIGNATURE_BLOB_PATH, SIGREFS_BRANCH};
pub(crate) const MOCKED_IDENTITY: u8 = 99u8;
diff --git a/crates/radicle/src/storage/refs/sigrefs/read/test/resolve_tip.rs b/crates/radicle/src/storage/refs/sigrefs/read/test/resolve_tip.rs
index 65b84615..e7525d75 100644
--- a/crates/radicle/src/storage/refs/sigrefs/read/test/resolve_tip.rs
+++ b/crates/radicle/src/storage/refs/sigrefs/read/test/resolve_tip.rs
@@ -1,9 +1,9 @@
use super::mock;
use super::mock::{AlwaysVerify, MockRepository};
-use crate::storage::refs::sigrefs::read::error;
-use crate::storage::refs::sigrefs::read::Tip;
-use crate::storage::refs::sigrefs::SignedRefsReader;
use crate::storage::refs::IDENTITY_ROOT;
+use crate::storage::refs::sigrefs::SignedRefsReader;
+use crate::storage::refs::sigrefs::read::Tip;
+use crate::storage::refs::sigrefs::read::error;
#[test]
fn missing_sigrefs() {
diff --git a/crates/radicle/src/storage/refs/sigrefs/read/test/signed_refs_reader.rs b/crates/radicle/src/storage/refs/sigrefs/read/test/signed_refs_reader.rs
index a83a43c6..faa20629 100644
--- a/crates/radicle/src/storage/refs/sigrefs/read/test/signed_refs_reader.rs
+++ b/crates/radicle/src/storage/refs/sigrefs/read/test/signed_refs_reader.rs
@@ -1,8 +1,8 @@
use radicle_oid::Oid;
-use crate::storage::refs::sigrefs::read::error::{Read, Verify};
-use crate::storage::refs::sigrefs::read::{error, FeatureLevels, SignedRefsReader, Tip};
use crate::storage::refs::sigrefs::VerifiedCommit;
+use crate::storage::refs::sigrefs::read::error::{Read, Verify};
+use crate::storage::refs::sigrefs::read::{FeatureLevels, SignedRefsReader, Tip, error};
use crate::storage::refs::{FeatureLevel, IDENTITY_ROOT, SIGREFS_PARENT};
use crate::{assert_matches, git};
diff --git a/crates/radicle/src/storage/refs/sigrefs/read/test/tree_reader.rs b/crates/radicle/src/storage/refs/sigrefs/read/test/tree_reader.rs
index a9ced3b3..899b6446 100644
--- a/crates/radicle/src/storage/refs/sigrefs/read/test/tree_reader.rs
+++ b/crates/radicle/src/storage/refs/sigrefs/read/test/tree_reader.rs
@@ -1,8 +1,8 @@
use radicle_oid::Oid;
use crate::git;
-use crate::storage::refs::sigrefs::read::{error, SignedRefsReader, Tip};
use crate::storage::refs::sigrefs::VerifiedCommit;
+use crate::storage::refs::sigrefs::read::{SignedRefsReader, Tip, error};
use crate::storage::refs::{IDENTITY_ROOT, REFS_BLOB_PATH, SIGNATURE_BLOB_PATH};
use super::mock;
diff --git a/crates/radicle/src/storage/refs/sigrefs/write.rs b/crates/radicle/src/storage/refs/sigrefs/write.rs
index 54088d27..caf25427 100644
--- a/crates/radicle/src/storage/refs/sigrefs/write.rs
+++ b/crates/radicle/src/storage/refs/sigrefs/write.rs
@@ -5,20 +5,20 @@ mod test;
use std::path::Path;
-use crypto::signature::{self, Signer};
use crypto::PublicKey;
+use crypto::signature::{self, Signer};
use radicle_core::{NodeId, RepoId};
use radicle_git_metadata::author::Author;
-use radicle_git_metadata::commit::{headers::Headers, trailers::OwnedTrailer, CommitData};
+use radicle_git_metadata::commit::{CommitData, headers::Headers, trailers::OwnedTrailer};
use radicle_oid::Oid;
use crate::git;
-use crate::storage::refs::sigrefs::git::{object, reference, Committer};
-use crate::storage::refs::sigrefs::read::CommitReader;
-use crate::storage::refs::sigrefs::{read, VerifiedCommit};
use crate::storage::refs::SignedRefs;
+use crate::storage::refs::sigrefs::git::{Committer, object, reference};
+use crate::storage::refs::sigrefs::read::CommitReader;
+use crate::storage::refs::sigrefs::{VerifiedCommit, read};
use crate::storage::refs::{
- FeatureLevel, Refs, IDENTITY_ROOT, REFS_BLOB_PATH, SIGNATURE_BLOB_PATH, SIGREFS_BRANCH,
+ FeatureLevel, IDENTITY_ROOT, REFS_BLOB_PATH, Refs, SIGNATURE_BLOB_PATH, SIGREFS_BRANCH,
SIGREFS_PARENT,
};
@@ -161,7 +161,7 @@ where
let commit_writer = match head {
Ok(Some(head)) if !force && head.is_unchanged(&refs) => {
- return Ok(Update::unchanged(head.verified))
+ return Ok(Update::unchanged(head.verified));
}
Ok(Some(head)) => CommitWriter::with_parent(
refs,
diff --git a/crates/radicle/src/storage/refs/sigrefs/write/test/commit_writer.rs b/crates/radicle/src/storage/refs/sigrefs/write/test/commit_writer.rs
index 51813a0d..8d82731d 100644
--- a/crates/radicle/src/storage/refs/sigrefs/write/test/commit_writer.rs
+++ b/crates/radicle/src/storage/refs/sigrefs/write/test/commit_writer.rs
@@ -1,7 +1,7 @@
use super::mock;
use super::mock::MockRepository;
-use crate::storage::refs::sigrefs::write::{error, CommitWriter};
-use crate::storage::refs::{Refs, IDENTITY_ROOT};
+use crate::storage::refs::sigrefs::write::{CommitWriter, error};
+use crate::storage::refs::{IDENTITY_ROOT, Refs};
fn mock_refs() -> Refs {
Refs::from(
diff --git a/crates/radicle/src/storage/refs/sigrefs/write/test/head_reader.rs b/crates/radicle/src/storage/refs/sigrefs/write/test/head_reader.rs
index b7d269fe..448c2198 100644
--- a/crates/radicle/src/storage/refs/sigrefs/write/test/head_reader.rs
+++ b/crates/radicle/src/storage/refs/sigrefs/write/test/head_reader.rs
@@ -2,8 +2,8 @@ use radicle_git_ref_format::Component;
use super::mock::{self, MockRepository};
use crate::storage::refs::sigrefs::read;
-use crate::storage::refs::sigrefs::write::{error, Head, HeadReader};
-use crate::storage::refs::{Refs, IDENTITY_ROOT, SIGREFS_BRANCH};
+use crate::storage::refs::sigrefs::write::{Head, HeadReader, error};
+use crate::storage::refs::{IDENTITY_ROOT, Refs, SIGREFS_BRANCH};
/// Drive `HeadReader` directly via the sigrefs reference for `mock::node_id()`.
fn read(repo: &MockRepository) -> Result<Option<Head>, error::Head> {
diff --git a/crates/radicle/src/storage/refs/sigrefs/write/test/mock.rs b/crates/radicle/src/storage/refs/sigrefs/write/test/mock.rs
index 600b6ded..23ff266a 100644
--- a/crates/radicle/src/storage/refs/sigrefs/write/test/mock.rs
+++ b/crates/radicle/src/storage/refs/sigrefs/write/test/mock.rs
@@ -4,16 +4,16 @@ use std::str::FromStr as _;
use radicle_core::{NodeId, RepoId};
use radicle_git_metadata::author::{Author, Time};
+use radicle_git_metadata::commit::CommitData;
use radicle_git_metadata::commit::headers::Headers;
use radicle_git_metadata::commit::trailers::OwnedTrailer;
-use radicle_git_metadata::commit::CommitData;
use radicle_oid::Oid;
use crate::git;
use crate::identity::doc;
-use crate::storage::refs::sigrefs::git::{object, reference};
-use crate::storage::refs::{Refs, REFS_BLOB_PATH, SIGNATURE_BLOB_PATH, SIGREFS_BRANCH};
use crate::storage::HasRepoId;
+use crate::storage::refs::sigrefs::git::{object, reference};
+use crate::storage::refs::{REFS_BLOB_PATH, Refs, SIGNATURE_BLOB_PATH, SIGREFS_BRANCH};
const MOCKED_IDENTITY: u8 = 99u8;
diff --git a/crates/radicle/src/storage/refs/sigrefs/write/test/signed_refs_writer.rs b/crates/radicle/src/storage/refs/sigrefs/write/test/signed_refs_writer.rs
index fb6b721d..d58015a0 100644
--- a/crates/radicle/src/storage/refs/sigrefs/write/test/signed_refs_writer.rs
+++ b/crates/radicle/src/storage/refs/sigrefs/write/test/signed_refs_writer.rs
@@ -1,8 +1,8 @@
use radicle_oid::Oid;
use crate::storage::refs::sigrefs::git::Committer;
-use crate::storage::refs::sigrefs::write::{error, SignedRefsWriter, Update};
-use crate::storage::refs::{FeatureLevel, Refs, IDENTITY_ROOT, SIGREFS_BRANCH};
+use crate::storage::refs::sigrefs::write::{SignedRefsWriter, Update, error};
+use crate::storage::refs::{FeatureLevel, IDENTITY_ROOT, Refs, SIGREFS_BRANCH};
use super::mock;
use super::mock::MockRepository;
diff --git a/crates/radicle/src/storage/refs/sigrefs/write/test/tree_writer.rs b/crates/radicle/src/storage/refs/sigrefs/write/test/tree_writer.rs
index 76db0071..91fd2b2a 100644
--- a/crates/radicle/src/storage/refs/sigrefs/write/test/tree_writer.rs
+++ b/crates/radicle/src/storage/refs/sigrefs/write/test/tree_writer.rs
@@ -1,7 +1,7 @@
use super::mock;
use super::mock::MockRepository;
-use crate::storage::refs::sigrefs::write::{error, Tree, TreeWriter};
use crate::storage::refs::Refs;
+use crate::storage::refs::sigrefs::write::{Tree, TreeWriter, error};
fn mock_refs() -> Refs {
Refs::from([(mock::refs_heads_main(), mock::oid(10))].into_iter())
diff --git a/crates/radicle/src/test.rs b/crates/radicle/src/test.rs
index e6b40ed2..0c141c24 100644
--- a/crates/radicle/src/test.rs
+++ b/crates/radicle/src/test.rs
@@ -71,14 +71,14 @@ pub fn fetch<W: WriteRepository>(
pub mod setup {
use std::path::{Path, PathBuf};
- use tempfile::{tempdir, TempDir};
+ use tempfile::{TempDir, tempdir};
use super::storage::{Namespaces, RefUpdate};
use crate::crypto::test::signer::MockSigner;
use crate::node::device::Device;
- use crate::storage::git::transport::remote;
use crate::storage::git::Repository;
- use crate::{git, profile::Home, rad::REMOTE_NAME, test::fixtures, Storage};
+ use crate::storage::git::transport::remote;
+ use crate::{Storage, git, profile::Home, rad::REMOTE_NAME, test::fixtures};
use crate::{prelude::*, rad};
/// A node.
diff --git a/crates/radicle/src/test/arbitrary.rs b/crates/radicle/src/test/arbitrary.rs
index a3a2a109..3d356dc8 100644
--- a/crates/radicle/src/test/arbitrary.rs
+++ b/crates/radicle/src/test/arbitrary.rs
@@ -5,16 +5,16 @@ use std::str::FromStr;
use std::{iter, net};
use crypto::PublicKey;
-use cyphernet::addr::tor::OnionAddrV3;
use cyphernet::EcPk;
+use cyphernet::addr::tor::OnionAddrV3;
use qcheck::Arbitrary;
use crate::identity::doc::Visibility;
use crate::identity::project::ProjectName;
use crate::identity::{
+ Did,
doc::{Doc, DocAt, RawDoc, RepoId},
project::Project,
- Did,
};
use crate::node::address::{AddressType, Source};
use crate::node::{Address, Alias, KnownAddress, Timestamp, UserAgent};
diff --git a/crates/radicle/src/test/assert.rs b/crates/radicle/src/test/assert.rs
index 16b84cc3..13942dd6 100644
--- a/crates/radicle/src/test/assert.rs
+++ b/crates/radicle/src/test/assert.rs
@@ -125,7 +125,7 @@ macro_rules! _assert_matches_cfg {
#[cfg(test)]
mod test {
- use std::panic::{catch_unwind, UnwindSafe};
+ use std::panic::{UnwindSafe, catch_unwind};
#[derive(Debug)]
enum Foo {
diff --git a/crates/radicle/src/test/fixtures.rs b/crates/radicle/src/test/fixtures.rs
index c7f274ba..7acc5bd5 100644
--- a/crates/radicle/src/test/fixtures.rs
+++ b/crates/radicle/src/test/fixtures.rs
@@ -3,13 +3,13 @@ use std::str::FromStr;
use crate::crypto::PublicKey;
use crate::git;
-use crate::identity::doc::Visibility;
use crate::identity::RepoId;
-use crate::node::device::Device;
+use crate::identity::doc::Visibility;
use crate::node::Alias;
+use crate::node::device::Device;
use crate::rad;
-use crate::storage::git::transport;
use crate::storage::git::Storage;
+use crate::storage::git::transport;
use crate::storage::refs::SignedRefs;
/// The birth of the radicle project, January 1st, 2018.
diff --git a/crates/radicle/src/test/storage.rs b/crates/radicle/src/test/storage.rs
index 9bc00af7..4175a67d 100644
--- a/crates/radicle/src/test/storage.rs
+++ b/crates/radicle/src/test/storage.rs
@@ -10,8 +10,8 @@ pub use crate::git;
use crate::git::fmt;
use crate::identity::doc::{Doc, DocAt, DocError, RawDoc, RepoId};
-use crate::node::device::Device;
use crate::node::NodeId;
+use crate::node::device::Device;
pub use crate::storage::*;
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 c2be2ca1-6f15-484a-a90b-0d8077ba5bd6 -v /opt/radcis/ci.rad.levitte.org/cci/state/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/s:/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/s:ro -v /opt/radcis/ci.rad.levitte.org/cci/state/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w:/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w -w /c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w -v /opt/radcis/ci.rad.levitte.org/.radicle:/${id}/.radicle:ro -e RAD_HOME=/${id}/.radicle rust:trixie bash /c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/s/script.sh
+ export 'RUSTDOCFLAGS=-D warnings'
+ RUSTDOCFLAGS='-D warnings'
+ cargo --version
info: syncing channel updates for '1.90-x86_64-unknown-linux-gnu'
info: latest update on 2025-09-18, rust version 1.90.0 (1159e78c4 2025-09-14)
info: downloading component 'cargo'
info: downloading component 'clippy'
info: downloading component 'rust-docs'
info: downloading component 'rust-src'
info: downloading component 'rust-std'
info: downloading component 'rustc'
info: downloading component 'rustfmt'
info: installing component 'cargo'
info: installing component 'clippy'
info: installing component 'rust-docs'
info: installing component 'rust-src'
info: installing component 'rust-std'
info: installing component 'rustc'
info: installing component 'rustfmt'
cargo 1.90.0 (840b83a10 2025-07-30)
+ rustc --version
rustc 1.90.0 (1159e78c4 2025-09-14)
+ cargo fmt --check
+ cargo clippy --all-targets --workspace -- --deny warnings
Updating crates.io index
Downloading crates ...
Downloaded aead v0.5.2
Downloaded data-encoding-macro-internal v0.1.12
Downloaded addr2line v0.25.1
Downloaded fnv v1.0.7
Downloaded icu_locid_transform_data v1.5.1
Downloaded byteorder v1.5.0
Downloaded base64 v0.22.1
Downloaded ctr v0.9.2
Downloaded errno v0.3.13
Downloaded clap_derive v4.5.41
Downloaded gix-diff v0.58.0
Downloaded gix-sec v0.13.1
Downloaded gix-chunk v0.6.0
Downloaded gix-validate v0.11.0
Downloaded icu_normalizer v1.5.0
Downloaded gix-tempfile v21.0.1
Downloaded humantime v2.3.0
Downloaded erased-serde v0.4.6
Downloaded email_address v0.2.9
Downloaded icu_properties v1.5.1
Downloaded indicatif v0.18.0
Downloaded parking_lot v0.12.5
Downloaded gix-trace v0.1.18
Downloaded normalize-line-endings v0.3.0
Downloaded gix-glob v0.24.0
Downloaded form_urlencoded v1.2.1
Downloaded proc-macro-error-attr2 v2.0.0
Downloaded ed25519 v1.5.3
Downloaded keccak v0.1.6
Downloaded lock_api v0.4.14
Downloaded inout v0.1.3
Downloaded base16ct v0.2.0
Downloaded litrs v0.4.1
Downloaded noise-framework v0.4.0
Downloaded clap_builder v4.5.44
Downloaded phf_shared v0.11.3
Downloaded lazy_static v1.5.0
Downloaded num v0.4.3
Downloaded phf v0.11.3
Downloaded num-complex v0.4.6
Downloaded radicle-git-ext v0.12.0
Downloaded qcheck v1.0.0
Downloaded qcheck-macros v1.0.0
Downloaded ff v0.13.0
Downloaded quick-error v1.2.3
Downloaded poly1305 v0.8.0
Downloaded rfc6979 v0.4.0
Downloaded paste v1.0.15
Downloaded serde_spanned v1.0.4
Downloaded salsa20 v0.10.2
Downloaded rand_core v0.9.3
Downloaded referencing v0.30.0
Downloaded serde_fmt v1.0.3
Downloaded siphasher v1.0.1
Downloaded signal-hook-mio v0.2.4
Downloaded socks5-client v0.4.1
Downloaded strsim v0.11.1
Downloaded sec1 v0.7.3
Downloaded heapless v0.8.0
Downloaded sval_ref v2.14.1
Downloaded sval_json v2.14.1
Downloaded ssh-cipher v0.2.0
Downloaded sval_dynamic v2.14.1
Downloaded test-log v0.2.19
Downloaded streaming-iterator v0.1.9
Downloaded sval_serde v2.14.1
Downloaded spki v0.7.3
Downloaded signal-hook-registry v1.4.5
Downloaded derive_more v2.0.1
Downloaded universal-hash v0.5.1
Downloaded utf8_iter v1.0.4
Downloaded thiserror v1.0.69
Downloaded xattr v1.3.1
Downloaded tree-sitter-html v0.23.2
Downloaded tree-sitter-json v0.24.8
Downloaded zerofrom v0.1.6
Downloaded yoke-derive v0.7.5
Downloaded zerofrom-derive v0.1.6
Downloaded write16 v1.0.0
Downloaded rand v0.8.5
Downloaded tree-sitter-css v0.23.1
Downloaded yoke v0.7.5
Downloaded tinyvec v1.6.0
Downloaded writeable v0.5.5
Downloaded yansi v0.5.1
Downloaded zeroize v1.7.0
Downloaded tar v0.4.40
Downloaded zerovec-derive v0.10.3
Downloaded rsa v0.9.6
Downloaded toml v0.9.12+spec-1.1.0
Downloaded uuid v1.20.0
Downloaded typenum v1.17.0
Downloaded tracing-core v0.1.36
Downloaded tree-sitter-go v0.23.4
Downloaded jsonschema v0.30.0
Downloaded url v2.5.4
Downloaded unicode-segmentation v1.11.0
Downloaded radicle-surf v0.27.0
Downloaded portable-atomic v1.11.0
Downloaded p521 v0.13.3
Downloaded unicode-normalization v0.1.23
Downloaded serde_json v1.0.140
Downloaded icu_properties_data v1.5.1
Downloaded zerocopy v0.7.35
Downloaded zerovec v0.10.4
Downloaded bloomy v1.2.0
Downloaded winnow v0.7.14
Downloaded tree-sitter-c v0.23.2
Downloaded zlib-rs v0.6.0
Downloaded unicode-width v0.2.1
Downloaded syn v2.0.106
Downloaded tree-sitter-md v0.3.2
Downloaded rustix v0.38.34
Downloaded tree-sitter-rust v0.23.2
Downloaded regex-syntax v0.8.5
Downloaded rustix v1.1.3
Downloaded object v0.37.3
Downloaded tree-sitter-bash v0.23.3
Downloaded tracing v0.1.44
Downloaded bstr v1.12.0
Downloaded vcpkg v0.2.15
Downloaded syn v1.0.109
Downloaded sysinfo v0.37.2
Downloaded regex v1.11.1
Downloaded p384 v0.13.0
Downloaded tree-sitter-ruby v0.23.1
Downloaded regex-automata v0.4.9
Downloaded tree-sitter-python v0.23.4
Downloaded tracing-subscriber v0.3.22
Downloaded git2 v0.20.4
Downloaded tree-sitter v0.24.4
Downloaded proptest v1.9.0
Downloaded ssh-key v0.6.6
Downloaded itertools v0.14.0
Downloaded jiff v0.2.20
Downloaded serde v1.0.228
Downloaded tokio v1.47.1
Downloaded sha1-checked v0.10.0
Downloaded tree-sitter-typescript v0.23.2
Downloaded libc v0.2.182
Downloaded libm v0.2.8
Downloaded value-bag v1.11.1
Downloaded sha3 v0.10.8
Downloaded schemars v1.0.4
Downloaded rand v0.9.2
Downloaded num-bigint-dig v0.8.4
Downloaded sharded-slab v0.1.7
Downloaded prodash v31.0.0
Downloaded mio v1.0.4
Downloaded unicode-ident v1.0.12
Downloaded hashbrown v0.16.1
Downloaded similar v2.5.0
Downloaded signal-hook v0.3.18
Downloaded walkdir v2.5.0
Downloaded vsimd v0.8.0
Downloaded unicode-width v0.1.11
Downloaded tempfile v3.25.0
Downloaded sval_buffer v2.14.1
Downloaded socket2 v0.5.7
Downloaded toml_writer v1.0.6+spec-1.1.0
Downloaded smallvec v1.15.1
Downloaded serde_derive v1.0.228
Downloaded sem_safe v0.2.0
Downloaded rusty-fork v0.3.1
Downloaded tree-sitter-toml-ng v0.6.0
Downloaded wait-timeout v0.2.1
Downloaded version_check v0.9.4
Downloaded linux-raw-sys v0.4.13
Downloaded unarray v0.1.4
Downloaded thiserror-impl v1.0.69
Downloaded idna v1.0.3
Downloaded tinystr v0.7.6
Downloaded timeago v0.4.2
Downloaded thiserror-impl v2.0.18
Downloaded pretty_assertions v1.4.0
Downloaded thread_local v1.1.9
Downloaded snapbox v0.4.17
Downloaded miniz_oxide v0.8.8
Downloaded value-bag-sval2 v1.11.1
Downloaded value-bag-serde1 v1.11.1
Downloaded uuid-simd v0.8.0
Downloaded utf8parse v0.2.2
Downloaded utf16_iter v1.0.5
Downloaded tracing-log v0.2.0
Downloaded thiserror v2.0.18
Downloaded sval v2.14.1
Downloaded spin v0.9.8
Downloaded serde_core v1.0.228
Downloaded memchr v2.7.2
Downloaded signals_receipts v0.2.0
Downloaded crypto-bigint v0.5.5
Downloaded sha2 v0.10.8
Downloaded libgit2-sys v0.18.3+1.9.2
Downloaded backtrace v0.3.76
Downloaded unit-prefix v0.5.1
Downloaded unicode-display-width v0.3.0
Downloaded typeid v1.0.3
Downloaded tree-sitter-language v0.1.2
Downloaded tree-sitter-highlight v0.24.4
Downloaded toml_datetime v0.7.5+spec-1.1.0
Downloaded tinyvec_macros v0.1.1
Downloaded test-log-macros v0.2.19
Downloaded systemd-journal-logger v2.2.2
Downloaded synstructure v0.13.1
Downloaded sval_nested v2.14.1
Downloaded structured-logger v1.0.4
Downloaded ssh-encoding v0.2.0
Downloaded sqlite3-sys v0.18.0
Downloaded sqlite v0.37.0
Downloaded signature v2.2.0
Downloaded ryu v1.0.17
Downloaded proc-macro2 v1.0.101
Downloaded pkcs1 v0.7.5
Downloaded p256 v0.13.2
Downloaded crossterm v0.29.0
Downloaded serde_derive_internals v0.29.1
Downloaded serde-untagged v0.1.7
Downloaded schemars_derive v1.0.4
Downloaded gix-object v0.55.0
Downloaded siphasher v0.3.11
Downloaded shlex v1.3.0
Downloaded parking_lot_core v0.9.12
Downloaded signature v1.6.4
Downloaded rustversion v1.0.20
Downloaded rustc-demangle v0.1.26
Downloaded gix-transport v0.54.0
Downloaded flate2 v1.1.1
Downloaded sval_fmt v2.14.1
Downloaded subtle v2.5.0
Downloaded stable_deref_trait v1.2.0
Downloaded rand_chacha v0.9.0
Downloaded once_cell v1.21.3
Downloaded num-traits v0.2.19
Downloaded gix-ref v0.59.0
Downloaded gix-protocol v0.57.0
Downloaded hashbrown v0.14.3
Downloaded icu_locid v1.5.0
Downloaded shell-words v1.1.0
Downloaded pem-rfc7468 v0.7.0
Downloaded snapbox-macros v0.3.8
Downloaded quote v1.0.41
Downloaded pkg-config v0.3.30
Downloaded scrypt v0.11.0
Downloaded sha1 v0.10.6
Downloaded ppv-lite86 v0.2.17
Downloaded polyval v0.6.2
Downloaded sqlite3-src v0.7.0
Downloaded pbkdf2 v0.12.2
Downloaded scopeguard v1.2.0
Downloaded proc-macro-error2 v2.0.1
Downloaded pkcs8 v0.10.2
Downloaded num-bigint v0.4.6
Downloaded mio v0.8.11
Downloaded icu_normalizer_data v1.5.1
Downloaded log v0.4.27
Downloaded fancy-regex v0.14.0
Downloaded opaque-debug v0.3.1
Downloaded same-file v1.0.6
Downloaded ref-cast-impl v1.0.24
Downloaded rand_core v0.6.4
Downloaded rand_chacha v0.3.1
Downloaded radicle-std-ext v0.2.0
Downloaded gix-packetline v0.21.1
Downloaded ref-cast v1.0.24
Downloaded rand_xorshift v0.4.0
Downloaded percent-encoding v2.3.1
Downloaded derive_more-impl v2.0.1
Downloaded crossterm v0.25.0
Downloaded inquire v0.7.5
Downloaded num-integer v0.1.46
Downloaded jiff-static v0.2.20
Downloaded der v0.7.9
Downloaded num-iter v0.1.45
Downloaded num-cmp v0.1.0
Downloaded jobserver v0.1.31
Downloaded pin-project-lite v0.2.16
Downloaded nu-ansi-term v0.50.3
Downloaded memmap2 v0.9.8
Downloaded fraction v0.15.3
Downloaded cc v1.2.2
Downloaded primeorder v0.13.6
Downloaded num-rational v0.4.2
Downloaded fluent-uri v0.3.2
Downloaded arc-swap v1.8.2
Downloaded nonempty v0.9.0
Downloaded lexopt v0.3.0
Downloaded gix-shallow v0.8.1
Downloaded data-encoding-macro v0.1.14
Downloaded ct-codecs v1.1.1
Downloaded convert_case v0.7.1
Downloaded block-buffer v0.10.4
Downloaded bitflags v1.3.2
Downloaded base32 v0.4.0
Downloaded amplify_syn v2.0.1
Downloaded outref v0.5.2
Downloaded multibase v0.9.1
Downloaded maybe-async v0.2.10
Downloaded matchers v0.2.0
Downloaded litemap v0.7.5
Downloaded itoa v1.0.17
Downloaded is_terminal_polyfill v1.70.2
Downloaded icu_provider v1.5.0
Downloaded icu_collections v1.5.0
Downloaded gix-revwalk v0.27.0
Downloaded gix-object v0.56.0
Downloaded gix-hash v0.22.1
Downloaded crossbeam-channel v0.5.15
Downloaded clap v4.5.44
Downloaded autocfg v1.2.0
Downloaded anstyle-parse v0.2.3
Downloaded newline-converter v0.3.0
Downloaded hash32 v0.3.1
Downloaded group v0.13.0
Downloaded gix-command v0.7.1
Downloaded escargot v0.5.10
Downloaded cfg-if v1.0.0
Downloaded human-panic v2.0.6
Downloaded gix-url v0.35.1
Downloaded anstyle v1.0.13
Downloaded icu_provider_macros v1.5.0
Downloaded gix-path v0.11.1
Downloaded gix-credentials v0.36.0
Downloaded bitflags v2.9.1
Downloaded iana-time-zone v0.1.60
Downloaded generic-array v0.14.7
Downloaded fxhash v0.2.1
Downloaded faster-hex v0.10.0
Downloaded data-encoding v2.5.0
Downloaded crossbeam-utils v0.8.19
Downloaded const-oid v0.9.6
Downloaded bit-set v0.8.0
Downloaded ascii v1.1.0
Downloaded idna_adapter v1.2.0
Downloaded heck v0.5.0
Downloaded gix-revwalk v0.26.0
Downloaded filetime v0.2.23
Downloaded displaydoc v0.2.5
Downloaded cpufeatures v0.2.12
Downloaded cbc v0.1.2
Downloaded indexmap v2.2.6
Downloaded gix-config-value v0.17.1
Downloaded gix-commitgraph v0.33.0
Downloaded env_filter v0.1.3
Downloaded crc32fast v1.5.0
Downloaded bcrypt-pbkdf v0.10.0
Downloaded fastrand v2.3.0
Downloaded document-features v0.2.11
Downloaded cyphernet v0.5.2
Downloaded borrow-or-share v0.2.2
Downloaded gix-refspec v0.37.0
Downloaded gix-negotiate v0.27.0
Downloaded git-ref-format-core v0.6.0
Downloaded ghash v0.5.1
Downloaded env_logger v0.11.8
Downloaded cyphergraphy v0.3.0
Downloaded base-x v0.2.11
Downloaded icu_locid_transform v1.5.0
Downloaded gix-pack v0.65.0
Downloaded getrandom v0.2.15
Downloaded emojis v0.6.4
Downloaded diff v0.1.13
Downloaded chrono v0.4.38
Downloaded amplify_num v0.5.2
Downloaded gix-chunk v0.5.0
Downloaded gimli v0.32.3
Downloaded cipher v0.4.4
Downloaded chacha20poly1305 v0.10.1
Downloaded gix-traverse v0.52.0
Downloaded gix-error v0.1.0
Downloaded dyn-clone v1.0.17
Downloaded anyhow v1.0.82
Downloaded crypto-common v0.1.6
Downloaded amplify_derive v4.0.0
Downloaded equivalent v1.0.1
Downloaded ecdsa v0.16.9
Downloaded ec25519 v0.1.0
Downloaded dunce v1.0.5
Downloaded bytesize v2.0.1
Downloaded blowfish v0.9.1
Downloaded bit-vec v0.8.0
Downloaded getrandom v0.3.3
Downloaded fast-glob v0.3.3
Downloaded block-padding v0.3.3
Downloaded gix-revision v0.41.0
Downloaded gix-quote v0.6.2
Downloaded gix-odb v0.75.0
Downloaded gix-hashtable v0.12.0
Downloaded gix-actor v0.39.0
Downloaded git-ref-format-macro v0.6.0
Downloaded elliptic-curve v0.13.8
Downloaded digest v0.10.7
Downloaded hmac v0.12.1
Downloaded gix-utils v0.3.1
Downloaded gix-prompt v0.13.1
Downloaded gix-date v0.13.0
Downloaded gix-actor v0.38.0
Downloaded git-ref-format v0.6.0
Downloaded ahash v0.8.11
Downloaded chacha20 v0.9.1
Downloaded anstyle-query v1.0.2
Downloaded gix-lock v21.0.1
Downloaded gix-fs v0.19.1
Downloaded gix-features v0.46.1
Downloaded gix-date v0.14.0
Downloaded gix-commitgraph v0.32.0
Downloaded either v1.11.0
Downloaded base64 v0.21.7
Downloaded aho-corasick v1.1.3
Downloaded aes-gcm v0.10.3
Downloaded cypheraddr v0.4.0
Downloaded clap_complete v4.5.60
Downloaded bytes v1.11.1
Downloaded colored v2.1.0
Downloaded colorchoice v1.0.0
Downloaded clap_lex v0.7.5
Downloaded bytecount v0.6.8
Downloaded amplify v4.6.0
Downloaded aes v0.8.4
Downloaded base64ct v1.6.0
Downloaded anstream v0.6.21
Downloaded gix-error v0.0.0
Downloaded console v0.16.0
Downloaded adler2 v2.0.0
Downloaded linux-raw-sys v0.11.0
Downloaded libz-sys v1.1.16
Compiling libc v0.2.182
Compiling proc-macro2 v1.0.101
Compiling unicode-ident v1.0.12
Compiling quote v1.0.41
Checking cfg-if v1.0.0
Checking memchr v2.7.2
Compiling version_check v0.9.4
Compiling shlex v1.3.0
Compiling syn v2.0.106
Checking regex-syntax v0.8.5
Checking getrandom v0.2.15
Compiling typenum v1.17.0
Compiling jobserver v0.1.31
Compiling cc v1.2.2
Checking aho-corasick v1.1.3
Compiling generic-array v0.14.7
Checking regex-automata v0.4.9
Checking rand_core v0.6.4
Compiling serde_core v1.0.228
Checking crypto-common v0.1.6
Checking smallvec v1.15.1
Compiling serde v1.0.228
Checking subtle v2.5.0
Compiling thiserror v2.0.18
Checking fastrand v2.3.0
Checking stable_deref_trait v1.2.0
Checking cpufeatures v0.2.12
Compiling parking_lot_core v0.9.12
Checking bstr v1.12.0
Checking scopeguard v1.2.0
Checking lock_api v0.4.14
Checking block-buffer v0.10.4
Checking byteorder v1.5.0
Checking parking_lot v0.12.5
Checking digest v0.10.7
Checking tinyvec_macros v0.1.1
Checking bitflags v2.9.1
Checking gix-trace v0.1.18
Checking tinyvec v1.6.0
Compiling crc32fast v1.5.0
Checking gix-validate v0.11.0
Checking itoa v1.0.17
Compiling typeid v1.0.3
Checking same-file v1.0.6
Checking walkdir v2.5.0
Checking prodash v31.0.0
Checking zlib-rs v0.6.0
Compiling serde_derive v1.0.228
Compiling thiserror-impl v2.0.18
Checking unicode-normalization v0.1.23
Checking gix-utils v0.3.1
Compiling heapless v0.8.0
Checking hash32 v0.3.1
Compiling synstructure v0.13.1
Checking gix-path v0.11.1
Checking faster-hex v0.10.0
Compiling getrandom v0.3.3
Checking gix-features v0.46.1
Compiling zerofrom-derive v0.1.6
Checking sha1 v0.10.6
Checking zeroize v1.7.0
Checking sha1-checked v0.10.0
Compiling yoke-derive v0.7.5
Compiling rustix v1.1.3
Compiling pkg-config v0.3.30
Checking zerofrom v0.1.6
Checking gix-hash v0.22.1
Checking yoke v0.7.5
Compiling zerovec-derive v0.10.3
Checking linux-raw-sys v0.11.0
Compiling displaydoc v0.2.5
Checking erased-serde v0.4.6
Checking serde_fmt v1.0.3
Checking block-padding v0.3.3
Checking value-bag-serde1 v1.11.1
Checking value-bag v1.11.1
Checking once_cell v1.21.3
Checking zerovec v0.10.4
Checking inout v0.1.3
Checking log v0.4.27
Compiling syn v1.0.109
Checking cipher v0.4.4
Compiling icu_locid_transform_data v1.5.1
Checking writeable v0.5.5
Checking litemap v0.7.5
Compiling icu_provider_macros v1.5.0
Checking tinystr v0.7.6
Checking icu_locid v1.5.0
Checking percent-encoding v2.3.1
Compiling icu_properties_data v1.5.1
Checking icu_provider v1.5.0
Compiling icu_normalizer_data v1.5.1
Compiling thiserror v1.0.69
Checking icu_locid_transform v1.5.0
Checking icu_collections v1.5.0
Compiling thiserror-impl v1.0.69
Checking hashbrown v0.14.3
Checking equivalent v1.0.1
Compiling serde_json v1.0.140
Checking indexmap v2.2.6
Checking icu_properties v1.5.1
Checking sha2 v0.10.8
Checking utf8_iter v1.0.4
Checking ryu v1.0.17
Compiling vcpkg v0.2.15
Checking utf16_iter v1.0.5
Compiling ref-cast v1.0.24
Checking write16 v1.0.0
Compiling libz-sys v1.1.16
Checking tempfile v3.25.0
Compiling ref-cast-impl v1.0.24
Checking icu_normalizer v1.5.0
Checking universal-hash v0.5.1
Checking opaque-debug v0.3.1
Checking dyn-clone v1.0.17
Compiling autocfg v1.2.0
Checking idna_adapter v1.2.0
Compiling amplify_syn v2.0.1
Checking idna v1.0.3
Compiling num-traits v0.2.19
Compiling libgit2-sys v0.18.3+1.9.2
Checking signature v1.6.4
Checking ed25519 v1.5.3
Checking form_urlencoded v1.2.1
Compiling serde_derive_internals v0.29.1
Checking aead v0.5.2
Checking amplify_num v0.5.2
Compiling amplify_derive v4.0.0
Checking ct-codecs v1.1.1
Checking ascii v1.1.0
Checking ec25519 v0.1.0
Compiling schemars_derive v1.0.4
Checking url v2.5.4
Checking amplify v4.6.0
Checking git-ref-format-core v0.6.0
Checking poly1305 v0.8.0
Checking chacha20 v0.9.1
Checking cyphergraphy v0.3.0
Checking polyval v0.6.2
Checking schemars v1.0.4
Compiling sqlite3-src v0.7.0
Checking hmac v0.12.1
Checking keccak v0.1.6
Checking base64ct v1.6.0
Checking sha3 v0.10.8
Checking pem-rfc7468 v0.7.0
Checking pbkdf2 v0.12.2
Checking ghash v0.5.1
Checking aes v0.8.4
Checking ctr v0.9.2
Checking rand v0.8.5
Compiling data-encoding v2.5.0
Checking base32 v0.4.0
Checking cypheraddr v0.4.0
Checking qcheck v1.0.0
Compiling data-encoding-macro-internal v0.1.12
Checking aes-gcm v0.10.3
Checking ssh-encoding v0.2.0
Checking chacha20poly1305 v0.10.1
Checking cbc v0.1.2
Checking blowfish v0.9.1
Checking jiff v0.2.20
Checking data-encoding-macro v0.1.14
Checking bcrypt-pbkdf v0.10.0
Checking ssh-cipher v0.2.0
Checking noise-framework v0.4.0
Checking socks5-client v0.4.1
Checking base-x v0.2.11
Checking signature v2.2.0
Compiling crossbeam-utils v0.8.19
Checking ssh-key v0.6.6
Checking multibase v0.9.1
Checking cyphernet v0.5.2
Checking radicle-ssh v0.10.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-ssh)
Checking winnow v0.7.14
Checking crossbeam-channel v0.5.15
Checking hashbrown v0.16.1
Checking lazy_static v1.5.0
Checking gix-hashtable v0.12.0
Checking nonempty v0.9.0
Checking anstyle-query v1.0.2
Checking siphasher v1.0.1
Checking radicle-git-metadata v0.2.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-git-metadata)
Checking gix-error v0.1.0
Checking radicle-dag v0.10.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-dag)
Checking memmap2 v0.9.8
Checking utf8parse v0.2.2
Checking radicle-git-ref-format v0.1.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-git-ref-format)
Checking is_terminal_polyfill v1.70.2
Checking anstyle-parse v0.2.3
Checking colorchoice v1.0.0
Checking anstyle v1.0.13
Checking base64 v0.21.7
Checking iana-time-zone v0.1.60
Checking anstream v0.6.21
Checking chrono v0.4.38
Checking colored v2.1.0
Checking radicle-localtime v0.1.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-localtime)
Checking serde-untagged v0.1.7
Checking bytesize v2.0.1
Checking gix-error v0.0.0
Checking dunce v1.0.5
Checking fast-glob v0.3.3
Checking tree-sitter-language v0.1.2
Checking gix-date v0.14.0
Checking gix-date v0.13.0
Checking gix-fs v0.19.1
Checking gix-actor v0.39.0
Checking gix-object v0.56.0
Checking gix-tempfile v21.0.1
Checking gix-actor v0.38.0
Checking gix-chunk v0.6.0
Checking mio v1.0.4
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 sem_safe v0.2.0
Checking errno v0.3.13
Checking shell-words v1.1.0
Checking either v1.11.0
Checking gix-command v0.7.1
Checking signals_receipts v0.2.0
Checking gix-commitgraph v0.32.0
Checking gix-revwalk v0.27.0
Compiling signal-hook v0.3.18
Compiling object v0.37.3
Compiling rustversion v1.0.20
Checking gix-revwalk v0.26.0
Checking gix-lock v21.0.1
Checking gix-url v0.35.1
Checking gix-config-value v0.17.1
Checking gix-sec v0.13.1
Checking signal-hook-registry v1.4.5
Checking adler2 v2.0.0
Checking gimli v0.32.3
Compiling rustix v0.38.34
Checking miniz_oxide v0.8.8
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 radicle-signals v0.11.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-signals)
Checking mio v0.8.11
Checking gix-glob v0.24.0
Checking gix-packetline v0.21.1
Compiling tree-sitter v0.24.4
Compiling linux-raw-sys v0.4.13
Compiling anyhow v1.0.82
Checking rustc-demangle v0.1.26
Compiling unicode-segmentation v1.11.0
Checking backtrace v0.3.76
Compiling convert_case v0.7.1
Checking gix-transport v0.54.0
Checking gix-refspec v0.37.0
Checking signal-hook-mio v0.2.4
Checking gix-pack v0.65.0
Checking arc-swap v1.8.2
Checking gix-credentials v0.36.0
Checking gix-ref v0.59.0
Checking gix-shallow v0.8.1
Checking gix-negotiate v0.27.0
Compiling maybe-async v0.2.10
Checking regex v1.11.1
Compiling proc-macro-error-attr2 v2.0.0
Compiling portable-atomic v1.11.0
Compiling proc-macro-error2 v2.0.1
Checking gix-protocol v0.57.0
Checking gix-odb v0.75.0
Compiling xattr v1.3.1
Compiling derive_more-impl v2.0.1
Compiling filetime v0.2.23
Checking uuid v1.20.0
Checking bitflags v1.3.2
Checking bytes v1.11.1
Checking unicode-width v0.2.1
Compiling litrs v0.4.1
Checking console v0.16.0
Checking crossterm v0.25.0
Compiling document-features v0.2.11
Checking derive_more v2.0.1
Compiling tar v0.4.40
Compiling flate2 v1.1.1
Compiling git-ref-format-macro v0.6.0
Checking newline-converter v0.3.0
Checking snapbox-macros v0.3.8
Checking salsa20 v0.10.2
Checking fxhash v0.2.1
Checking strsim v0.11.1
Checking similar v2.5.0
Checking siphasher v0.3.11
Checking unit-prefix v0.5.1
Checking unicode-width v0.1.11
Checking clap_lex v0.7.5
Checking streaming-iterator v0.1.9
Compiling heck v0.5.0
Checking normalize-line-endings v0.3.0
Compiling clap_derive v4.5.41
Checking snapbox v0.4.17
Checking clap_builder v4.5.44
Checking inquire v0.7.5
Checking indicatif v0.18.0
Checking bloomy v1.2.0
Checking scrypt v0.11.0
Compiling radicle-surf v0.27.0
Checking git-ref-format v0.6.0
Checking crossterm v0.29.0
Checking unicode-display-width v0.3.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-css v0.23.1
Compiling tree-sitter-ruby v0.23.1
Compiling tree-sitter-md v0.3.2
Compiling tree-sitter-toml-ng v0.6.0
Compiling tree-sitter-rust v0.23.2
Compiling tree-sitter-python v0.23.4
Compiling tree-sitter-c v0.23.2
Compiling tree-sitter-html v0.23.2
Compiling tree-sitter-typescript v0.23.2
Compiling tree-sitter-json v0.24.8
Compiling tree-sitter-bash v0.23.3
Compiling tree-sitter-go v0.23.4
Checking toml_writer v1.0.6+spec-1.1.0
Checking radicle-std-ext v0.2.0
Checking pin-project-lite v0.2.16
Checking toml v0.9.12+spec-1.1.0
Checking tokio v1.47.1
Checking sqlite3-sys v0.18.0
Checking sqlite v0.37.0
Checking radicle-crypto v0.16.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-crypto)
Checking clap v4.5.44
Checking sysinfo v0.37.2
Compiling radicle-cli v0.20.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-cli)
Checking diff v0.1.13
Compiling radicle-node v0.19.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-node)
Checking yansi v0.5.1
Checking pretty_assertions v1.4.0
Checking human-panic v2.0.6
Checking clap_complete v4.5.60
Checking structured-logger v1.0.4
Checking radicle-systemd v0.12.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-systemd)
Checking tree-sitter-highlight v0.24.4
Checking itertools v0.14.0
Checking num-integer v0.1.46
Compiling qcheck-macros v1.0.0
Checking socket2 v0.5.7
Compiling escargot v0.5.10
Checking humantime v2.3.0
Checking lexopt v0.3.0
Checking timeago v0.4.2
Checking bit-vec v0.8.0
Checking bit-set v0.8.0
Checking num-bigint v0.4.6
Checking rand_core v0.9.3
Compiling ahash v0.8.11
Checking num-iter v0.1.45
Checking num-complex v0.4.6
Checking env_filter v0.1.3
Checking borrow-or-share v0.2.2
Checking zerocopy v0.7.35
Checking fluent-uri v0.3.2
Checking num-rational v0.4.2
Checking env_logger v0.11.8
Checking phf_shared v0.11.3
Checking num v0.4.3
Compiling test-log-macros v0.2.19
Checking wait-timeout v0.2.1
Compiling paste v1.0.15
Checking fnv v1.0.7
Compiling radicle-remote-helper v0.16.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-remote-helper)
Checking outref v0.5.2
Checking quick-error v1.2.3
Checking ppv-lite86 v0.2.17
Checking vsimd v0.8.0
Checking rusty-fork v0.3.1
Checking rand_chacha v0.9.0
Checking test-log v0.2.19
Checking uuid-simd v0.8.0
Checking phf v0.11.3
Checking fraction v0.15.3
Checking referencing v0.30.0
Checking rand_xorshift v0.4.0
Checking rand v0.9.2
Checking fancy-regex v0.14.0
Checking email_address v0.2.9
Checking bytecount v0.6.8
Checking base64 v0.22.1
Checking unarray v0.1.4
Checking num-cmp v0.1.0
Checking proptest v1.9.0
Checking emojis v0.6.4
Checking jsonschema v0.30.0
Checking radicle-windows v0.1.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-windows)
Checking git2 v0.20.4
Checking radicle-oid v0.1.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-oid)
Checking radicle-git-ext v0.12.0
Checking radicle-term v0.17.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-term)
Checking radicle-core v0.2.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-core)
Checking radicle-cob v0.19.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-cob)
Checking radicle v0.23.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle)
Checking radicle-fetch v0.19.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-fetch)
Checking radicle-cli-test v0.13.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-cli-test)
Checking radicle-schemars v0.7.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-schemars)
Checking radicle-protocol v0.7.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-protocol)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 42.52s
+ cargo build --all-targets --workspace
Compiling libc v0.2.182
Compiling cfg-if v1.0.0
Compiling memchr v2.7.2
Compiling shlex v1.3.0
Compiling regex-syntax v0.8.5
Compiling typenum v1.17.0
Compiling aho-corasick v1.1.3
Compiling generic-array v0.14.7
Compiling jobserver v0.1.31
Compiling cc v1.2.2
Compiling getrandom v0.2.15
Compiling rand_core v0.6.4
Compiling serde_core v1.0.228
Compiling regex-automata v0.4.9
Compiling crypto-common v0.1.6
Compiling smallvec v1.15.1
Compiling subtle v2.5.0
Compiling thiserror v2.0.18
Compiling cpufeatures v0.2.12
Compiling fastrand v2.3.0
Compiling stable_deref_trait v1.2.0
Compiling scopeguard v1.2.0
Compiling lock_api v0.4.14
Compiling parking_lot_core v0.9.12
Compiling block-buffer v0.10.4
Compiling serde v1.0.228
Compiling digest v0.10.7
Compiling parking_lot v0.12.5
Compiling bitflags v2.9.1
Compiling byteorder v1.5.0
Compiling tinyvec_macros v0.1.1
Compiling gix-trace v0.1.18
Compiling tinyvec v1.6.0
Compiling crc32fast v1.5.0
Compiling itoa v1.0.17
Compiling same-file v1.0.6
Compiling typeid v1.0.3
Compiling prodash v31.0.0
Compiling walkdir v2.5.0
Compiling unicode-normalization v0.1.23
Compiling zlib-rs v0.6.0
Compiling erased-serde v0.4.6
Compiling gix-utils v0.3.1
Compiling bstr v1.12.0
Compiling hash32 v0.3.1
Compiling serde_fmt v1.0.3
Compiling value-bag-serde1 v1.11.1
Compiling heapless v0.8.0
Compiling gix-validate v0.11.0
Compiling faster-hex v0.10.0
Compiling gix-path v0.11.1
Compiling value-bag v1.11.1
Compiling log v0.4.27
Compiling sha1 v0.10.6
Compiling zeroize v1.7.0
Compiling sha1-checked v0.10.0
Compiling zerofrom v0.1.6
Compiling getrandom v0.3.3
Compiling yoke v0.7.5
Compiling linux-raw-sys v0.11.0
Compiling zerovec v0.10.4
Compiling gix-features v0.46.1
Compiling block-padding v0.3.3
Compiling gix-hash v0.22.1
Compiling once_cell v1.21.3
Compiling rustix v1.1.3
Compiling inout v0.1.3
Compiling tinystr v0.7.6
Compiling writeable v0.5.5
Compiling cipher v0.4.4
Compiling litemap v0.7.5
Compiling percent-encoding v2.3.1
Compiling icu_locid_transform_data v1.5.1
Compiling icu_properties_data v1.5.1
Compiling icu_locid v1.5.0
Compiling icu_collections v1.5.0
Compiling equivalent v1.0.1
Compiling hashbrown v0.14.3
Compiling icu_provider v1.5.0
Compiling indexmap v2.2.6
Compiling icu_locid_transform v1.5.0
Compiling icu_normalizer_data v1.5.1
Compiling sha2 v0.10.8
Compiling write16 v1.0.0
Compiling utf8_iter v1.0.4
Compiling utf16_iter v1.0.5
Compiling ryu v1.0.17
Compiling libz-sys v1.1.16
Compiling serde_json v1.0.140
Compiling icu_properties v1.5.1
Compiling tempfile v3.25.0
Compiling thiserror v1.0.69
Compiling universal-hash v0.5.1
Compiling opaque-debug v0.3.1
Compiling ref-cast v1.0.24
Compiling dyn-clone v1.0.17
Compiling libgit2-sys v0.18.3+1.9.2
Compiling signature v1.6.4
Compiling ed25519 v1.5.3
Compiling form_urlencoded v1.2.1
Compiling aead v0.5.2
Compiling amplify_num v0.5.2
Compiling ct-codecs v1.1.1
Compiling icu_normalizer v1.5.0
Compiling idna_adapter v1.2.0
Compiling idna v1.0.3
Compiling ascii v1.1.0
Compiling amplify v4.6.0
Compiling url v2.5.4
Compiling ec25519 v0.1.0
Compiling num-traits v0.2.19
Compiling poly1305 v0.8.0
Compiling git-ref-format-core v0.6.0
Compiling chacha20 v0.9.1
Compiling cyphergraphy v0.3.0
Compiling schemars v1.0.4
Compiling polyval v0.6.2
Compiling sqlite3-src v0.7.0
Compiling hmac v0.12.1
Compiling base64ct v1.6.0
Compiling keccak v0.1.6
Compiling sha3 v0.10.8
Compiling pem-rfc7468 v0.7.0
Compiling pbkdf2 v0.12.2
Compiling ghash v0.5.1
Compiling aes v0.8.4
Compiling ctr v0.9.2
Compiling rand v0.8.5
Compiling base32 v0.4.0
Compiling cypheraddr v0.4.0
Compiling qcheck v1.0.0
Compiling aes-gcm v0.10.3
Compiling ssh-encoding v0.2.0
Compiling chacha20poly1305 v0.10.1
Compiling cbc v0.1.2
Compiling blowfish v0.9.1
Compiling jiff v0.2.20
Compiling data-encoding v2.5.0
Compiling data-encoding-macro v0.1.14
Compiling bcrypt-pbkdf v0.10.0
Compiling ssh-cipher v0.2.0
Compiling noise-framework v0.4.0
Compiling socks5-client v0.4.1
Compiling base-x v0.2.11
Compiling signature v2.2.0
Compiling ssh-key v0.6.6
Compiling multibase v0.9.1
Compiling cyphernet v0.5.2
Compiling radicle-ssh v0.10.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-ssh)
Compiling crossbeam-utils v0.8.19
Compiling winnow v0.7.14
Compiling crossbeam-channel v0.5.15
Compiling lazy_static v1.5.0
Compiling hashbrown v0.16.1
Compiling gix-hashtable v0.12.0
Compiling nonempty v0.9.0
Compiling anstyle-query v1.0.2
Compiling siphasher v1.0.1
Compiling gix-error v0.1.0
Compiling radicle-dag v0.10.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-dag)
Compiling radicle-git-metadata v0.2.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-git-metadata)
Compiling memmap2 v0.9.8
Compiling utf8parse v0.2.2
Compiling anstyle-parse v0.2.3
Compiling radicle-git-ref-format v0.1.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-git-ref-format)
Compiling base64 v0.21.7
Compiling colorchoice v1.0.0
Compiling is_terminal_polyfill v1.70.2
Compiling anstyle v1.0.13
Compiling iana-time-zone v0.1.60
Compiling anstream v0.6.21
Compiling chrono v0.4.38
Compiling colored v2.1.0
Compiling radicle-localtime v0.1.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-localtime)
Compiling gix-error v0.0.0
Compiling serde-untagged v0.1.7
Compiling bytesize v2.0.1
Compiling tree-sitter-language v0.1.2
Compiling fast-glob v0.3.3
Compiling dunce v1.0.5
Compiling gix-date v0.14.0
Compiling adler2 v2.0.0
Compiling gix-date v0.13.0
Compiling gix-actor v0.39.0
Compiling gix-fs v0.19.1
Compiling gix-object v0.56.0
Compiling gix-tempfile v21.0.1
Compiling gix-actor v0.38.0
Compiling gix-chunk v0.6.0
Compiling mio v1.0.4
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 sem_safe v0.2.0
Compiling errno v0.3.13
Compiling shell-words v1.1.0
Compiling unicode-segmentation v1.11.0
Compiling either v1.11.0
Compiling gix-command v0.7.1
Compiling signals_receipts v0.2.0
Compiling gix-commitgraph v0.32.0
Compiling gix-revwalk v0.27.0
Compiling gix-revwalk v0.26.0
Compiling gix-lock v21.0.1
Compiling gix-url v0.35.1
Compiling gix-config-value v0.17.1
Compiling gix-sec v0.13.1
Compiling signal-hook-registry v1.4.5
Compiling gimli v0.32.3
Compiling signal-hook v0.3.18
Compiling gix-prompt v0.13.1
Compiling gix-traverse v0.52.0
Compiling gix-revision v0.41.0
Compiling object v0.37.3
Compiling addr2line v0.25.1
Compiling radicle-signals v0.11.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-signals)
Compiling gix-diff v0.58.0
Compiling miniz_oxide v0.8.8
Compiling gix-glob v0.24.0
Compiling mio v0.8.11
Compiling gix-packetline v0.21.1
Compiling tree-sitter v0.24.4
Compiling rustc-demangle v0.1.26
Compiling backtrace v0.3.76
Compiling rustix v0.38.34
Compiling gix-transport v0.54.0
Compiling signal-hook-mio v0.2.4
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 sqlite3-sys v0.18.0
Compiling sqlite v0.37.0
Compiling gix-shallow v0.8.1
Compiling radicle-crypto v0.16.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-crypto)
Compiling gix-ref v0.59.0
Compiling gix-negotiate v0.27.0
Compiling convert_case v0.7.1
Compiling regex v1.11.1
Compiling gix-protocol v0.57.0
Compiling derive_more-impl v2.0.1
Compiling gix-odb v0.75.0
Compiling xattr v1.3.1
Compiling uuid v1.20.0
Compiling filetime v0.2.23
Compiling unicode-width v0.2.1
Compiling bytes v1.11.1
Compiling bitflags v1.3.2
Compiling crossterm v0.25.0
Compiling console v0.16.0
Compiling tar v0.4.40
Compiling git-ref-format-macro v0.6.0
Compiling flate2 v1.1.1
Compiling derive_more v2.0.1
Compiling portable-atomic v1.11.0
Compiling anyhow v1.0.82
Compiling newline-converter v0.3.0
Compiling snapbox-macros v0.3.8
Compiling salsa20 v0.10.2
Compiling fxhash v0.2.1
Compiling strsim v0.11.1
Compiling similar v2.5.0
Compiling unicode-width v0.1.11
Compiling unit-prefix v0.5.1
Compiling streaming-iterator v0.1.9
Compiling normalize-line-endings v0.3.0
Compiling clap_lex v0.7.5
Compiling siphasher v0.3.11
Compiling bloomy v1.2.0
Compiling clap_builder v4.5.44
Compiling snapbox v0.4.17
Compiling indicatif v0.18.0
Compiling inquire v0.7.5
Compiling radicle-surf v0.27.0
Compiling scrypt v0.11.0
Compiling crossterm v0.29.0
Compiling git-ref-format v0.6.0
Compiling unicode-display-width v0.3.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-json v0.24.8
Compiling tree-sitter-bash v0.23.3
Compiling tree-sitter-go v0.23.4
Compiling tree-sitter-c v0.23.2
Compiling tree-sitter-ruby v0.23.1
Compiling tree-sitter-rust v0.23.2
Compiling tree-sitter-css v0.23.1
Compiling tree-sitter-html v0.23.2
Compiling tree-sitter-md v0.3.2
Compiling tree-sitter-typescript v0.23.2
Compiling tree-sitter-python v0.23.4
Compiling tree-sitter-toml-ng v0.6.0
Compiling radicle-std-ext v0.2.0
Compiling toml_writer v1.0.6+spec-1.1.0
Compiling pin-project-lite v0.2.16
Compiling tokio v1.47.1
Compiling toml v0.9.12+spec-1.1.0
Compiling clap v4.5.44
Compiling sysinfo v0.37.2
Compiling radicle-node v0.19.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-node)
Compiling radicle-cli v0.20.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-cli)
Compiling yansi v0.5.1
Compiling diff v0.1.13
Compiling pretty_assertions v1.4.0
Compiling human-panic v2.0.6
Compiling clap_complete v4.5.60
Compiling structured-logger v1.0.4
Compiling radicle-systemd v0.12.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-systemd)
Compiling tree-sitter-highlight v0.24.4
Compiling itertools v0.14.0
Compiling num-integer v0.1.46
Compiling socket2 v0.5.7
Compiling lexopt v0.3.0
Compiling timeago v0.4.2
Compiling humantime v2.3.0
Compiling bit-vec v0.8.0
Compiling escargot v0.5.10
Compiling bit-set v0.8.0
Compiling num-bigint v0.4.6
Compiling rand_core v0.9.3
Compiling num-iter v0.1.45
Compiling num-complex v0.4.6
Compiling env_filter v0.1.3
Compiling num-rational v0.4.2
Compiling borrow-or-share v0.2.2
Compiling zerocopy v0.7.35
Compiling ahash v0.8.11
Compiling num v0.4.3
Compiling fluent-uri v0.3.2
Compiling env_logger v0.11.8
Compiling phf_shared v0.11.3
Compiling wait-timeout v0.2.1
Compiling fnv v1.0.7
Compiling quick-error v1.2.3
Compiling radicle-remote-helper v0.16.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-remote-helper)
Compiling ppv-lite86 v0.2.17
Compiling vsimd v0.8.0
Compiling outref v0.5.2
Compiling rand_chacha v0.9.0
Compiling rusty-fork v0.3.1
Compiling uuid-simd v0.8.0
Compiling test-log v0.2.19
Compiling referencing v0.30.0
Compiling phf v0.11.3
Compiling fraction v0.15.3
Compiling rand v0.9.2
Compiling git2 v0.20.4
Compiling rand_xorshift v0.4.0
Compiling fancy-regex v0.14.0
Compiling email_address v0.2.9
Compiling num-cmp v0.1.0
Compiling base64 v0.22.1
Compiling unarray v0.1.4
Compiling bytecount v0.6.8
Compiling proptest v1.9.0
Compiling jsonschema v0.30.0
Compiling emojis v0.6.4
Compiling radicle-oid v0.1.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-oid)
Compiling radicle-git-ext v0.12.0
Compiling radicle-core v0.2.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-core)
Compiling radicle-cob v0.19.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-cob)
Compiling radicle-term v0.17.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-term)
Compiling radicle v0.23.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle)
Compiling radicle-windows v0.1.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-windows)
Compiling radicle-fetch v0.19.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-fetch)
Compiling radicle-protocol v0.7.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-protocol)
Compiling radicle-cli-test v0.13.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-cli-test)
Compiling radicle-schemars v0.7.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-schemars)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 55.94s
+ cargo doc --workspace --no-deps --all-features
Checking regex-automata v0.4.9
Compiling syn v1.0.109
Checking idna v1.0.3
Compiling num-traits v0.2.19
Checking radicle-ssh v0.10.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-ssh)
Checking url v2.5.4
Checking git2 v0.20.4
Checking proptest v1.9.0
Checking bstr v1.12.0
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 data-encoding-macro-internal v0.1.12
Checking gix-hash v0.22.1
Checking radicle-git-ref-format v0.1.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-git-ref-format)
Checking gix-error v0.1.0
Compiling amplify_derive v4.0.0
Checking gix-hashtable v0.12.0
Checking radicle-oid v0.1.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-oid)
Checking gix-error v0.0.0
Checking data-encoding-macro v0.1.14
Checking multibase v0.9.1
Checking radicle-dag v0.10.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-dag)
Checking radicle-git-metadata v0.2.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-git-metadata)
Checking gix-date v0.14.0
Checking chrono v0.4.38
Checking radicle-localtime v0.1.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-localtime)
Checking gix-date v0.13.0
Checking gix-actor v0.39.0
Checking gix-fs v0.19.1
Checking gix-actor v0.38.0
Checking gix-tempfile v21.0.1
Checking gix-object v0.56.0
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 gix-command v0.7.1
Checking amplify v4.6.0
Checking gix-commitgraph v0.32.0
Checking gix-revwalk v0.27.0
Checking gix-lock v21.0.1
Checking cyphergraphy v0.3.0
Checking gix-config-value v0.17.1
Checking gix-url v0.35.1
Checking gix-revwalk v0.26.0
Checking cypheraddr v0.4.0
Checking noise-framework v0.4.0
Checking gix-traverse v0.52.0
Checking gix-prompt v0.13.1
Checking gix-diff v0.58.0
Checking socks5-client v0.4.1
Checking gix-revision v0.41.0
Checking radicle-signals v0.11.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-signals)
Checking cyphernet v0.5.2
Checking gix-glob v0.24.0
Checking radicle-crypto v0.16.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-crypto)
Checking gix-packetline v0.21.1
Checking regex v1.11.1
Checking gix-refspec v0.37.0
Checking gix-transport v0.54.0
Checking radicle-cob v0.19.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-cob)
Checking radicle-core v0.2.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-core)
Checking tree-sitter v0.24.4
Checking gix-pack v0.65.0
Checking git-ref-format v0.6.0
Checking gix-credentials v0.36.0
Checking gix-shallow v0.8.1
Checking gix-ref v0.59.0
Checking gix-negotiate v0.27.0
Checking radicle v0.23.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle)
Checking radicle-git-ext v0.12.0
Checking uuid v1.20.0
Compiling radicle-cli v0.20.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-cli)
Checking gix-odb v0.75.0
Checking human-panic v2.0.6
Checking gix-protocol v0.57.0
Checking radicle-surf v0.27.0
Checking tree-sitter-toml-ng v0.6.0
Checking radicle-term v0.17.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-term)
Checking tree-sitter-highlight v0.24.4
Checking radicle-systemd v0.12.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-systemd)
Documenting radicle-systemd v0.12.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-systemd)
Documenting radicle v0.23.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle)
Documenting radicle-term v0.17.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-term)
Documenting radicle-cob v0.19.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-cob)
Documenting radicle-core v0.2.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-core)
Documenting radicle-crypto v0.16.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-crypto)
Documenting radicle-signals v0.11.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-signals)
Documenting radicle-oid v0.1.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-oid)
Documenting radicle-git-ref-format v0.1.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-git-ref-format)
Documenting radicle-localtime v0.1.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-localtime)
Documenting radicle-ssh v0.10.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-ssh)
Documenting radicle-dag v0.10.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-dag)
Documenting radicle-git-metadata v0.2.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-git-metadata)
Documenting radicle-windows v0.1.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-windows)
Checking radicle-fetch v0.19.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-fetch)
Documenting radicle-cli v0.20.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-cli)
Documenting radicle-cli-test v0.13.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-cli-test)
Checking radicle-protocol v0.7.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-protocol)
Documenting radicle-protocol v0.7.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-protocol)
Documenting radicle-node v0.19.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-node)
Documenting radicle-fetch v0.19.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-fetch)
Documenting radicle-schemars v0.7.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-schemars)
Documenting radicle-remote-helper v0.16.0 (/c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/w/crates/radicle-remote-helper)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.39s
Generated /c2be2ca1-6f15-484a-a90b-0d8077ba5bd6/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.14s
Running unittests src/lib.rs (target/debug/deps/radicle-f34e05c9727b7204)
running 321 tests
test canonical::formatter::test::ascii_control_characters ... ok
test canonical::formatter::test::securesystemslib_asserts ... ok
test canonical::formatter::test::ordered_nested_object ... ok
test cob::cache::migrations::_2::tests::test_patch_json_deserialization ... ok
test cob::cache::tests::test_check_version ... ok
test cob::cache::tests::test_migrate_to ... ok
test cob::common::test::test_color ... ok
test cob::common::test::test_title ... ok
test cob::cache::migrations::_2::tests::test_migration_2 ... ok
test cob::common::test::test_emojis ... 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_reject_concurrent ... ok
test cob::identity::test::test_identity_remove_delegate_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_all ... ok
test cob::issue::test::test_issue_comment ... ok
test cob::issue::test::test_issue_comment_redact ... 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_change_state ... ok
test cob::issue::test::test_issue_create_and_unassign ... ok
test cob::issue::test::test_issue_edit ... ok
test cob::issue::test::test_issue_create_and_reassign ... ok
test cob::issue::test::test_issue_edit_description ... ok
test cob::issue::test::test_issue_label ... 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_multilines ... 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_find_by_revision ... 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_remove ... 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_merge ... ok
test cob::patch::test::test_patch_discussion ... ok
test cob::patch::test::test_patch_redact ... ok
test cob::patch::cache::tests::test_counts ... ok
test cob::patch::test::test_patch_review_comment ... ok
test cob::patch::test::test_patch_review ... ok
test cob::patch::test::test_patch_review_edit ... ok
test cob::patch::test::test_patch_review_duplicate ... 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_patch_review_edit_comment ... ok
test cob::patch::test::test_revision_review_merge_redacted ... ok
test cob::patch::test::test_revision_reaction ... ok
test cob::patch::test::test_patch_review_revision_redact ... ok
test cob::stream::tests::test_all_from_until ... ok
test cob::stream::tests::test_all_from ... ok
test cob::stream::tests::test_regression_from_until ... ok
test cob::stream::tests::test_from_until ... ok
test cob::patch::test::test_patch_update ... ok
test cob::thread::tests::test_comment_edit_missing ... ok
test cob::stream::tests::test_all_until ... ok
test cob::thread::tests::test_comment_edit_redacted ... ok
test cob::thread::tests::test_comment_redact_missing ... ok
test cob::thread::tests::test_edit_comment ... ok
test cob::thread::tests::test_duplicate_comments ... ok
test cob::thread::tests::test_redact_comment ... ok
test cob::thread::tests::test_timeline ... ok
test git::canonical::quorum::test::merge_base_commutative ... ok
test git::canonical::quorum::test::test_merge_bases ... ok
test git::canonical::rules::tests::test_deserialize_extensions ... ok
test git::canonical::rules::tests::test_deserialization ... ok
test git::canonical::rules::tests::test_order ... ok
test git::canonical::rules::tests::test_roundtrip ... ok
test git::canonical::rules::tests::test_rule_validate_success ... ok
test git::canonical::rules::tests::test_special_branches ... 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::tests::test_canonical ... 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::did::test::test_did_encode_decode ... ok
test identity::did::test::test_did_vectors ... ok
test git::canonical::rules::tests::test_rule_validate_failures ... ok
test identity::doc::test::test_canonical_doc ... ok
test identity::doc::test::test_canonical_example ... 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_max_delegates ... 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 git::canonical::tests::test_quorum_properties ... ok
test node::address::store::test::test_empty ... 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_entries ... 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_insert_and_remove ... ok
test node::address::store::test::test_remove_nothing ... ok
test node::address::store::test::test_node_aliases ... 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::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::db::config::test::database_config_valid_combinations ... ok
test node::db::config::test::invalid ... 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::ipv6_formatted_dns_address_is_retyped_to_ipv6 ... ok
test node::db::test::migration_8::migration_applies_to_all_nodes ... 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::test_version ... ok
test node::features::test::test_operations ... 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_policy ... ok
test node::policy::store::test::test_repo_policies ... ok
test node::policy::store::test::test_node_aliases ... 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_and_remove ... ok
test node::routing::test::test_insert_existing_updated_time ... 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 node::sync::fetch::test::preferred_seeds_target_returned_over_replicas ... ok
test node::sync::fetch::test::reaches_target_of_max_replicas ... ok
test node::sync::fetch::test::reaches_target_of_preferred_seeds ... 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_replicas ... ok
test profile::test::canonicalize_home ... ok
test profile::test::test_config ... ok
test cob::thread::tests::prop_ordering ... ok
test rad::tests::test_checkout ... ok
test rad::tests::test_init ... ok
test rad::tests::test_fork ... 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::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 storage::refs::sigrefs::property::idempotent ... ok
test identity::doc::test::prop_encode_decode ... ok
test storage::refs::sigrefs::property::roundtrip ... ok
test result: ok. 321 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 3.19s
Running unittests src/lib.rs (target/debug/deps/radicle_cli-ec709e4f9bbe6e62)
running 46 tests
test commands::block::args::test::should_not_parse ... ok
test commands::block::args::test::should_parse_rid ... ok
test commands::block::args::test::should_parse_nid ... ok
test commands::clone::args::test::should_parse_rid_non_urn ... ok
test commands::clone::args::test::should_parse_rid_urn ... ok
test commands::clone::args::test::should_parse_rid_url ... ok
test commands::cob::args::test::should_allow_log_pretty_format ... ok
test commands::cob::args::test::should_allow_log_json_format ... ok
test commands::cob::args::test::should_allow_show_json_format ... ok
test commands::cob::args::test::should_allow_update_json_format ... ok
test commands::cob::args::test::should_not_allow_show_pretty_format ... ok
test commands::fork::args::test::should_not_parse_rid_url ... ok
test commands::fork::args::test::should_parse_rid_non_urn ... ok
test commands::fork::args::test::should_parse_rid_urn ... ok
test commands::cob::args::test::should_not_allow_update_pretty_format ... ok
test commands::id::args::test::should_not_parse_into_payload - should panic ... 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_parse_into_payload ... ok
test commands::init::args::test::should_not_parse_rid_url ... ok
test commands::id::args::test::should_parse_multiple_payloads ... ok
test commands::id::args::test::should_not_parse_single_payloads ... ok
test commands::id::args::test::should_parse_single_payload ... ok
test commands::init::args::test::should_parse_rid_non_urn ... ok
test commands::inspect::test::test_tree ... ok
test commands::patch::review::builder::tests::test_review_comments_before ... ok
test commands::init::args::test::should_parse_rid_urn ... 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::patch::review::builder::tests::test_review_comments_split_hunk ... ok
test commands::publish::args::test::should_not_parse_rid_url ... ok
test commands::publish::args::test::should_parse_rid_non_urn ... ok
test commands::publish::args::test::should_parse_rid_urn ... ok
test git::ddiff::tests::diff_encode_decode_ddiff_hunk ... ok
test git::pretty_diff::test::test_pretty ... ignored
test terminal::args::test::should_not_parse ... ok
test git::unified_diff::test::test_diff_content_encode_decode_content ... ok
test commands::watch::args::test::should_parse_ref_str ... ok
test git::unified_diff::test::test_diff_encode_decode_diff ... ok
test terminal::format::test::test_bytes ... ok
test terminal::args::test::should_parse_nid ... ok
test terminal::format::test::test_strip_comments ... ok
test terminal::args::test::should_parse_rid ... ok
test terminal::patch::test::test_edit_display_message ... 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-19d47406e05c9282)
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-dba3ca96f7d66000)
running 115 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_unknown ... ok
test commands::clone::rad_clone_directory ... ok
test commands::clone::rad_clone_connect ... 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_operations ... ok
test commands::cob::rad_cob_migrate ... 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_annotated_tags ... 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::id::rad_id ... ok
test commands::id::rad_id_collaboration ... ignored, slow
test commands::git::git_push_converge ... 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_threshold ... ok
test commands::id::rad_id_unknown_field ... ok
test commands::id::rad_id_unauthorized_delegate ... ok
test commands::init::rad_init ... ignored, part of many other tests
test commands::id::rad_id_multi_delegate ... ok
test commands::id::rad_id_update_delete_field ... ok
test commands::init::rad_init_detached_head ... ok
test commands::init::rad_init_bare ... ok
test commands::init::rad_init_existing ... ok
test commands::init::rad_init_no_git ... 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::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::inbox::rad_inbox ... ok
test commands::init::rad_init_sync_not_connected ... ok
test commands::init::rad_init_with_existing_remote ... ok
test commands::init::rad_init_sync_preferred ... ok
test commands::issue::rad_issue ... ok
test commands::init::rad_publish ... ok
test commands::jj::rad_jj_bare ... ok
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::patch::rad_merge_no_ff ... ok
test commands::node::rad_node ... 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::patch::rad_patch_checkout_revision ... ok
test commands::init::rad_init_sync_timeout ... ok
test commands::patch::rad_patch_checkout_force ... ok
test commands::init::rad_init_sync_and_clone ... ok
test commands::patch::rad_patch_detached_head ... ok
test commands::patch::rad_patch_diff ... ok
test commands::patch::rad_patch_draft ... ok
test commands::patch::rad_patch_edit ... ok
test commands::patch::rad_patch_fetch_2 ... FAILED
test commands::patch::rad_patch_merge_draft ... ok
test commands::patch::rad_patch_fetch_1 ... ok
test commands::patch::rad_patch_delete ... ok
test commands::patch::rad_patch_revert_merge ... ok
test commands::patch::rad_patch_update ... ok
test commands::patch::rad_patch_open_explore ... ok
test commands::patch::rad_patch_via_push ... FAILED
test commands::policy::rad_block ... ok
test commands::patch::rad_review_by_hunk ... 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_unseed_many ... ok
test commands::policy::rad_seed_many ... ok
test commands::patch::rad_push_and_pull_patches ... 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::utility::rad_clean ... ok
test commands::utility::rad_config ... ok
test commands::patch::rad_patch_pull_update ... 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::sync::test_replication_via_seed ... ok
test commands::workflow::rad_workflow ... ok
test commands::utility::rad_fork ... ok
failures:
---- commands::patch::rad_patch_fetch_2 stdout ----
1774884422 test: rad-init:6: `rad init --name heartwood --description Radicle Heartwood Protocol & Stack --no-confirm --public -v` @ /tmp/.tmpfalw7I/alice/work
1774884422 test: rad-init:28: `rad init` @ /tmp/.tmpfalw7I/alice/work
1774884422 test: rad-init:35: `rad ls` @ /tmp/.tmpfalw7I/alice/work
1774884422 test: rad-init:46: `rad node inventory` @ /tmp/.tmpfalw7I/alice/work
1774884422 test: rad-patch-fetch-2:6: `git checkout -b alice/1 -q` @ /tmp/.tmpfalw7I/alice/work
1774884422 test: rad-patch-fetch-2:7: `git commit --allow-empty -m Changes #1 -q` @ /tmp/.tmpfalw7I/alice/work
1774884422 test: rad-patch-fetch-2:8: `git push rad -o patch.message=Changes HEAD:refs/patches` @ /tmp/.tmpfalw7I/alice/work
1774884422 test: rad-patch-fetch-2:12: `git checkout master -q` @ /tmp/.tmpfalw7I/alice/work
1774884422 test: rad-patch-fetch-2:13: `git branch -D alice/1 -q` @ /tmp/.tmpfalw7I/alice/work
1774884422 test: rad-patch-fetch-2:14: `git update-ref -d refs/remotes/rad/alice/1` @ /tmp/.tmpfalw7I/alice/work
1774884422 test: rad-patch-fetch-2:15: `git update-ref -d refs/remotes/rad/patches/5e2dedcc5d515fcbc1cca483d3376609fe889bfb` @ /tmp/.tmpfalw7I/alice/work
1774884422 test: rad-patch-fetch-2:16: `git gc --prune=now` @ /tmp/.tmpfalw7I/alice/work
1774884422 test: rad-patch-fetch-2:17: `git branch -r` @ /tmp/.tmpfalw7I/alice/work
1774884422 test: rad-patch-fetch-2:22: `git pull` @ /tmp/.tmpfalw7I/alice/work
1774884422 test: rad-patch-fetch-2:24: `git branch -r` @ /tmp/.tmpfalw7I/alice/work
thread 'commands::patch::rad_patch_fetch_2' panicked at crates/radicle-cli-test/src/lib.rs:502:36:
--- Expected
++++ actual: stdout
1 - rad/HEAD -> rad/master
2 1 | rad/master
3 2 | rad/patches/5e2dedcc5d515fcbc1cca483d3376609fe889bfb
Exit status: 0
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
---- commands::patch::rad_patch_via_push stdout ----
1774884423 test: rad-init:6: `rad init --name heartwood --description Radicle Heartwood Protocol & Stack --no-confirm --public -v` @ /tmp/.tmpOsgmlb/alice/work
1774884424 test: rad-init:28: `rad init` @ /tmp/.tmpOsgmlb/alice/work
1774884424 test: rad-init:35: `rad ls` @ /tmp/.tmpOsgmlb/alice/work
1774884424 test: rad-init:46: `rad node inventory` @ /tmp/.tmpOsgmlb/alice/work
1774884424 test: rad-patch-via-push:7: `git checkout -b feature/1` @ /tmp/.tmpOsgmlb/alice/work
1774884424 test: rad-patch-via-push:9: `git commit -a -m Add things -q --allow-empty` @ /tmp/.tmpOsgmlb/alice/work
1774884424 test: rad-patch-via-push:10: `git push -o patch.message=Add things #1 -o patch.message=See commits for details. rad HEAD:refs/patches` @ /tmp/.tmpOsgmlb/alice/work
1774884424 test: rad-patch-via-push:22: `rad patch show 6035d2f582afbe01ff23ea87528ae523d76875b6` @ /tmp/.tmpOsgmlb/alice/work
1774884424 test: rad-patch-via-push:45: `git branch -vv` @ /tmp/.tmpOsgmlb/alice/work
1774884424 test: rad-patch-via-push:53: `git status --short --branch` @ /tmp/.tmpOsgmlb/alice/work
1774884424 test: rad-patch-via-push:55: `git fetch` @ /tmp/.tmpOsgmlb/alice/work
1774884424 test: rad-patch-via-push:56: `git push` @ /tmp/.tmpOsgmlb/alice/work
1774884424 test: rad-patch-via-push:62: `git show-ref` @ /tmp/.tmpOsgmlb/alice/work
thread 'commands::patch::rad_patch_via_push' panicked at crates/radicle-cli-test/src/lib.rs:502:36:
--- Expected
++++ actual: stdout
1 1 | 42d894a83c9c356552a57af09ccdbd5587a99045 refs/heads/feature/1
2 2 | f2de534b5e81d7c6e2dcaf58c3dd91573c0a0354 refs/heads/master
3 - f2de534b5e81d7c6e2dcaf58c3dd91573c0a0354 refs/remotes/rad/HEAD
4 3 | f2de534b5e81d7c6e2dcaf58c3dd91573c0a0354 refs/remotes/rad/master
5 4 | 42d894a83c9c356552a57af09ccdbd5587a99045 refs/remotes/rad/patches/6035d2f582afbe01ff23ea87528ae523d76875b6
Exit status: 0
failures:
commands::patch::rad_patch_fetch_2
commands::patch::rad_patch_via_push
test result: FAILED. 111 passed; 2 failed; 2 ignored; 0 measured; 0 filtered out; finished in 68.13s
error: test failed, to rerun pass `-p radicle-cli --test commands`
Running unittests src/lib.rs (target/debug/deps/radicle_cli_test-90338f9c3e553cbf)
running 3 tests
test tests::test_parse ... ok
test tests::test_run ... ok
test tests::test_example_spaced_brackets ... ok
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
Running unittests src/lib.rs (target/debug/deps/radicle_cob-471feae7c52155c6)
running 9 tests
test object::tests::test_serde ... ok
test tests::git::list_cobs ... ok
test tests::git::traverse_cobs ... ok
test tests::git::roundtrip ... ok
test tests::invalid_parse_refstr ... ok
test tests::parse_refstr ... ok
test type_name::test::invalid_typenames ... ok
test type_name::test::valid_typenames ... ok
test tests::git::update_cob ... ok
test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
Running unittests src/lib.rs (target/debug/deps/radicle_core-71c543e62475a20f)
running 4 tests
test repo::test::invalid ... ok
test repo::test::valid ... ok
test repo::serde_impls::test::assert_prop_roundtrip_serde_json ... ok
test repo::test::assert_prop_roundtrip_parse ... 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-a664afb80ffca618)
running 12 tests
test ssh::fmt::test::test_key ... ok
test ssh::fmt::test::test_fingerprint ... ok
test ssh::keystore::tests::test_init_no_passphrase ... ok
test ssh::test::test_agent_encoding_remove ... ok
test ssh::test::test_agent_encoding_sign ... ok
test ssh::test::prop_encode_decode_sk ... 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. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.84s
Running unittests src/lib.rs (target/debug/deps/radicle_dag-05f7457e7194a495)
running 20 tests
test tests::test_cycle ... ok
test tests::test_dependencies ... ok
test tests::test_contains ... ok
test tests::test_diamond ... ok
test tests::test_fold_multiple_roots ... ok
test tests::test_fold_diamond ... 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_by_sorting ... ok
test tests::test_prune_2 ... 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-ce82cb5d8ca597dc)
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-f234fa7eabe06ba6)
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_tree_empty_header ... ok
test commit::parse::test::error::missing_header_body_separator ... ok
test commit::parse::test::error::missing_author ... 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_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_multiline_gpgsig ... ok
test commit::parse::test::success::commit_with_single_parent ... ok
test commit::parse::test::success::commit_with_trailers ... ok
test commit::parse::test::success::merge_commit ... ok
test commit::parse::test::success::root_commit ... ok
test commit::parse::test::unit::trailers_accepts_empty_input ... ok
test commit::parse::test::unit::body_last_paragraph_not_trailers_stays_in_message ... ok
test commit::parse::test::success::roundtrip ... ok
test commit::parse::test::unit::body_no_paragraph_separator_means_no_trailers ... 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-09d2e35a065977f7)
running 9 tests
test test::component ... ok
test test::component_invalid - should panic ... ok
test test::pattern ... ok
test test::qualified_invalid - should panic ... ok
test test::qualified_pattern ... ok
test test::qualified ... 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-f75e94d3ba02c400)
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_node-923986bb67f5d933)
running 79 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 fingerprint::tests::matching ... ok
test control::tests::test_seed_unseed ... ok
test tests::e2e::fetch_does_not_contain_rad_sigrefs_parent ... ok
test tests::e2e::missing_default_branch ... ok
test tests::e2e::test_background_foreground_fetch ... ok
test tests::e2e::missing_delegate_default_branch ... 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_catchup_on_refs_announcements ... ok
test tests::e2e::test_channel_reader_limit ... ok
test tests::e2e::test_clone ... ok
test tests::e2e::test_dont_fetch_owned_refs ... ok
test tests::e2e::test_connection_crossing ... ok
test tests::e2e::test_concurrent_fetches ... ok
test tests::e2e::test_fetch_followed_remotes ... ok
test tests::e2e::test_fetch_preserve_owned_refs ... 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_fastforward_identity_doc ... ok
test tests::e2e::test_non_fastforward_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_inventory_sync_ring ... ok
test tests::e2e::test_replication_invalid ... ok
test tests::e2e::test_replication_ref_in_sigrefs ... ok
test tests::e2e::test_inventory_sync_star ... ok
test tests::test_announcement_rebroadcast ... ok
test tests::test_announcement_rebroadcast_timestamp_filtered ... ok
test tests::test_announcement_rebroadcast_duplicates ... ok
test tests::test_connection_kept_alive ... ok
test tests::test_announcement_relay ... 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_attempt ... ok
test tests::test_persistent_peer_reconnect_success ... 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_private ... ok
test tests::test_announcement_message_amplification ... ok
test tests::prop_inventory_exchange_dense ... ok
test tests::test_refs_announcement_relay_public ... 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. 79 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 15.55s
Running unittests src/main.rs (target/debug/deps/radicle_node-52da137663fa7390)
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-8a3ece19594f1498)
running 10 tests
test fmt::test::fixture ... ok
test fmt::test::git2 ... ok
test fmt::test::gix ... ok
test fmt::test::zero ... ok
test git2::test::zero ... ok
test gix::test::zero ... ok
test str::test::fixture ... ok
test str::test::zero ... ok
test str::test::git2_roundtrip ... ok
test str::test::gix_roundrip ... 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-545fe92253769780)
running 99 tests
test deserializer::test::test_unparsed ... ok
test deserializer::test::test_decode_next ... 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::merge::different_rid_accepted ... ok
test fetcher::test::queue::properties::equality::symmetric ... 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::succeed_when_at_capacity ... 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::properties::merge::empty_refs_fetches_all ... 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::non_existent_returns_unexpected ... ok
test fetcher::test::state::command::cancel::cancellation_is_isolated ... 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_different_repo_same_node_within_capacity ... ok
test fetcher::test::state::command::fetch::fetch_at_capacity_enqueues ... 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::queue::properties::merge::does_not_increase_queue_length ... ok
test fetcher::test::state::command::fetch::fetch_queue_merge_takes_longer_timeout ... ok
test fetcher::test::state::command::fetch::fetch_same_repo_different_nodes_queues_second ... ok
test fetcher::test::state::command::fetch::fetch_queue_merges_already_queued ... ok
test fetcher::test::state::command::fetch::fetch_start_first_fetch_for_node ... ok
test fetcher::test::state::command::fetch::fetch_same_repo_different_refs_enqueues ... ok
test fetcher::test::state::command::fetch::fetch_queue_rejected_capacity_reached ... ok
test fetcher::test::state::command::fetched::complete_one_of_multiple ... 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::command::fetched::complete_single_ongoing ... ok
test fetcher::test::state::concurrent::fetched_then_cancel ... ok
test fetcher::test::queue::properties::merge::same_rid_merges_anywhere_in_queue ... ok
test fetcher::test::state::concurrent::interleaved_operations ... ok
test fetcher::test::state::dequeue::empty_queue_returns_none ... ok
test fetcher::test::state::dequeue::cannot_dequeue_while_node_at_capacity ... ok
test fetcher::test::state::config::min_queue_size ... ok
test fetcher::test::state::invariant::queue_integrity_after_merge ... ok
test fetcher::test::state::dequeue::maintains_fifo_order ... ok
test service::filter::test::compatible ... ok
test service::filter::test::test_parameters ... ok
test fetcher::test::state::multinode::independent_queues ... 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 service::filter::test::test_sizes ... 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 wire::message::tests::prop_roundtrip_message ... 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::test_refs_ann_max_size ... ok
test wire::message::tests::prop_message_decoder ... ok
test service::message::tests::test_node_announcement_validate ... ok
test result: ok. 99 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.65s
Running unittests src/main.rs (target/debug/deps/git_remote_rad-7056cd80ed1448fe)
running 12 tests
test protocol::tests::test_empty ... ok
test protocol::tests::test_capabilities ... ok
test protocol::tests::test_fetch ... ok
test protocol::tests::test_list_for_push ... ok
test protocol::tests::test_fetch_whitespace ... ok
test protocol::tests::test_invalid ... ok
test protocol::tests::test_list ... ok
test protocol::tests::test_push ... ok
test protocol::tests::test_option ... ok
test protocol::tests::test_push_force ... ok
test protocol::tests::test_push_delete ... ok
test protocol::tests::test_option_whitespace_preservation ... 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-7ceddc08b92aed27)
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-1a2ca7fd33a640da)
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_ssh-9f14aadafa88ba9c)
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-e2cf2d080022d36d)
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-0b9f55c733b570cc)
running 21 tests
test cell::test::test_width ... ok
test ansi::tests::colors_enabled ... ok
test ansi::tests::colors_disabled ... ok
test element::test::test_spaced ... ok
test ansi::tests::wrapping ... ok
test element::test::test_width ... ok
test table::test::test_table ... ok
test table::test::test_table_border_maximized ... ok
test element::test::test_truncate ... 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_truncate ... ok
test textarea::test::test_wrapping ... ok
test textarea::test::test_wrapping_fenced_block ... ok
test textarea::test::test_wrapping_code_block ... ok
test table::test::test_table_unicode_truncate ... 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-2c067555aa9e0165)
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
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_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>::truncate (line 50) ... 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>::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>::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
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_ssh
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
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
error: 1 target failed:
`-p radicle-cli --test commands`
Exit code: 101
{
"response": "finished",
"result": "failure"
}