rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5 heartwood645d68eeab6bb480fb6d28c2313153696e07113f
{
"request": "trigger",
"version": 1,
"event_type": "patch",
"repository": {
"id": "rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5",
"name": "heartwood",
"description": "Radicle Heartwood Protocol & Stack",
"private": false,
"default_branch": "master",
"delegates": [
"did:key:z6MksFqXN3Yhqk8pTJdUGLwATkRfQvwZXPqR2qMEhbS9wzpT",
"did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
"did:key:z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz"
]
},
"action": "Created",
"patch": {
"id": "7bafe3d51318014e1053df47ef9b78b7543af2bb",
"author": {
"id": "did:key:z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz",
"alias": null
},
"title": "radicle-schemars: A crate for extracting JSON schemas",
"state": {
"status": "merged",
"conflicts": []
},
"before": "f4c8ff7a64e87a173ab2f114f3a88a2d475184ad",
"after": "645d68eeab6bb480fb6d28c2313153696e07113f",
"commits": [
"645d68eeab6bb480fb6d28c2313153696e07113f",
"9ef83e565c4e3bc00a7f89619eb874e0fc997097",
"bc854c0259be69a60c07d49c543a8363040a30f9"
],
"target": "3419821106e274c96f56948a05d2f51f28f5a6c7",
"labels": [],
"assignees": [],
"revisions": [
{
"id": "7bafe3d51318014e1053df47ef9b78b7543af2bb",
"author": {
"id": "did:key:z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz",
"alias": null
},
"description": "### JSON Schema for the Control Socket\n\nJSON Schema extraction via `schemars` is provided for configurations.\nThere are other interfaces that use JSON for (de-)serialization, such as\nthe communication with `radicle-node` via the control socket.\n\nTo ease implementation of tools that want to communicate via the control\nsocket, we add the respective `schemars` annotations.\n\n### Extracting of JSON Schemas\n\nExtracting JSON Schemas from the Radicle crate can be done via\n`radicle-cli` for `radicle::profile::Config` by executing:\n\n rad config schema\n\nHowever, for other JSON Schema metadata, this is not possible.\n\nTo allow other tools to extract JSON schemas as part of their build\nprocess, introduce a new crate that only depends on `radicle`,\n`schemars`, and `serde`, with a tiny binary that will reproduce various\nschemas.\n\n### `schemars` as workspace dependency\n\nThe `schemars` crate is a dependency of multiple workspace crates in the\nsame version. Its version number is repeated multiple times in the\nrespective `*/Cargo.toml` files. This requires more maintenance effort\nand risks versions drifting.\n\nAs long as all crates depend on the same version, it makes more sense to\nhave `schemars` as a workspace dependency.\n\nSee: <https://doc.rust-lang.org/cargo/reference/workspaces.html#the-dependencies-table>",
"base": "f4c8ff7a64e87a173ab2f114f3a88a2d475184ad",
"oid": "ed8a9a1334730ee930b357c06e2f5814a81f2b70",
"timestamp": 1748856488
},
{
"id": "a1955053701c4077ee32942923feba6b1002333b",
"author": {
"id": "did:key:z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz",
"alias": null
},
"description": "FEEDBACK: better error messaging for incorrect args/schemas",
"base": "f4c8ff7a64e87a173ab2f114f3a88a2d475184ad",
"oid": "d89488d43195d4dd81f996c14de7bd0c06cd4963",
"timestamp": 1748945836
},
{
"id": "07afd838ff4f5b40b762493276fb09aa327be658",
"author": {
"id": "did:key:z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz",
"alias": null
},
"description": "radicle-schemars: Improve handling of list of schema names.",
"base": "f4c8ff7a64e87a173ab2f114f3a88a2d475184ad",
"oid": "645d68eeab6bb480fb6d28c2313153696e07113f",
"timestamp": 1748948968
},
{
"id": "c967add11483087f3479319c1f69b1e04ec0f3af",
"author": {
"id": "did:key:z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz",
"alias": null
},
"description": "FEEDBACK: use an enum",
"base": "f4c8ff7a64e87a173ab2f114f3a88a2d475184ad",
"oid": "859b1a122e96e44eef800fe43937549686ec257f",
"timestamp": 1748951028
},
{
"id": "a5e2b9115255a5a1e496a09263003888b20c2f42",
"author": {
"id": "did:key:z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz",
"alias": null
},
"description": "Rebased",
"base": "9dae540c8718f1d2e9dd26a68cd76242a16d7eb0",
"oid": "4cd0782f2e442c76cc433c292cdfda5523d70bf6",
"timestamp": 1748956318
}
]
}
}
{
"response": "triggered",
"run_id": {
"id": "fb4e806d-fa24-4525-b324-37d1789c48a8"
},
"info_url": "https://cci.rad.levitte.org//fb4e806d-fa24-4525-b324-37d1789c48a8.html"
}
Started at: 2026-09-08 14:22:32.480519+02:00
Commands:
$ rad clone rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5 .
✓ Creating checkout in ./...
✓ Remote cloudhead@z6MksFqXN3Yhqk8pTJdUGLwATkRfQvwZXPqR2qMEhbS9wzpT added
✓ Remote-tracking branch cloudhead@z6MksFqXN3Yhqk8pTJdUGLwATkRfQvwZXPqR2qMEhbS9wzpT/master created for z6MksFqXN3Yhqk8pTJdUGLwATkRfQvwZXPqR2qMEhbS9wzpT
✓ Remote fintohaps@z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM added
✓ Remote-tracking branch fintohaps@z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM/master created for z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM
✓ Remote lorenz@z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz added
✓ Remote-tracking branch lorenz@z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz/master created for z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz
✓ Repository successfully cloned under /opt/radcis/ci.rad.levitte.org/cci/state/fb4e806d-fa24-4525-b324-37d1789c48a8/w/
╭────────────────────────────────────╮
│ heartwood │
│ Radicle Heartwood Protocol & Stack │
│ 189 issues · 39 patches │
╰────────────────────────────────────╯
Run `cd ./.` to go to the repository directory.
Exit code: 0
$ rad patch checkout 7bafe3d51318014e1053df47ef9b78b7543af2bb
✓ Switched to branch patch/7bafe3d at revision 07afd83
✓ Branch patch/7bafe3d setup to track rad/patches/7bafe3d51318014e1053df47ef9b78b7543af2bb
Exit code: 0
$ git config advice.detachedHead false
Exit code: 0
$ git checkout 645d68eeab6bb480fb6d28c2313153696e07113f
HEAD is now at 645d68ee radicle-schemars: Add crate for utility binary
Exit code: 0
$ rad patch show 7bafe3d51318014e1053df47ef9b78b7543af2bb -p
╭────────────────────────────────────────────────────────────────────────────────────╮
│ Title radicle-schemars: A crate for extracting JSON schemas │
│ Patch 7bafe3d51318014e1053df47ef9b78b7543af2bb │
│ Author lorenz z6MkkPv…WX5sTEz │
│ Head 645d68eeab6bb480fb6d28c2313153696e07113f │
│ Base f4c8ff7a64e87a173ab2f114f3a88a2d475184ad │
│ Target master │
│ Branches patch/7bafe3d │
│ Commits ahead 3, behind 1047 │
│ Status merged │
│ │
│ ### JSON Schema for the Control Socket │
│ │
│ JSON Schema extraction via `schemars` is provided for configurations. │
│ There are other interfaces that use JSON for (de-)serialization, such as │
│ the communication with `radicle-node` via the control socket. │
│ │
│ To ease implementation of tools that want to communicate via the control │
│ socket, we add the respective `schemars` annotations. │
│ │
│ ### Extracting of JSON Schemas │
│ │
│ Extracting JSON Schemas from the Radicle crate can be done via │
│ `radicle-cli` for `radicle::profile::Config` by executing: │
│ │
│ rad config schema │
│ │
│ However, for other JSON Schema metadata, this is not possible. │
│ │
│ To allow other tools to extract JSON schemas as part of their build │
│ process, introduce a new crate that only depends on `radicle`, │
│ `schemars`, and `serde`, with a tiny binary that will reproduce various │
│ schemas. │
│ │
│ ### `schemars` as workspace dependency │
│ │
│ The `schemars` crate is a dependency of multiple workspace crates in the │
│ same version. Its version number is repeated multiple times in the │
│ respective `*/Cargo.toml` files. This requires more maintenance effort │
│ and risks versions drifting. │
│ │
│ As long as all crates depend on the same version, it makes more sense to │
│ have `schemars` as a workspace dependency. │
│ │
│ See: │
│ <https://doc.rust-lang.org/cargo/reference/workspaces.html#the-dependencies-table> │
├────────────────────────────────────────────────────────────────────────────────────┤
│ 645d68e radicle-schemars: Add crate for utility binary │
│ 9ef83e5 radicle/schemars: Annotate Commands and results │
│ bc854c0 cargo: Make schemars a workspace dependency │
├────────────────────────────────────────────────────────────────────────────────────┤
│ ● Revision 7bafe3d @ f4c8ff7..ed8a9a1 by lorenz z6MkkPv…WX5sTEz 1 year ago │
│ ↑ Revision a195505 @ f4c8ff7..d89488d by fintohaps z6Mkire…SQZ3voM 1 year ago │
│ ↑ Revision 07afd83 @ f4c8ff7..645d68e by lorenz z6MkkPv…WX5sTEz 1 year ago │
│ ↑ Revision c967add @ f4c8ff7..859b1a1 by fintohaps z6Mkire…SQZ3voM 1 year ago │
│ ↑ Revision a5e2b91 @ 9dae540..4cd0782 by fintohaps z6Mkire…SQZ3voM 1 year ago │
│ └─ ✓ merged by fintohaps z6Mkire…SQZ3voM │
╰────────────────────────────────────────────────────────────────────────────────────╯
commit 645d68eeab6bb480fb6d28c2313153696e07113f
Author: Lorenz Leutgeb <lorenz.leutgeb@radicle.xyz>
Date: Sun May 25 20:51:40 2025 +0200
radicle-schemars: Add crate for utility binary
Extracting JSON Schemas from the Radicle crate can be done via
`radicle-cli` for `radicle::profile::Config` by executing:
rad config schema
However, for other JSON Schema metadata, this is not possible.
To allow other tools to extract JSON schemas as part of their build
process, introduce a new crate that only depends on `radicle`,
`schemars`, and `serde`, with a tiny binary that will reproduce various
schemas.
diff --git a/Cargo.lock b/Cargo.lock
index dbd161c17..195201290 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2821,6 +2821,16 @@ dependencies = [
"thiserror 1.0.69",
]
+[[package]]
+name = "radicle-schemars"
+version = "0.1.0"
+dependencies = [
+ "radicle",
+ "schemars",
+ "serde",
+ "serde_json",
+]
+
[[package]]
name = "radicle-signals"
version = "0.11.0"
diff --git a/Cargo.toml b/Cargo.toml
index d2b90c2c7..267bd789d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -12,6 +12,7 @@ members = [
"radicle-remote-helper",
"radicle-ssh",
"radicle-tools",
+ "radicle-schemars",
"radicle-signals",
"radicle-systemd",
]
diff --git a/radicle-schemars/Cargo.toml b/radicle-schemars/Cargo.toml
new file mode 100644
index 000000000..118b8bdb5
--- /dev/null
+++ b/radicle-schemars/Cargo.toml
@@ -0,0 +1,23 @@
+[package]
+name = "radicle-schemars"
+description = "Utility to print JSON Schemas from the `radicle` crate"
+homepage = "https://radicle.xyz"
+repository = "https://app.radicle.xyz/seeds/seed.radicle.xyz/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5"
+license = "MIT OR Apache-2.0"
+edition = "2021"
+version = "0.1.0"
+rust-version.workspace = true
+
+[[bin]]
+name = "radicle-schemars"
+path = "src/main.rs"
+
+[dependencies]
+schemars = { workspace = true }
+serde = { version = "1.0" }
+serde_json = { version = "1" }
+
+[dependencies.radicle]
+version = "0"
+path = "../radicle"
+features = ["schemars"]
\ No newline at end of file
diff --git a/radicle-schemars/src/main.rs b/radicle-schemars/src/main.rs
new file mode 100644
index 000000000..eb93c0ffa
--- /dev/null
+++ b/radicle-schemars/src/main.rs
@@ -0,0 +1,90 @@
+use std::io;
+use std::net;
+
+use schemars::{generate::*, *};
+
+const SCHEMA_COMMAND: &str = "radicle::node::Command";
+const SCHEMA_COMMAND_RESULT: &str = "radicle::node::CommandResult";
+const SCHEMA_PROFILE_CONFIG: &str = "radicle::profile::Config";
+
+const SCHEMAS: &[&str] = &[SCHEMA_COMMAND, SCHEMA_COMMAND_RESULT, SCHEMA_PROFILE_CONFIG];
+
+#[inline]
+fn unknown_schema(schema: Option<String>) -> io::Result<()> {
+ let schema = match schema {
+ Some(schema) => format!("Unexpected schema name \"{schema}\" given."),
+ None => "No schema name given.".into(),
+ };
+ let schemas = SCHEMAS.to_vec().join("\", \"");
+ Err(io::Error::new(
+ io::ErrorKind::InvalidInput,
+ format!("{schema} Expected exactly one of the following schema names: [\"{schemas}\"]."),
+ ))
+}
+
+fn main() {
+ if let Err(e) = print_schema() {
+ eprintln!("{}", e);
+ std::process::exit(1);
+ }
+}
+
+fn print_schema() -> io::Result<()> {
+ let mut args = std::env::args();
+
+ let Some(name) = args.nth(1) else {
+ return unknown_schema(None);
+ };
+
+ if !SCHEMAS.contains(&&name.as_str()) {
+ return unknown_schema(Some(name));
+ }
+
+ let schema = match name.as_str() {
+ SCHEMA_COMMAND => {
+ let settings = SchemaSettings::default().for_serialize();
+ let generator = settings.into_generator();
+
+ generator.into_root_schema_for::<radicle::node::Command>()
+ }
+ SCHEMA_COMMAND_RESULT => {
+ #[derive(JsonSchema)]
+ #[allow(dead_code)]
+ struct ListenAddrs(Vec<net::SocketAddr>);
+
+ #[derive(JsonSchema)]
+ #[allow(dead_code)]
+ struct Error {
+ error: String,
+ }
+
+ #[derive(JsonSchema)]
+ #[schemars(untagged)]
+ #[allow(dead_code)]
+ enum CommandResult {
+ Nid(
+ #[schemars(with = "radicle::schemars_ext::crypto::PublicKey")]
+ radicle::node::NodeId,
+ ),
+ Config(radicle::node::Config),
+ ListenAddrs(ListenAddrs),
+ ConnectResult(radicle::node::ConnectResult),
+ Success(radicle::node::Success),
+ Seeds(radicle::node::Seeds),
+ FetchResult(radicle::node::FetchResult),
+ RefsAt(radicle::storage::refs::RefsAt),
+ Sessions(Vec<radicle::node::Session>),
+ Session(Option<radicle::node::Session>),
+ Error(Error),
+ }
+ schema_for!(CommandResult)
+ }
+ SCHEMA_PROFILE_CONFIG => schemars::schema_for!(radicle::profile::Config),
+ _ => {
+ return unknown_schema(Some(name));
+ }
+ };
+
+ serde_json::to_writer_pretty(std::io::stdout(), &schema)?;
+ Ok(())
+}
commit 9ef83e565c4e3bc00a7f89619eb874e0fc997097
Author: Lorenz Leutgeb <lorenz.leutgeb@radicle.xyz>
Date: Sun May 25 19:28:26 2025 +0200
radicle/schemars: Annotate Commands and results
JSON Schema extraction via `schemars` is provided for configurations.
There are other interfaces that use JSON for (de-)serialization, such as
the communication with `radicle-node` via the control socket.
To ease implementation of tools that want to communicate via the control
socket, we add the respective `schemars` annotations.
diff --git a/radicle/src/lib.rs b/radicle/src/lib.rs
index 592dcd185..c2be087c5 100644
--- a/radicle/src/lib.rs
+++ b/radicle/src/lib.rs
@@ -24,7 +24,7 @@ pub mod node;
pub mod profile;
pub mod rad;
#[cfg(feature = "schemars")]
-pub(crate) mod schemars_ext;
+pub mod schemars_ext;
pub mod serde_ext;
pub mod sql;
pub mod storage;
diff --git a/radicle/src/node.rs b/radicle/src/node.rs
index 2037d452c..62ebc83c1 100644
--- a/radicle/src/node.rs
+++ b/radicle/src/node.rs
@@ -96,6 +96,7 @@ pub enum PingState {
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[allow(clippy::large_enum_variant)]
#[serde(rename_all = "camelCase")]
+#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
pub enum State {
/// Initial state for outgoing connections.
Initial,
@@ -106,6 +107,10 @@ pub enum State {
Connected {
/// Connected since this time.
#[serde(with = "crate::serde_ext::localtime::time")]
+ #[cfg_attr(
+ feature = "schemars",
+ schemars(with = "crate::schemars_ext::localtime::LocalDurationInSeconds")
+ )]
since: LocalTime,
/// Ping state.
#[serde(skip)]
@@ -124,9 +129,17 @@ pub enum State {
Disconnected {
/// Since when has this peer been disconnected.
#[serde(with = "crate::serde_ext::localtime::time")]
+ #[cfg_attr(
+ feature = "schemars",
+ schemars(with = "crate::schemars_ext::localtime::LocalDurationInSeconds")
+ )]
since: LocalTime,
/// When to retry the connection.
#[serde(with = "crate::serde_ext::localtime::time")]
+ #[cfg_attr(
+ feature = "schemars",
+ schemars(with = "crate::schemars_ext::localtime::LocalDurationInSeconds")
+ )]
retry_at: LocalTime,
},
}
@@ -185,6 +198,7 @@ impl Penalty {
#[derive(Debug, PartialEq, Eq, Clone, Serialize, Deserialize)]
#[serde(tag = "status")]
#[serde(rename_all = "camelCase")]
+#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
pub enum SyncStatus {
/// We're in sync.
#[serde(rename_all = "camelCase")]
@@ -428,6 +442,7 @@ impl TryFrom<&sqlite::Value> for Alias {
/// Options passed to the "connect" node command.
#[derive(Debug, Clone, Serialize, Deserialize)]
+#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
pub struct ConnectOptions {
/// Establish a persistent connection.
pub persistent: bool,
@@ -480,6 +495,7 @@ impl From<Event> for CommandResult<Event> {
/// A success response.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
+#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
pub struct Success {
/// Whether something was updated.
#[serde(default, skip_serializing_if = "crate::serde_ext::is_default")]
@@ -589,6 +605,7 @@ impl From<Address> for HostName {
/// Command name.
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase", tag = "command")]
+#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
pub enum Command {
/// Announce repository references for given repository to peers.
#[serde(rename_all = "camelCase")]
@@ -616,7 +633,13 @@ pub enum Command {
/// Disconnect from a node.
#[serde(rename_all = "camelCase")]
- Disconnect { nid: NodeId },
+ Disconnect {
+ #[cfg_attr(
+ feature = "schemars",
+ schemars(with = "crate::schemars_ext::crypto::PublicKey")
+ )]
+ nid: NodeId,
+ },
/// Lookup seeds for the given repository in the routing table.
#[serde(rename_all = "camelCase")]
@@ -626,12 +649,22 @@ pub enum Command {
Sessions,
/// Get a specific peer session.
- Session { nid: NodeId },
+ Session {
+ #[cfg_attr(
+ feature = "schemars",
+ schemars(with = "crate::schemars_ext::crypto::PublicKey")
+ )]
+ nid: NodeId,
+ },
/// Fetch the given repository from the network.
#[serde(rename_all = "camelCase")]
Fetch {
rid: RepoId,
+ #[cfg_attr(
+ feature = "schemars",
+ schemars(with = "crate::schemars_ext::crypto::PublicKey")
+ )]
nid: NodeId,
timeout: time::Duration,
},
@@ -646,11 +679,24 @@ pub enum Command {
/// Follow the given node.
#[serde(rename_all = "camelCase")]
- Follow { nid: NodeId, alias: Option<Alias> },
+ Follow {
+ #[cfg_attr(
+ feature = "schemars",
+ schemars(with = "crate::schemars_ext::crypto::PublicKey")
+ )]
+ nid: NodeId,
+ alias: Option<Alias>,
+ },
/// Unfollow the given node.
#[serde(rename_all = "camelCase")]
- Unfollow { nid: NodeId },
+ Unfollow {
+ #[cfg_attr(
+ feature = "schemars",
+ schemars(with = "crate::schemars_ext::crypto::PublicKey")
+ )]
+ nid: NodeId,
+ },
/// Get the node's status.
Status,
@@ -679,6 +725,7 @@ impl Command {
/// Connection link direction.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
+#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
pub enum Link {
/// Outgoing connection.
Outbound,
@@ -688,7 +735,12 @@ pub enum Link {
/// An established network connection with a peer.
#[derive(Debug, Clone, Serialize, Deserialize)]
+#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
pub struct Session {
+ #[cfg_attr(
+ feature = "schemars",
+ schemars(with = "crate::schemars_ext::crypto::PublicKey")
+ )]
pub nid: NodeId,
pub link: Link,
pub addr: Address,
@@ -705,8 +757,14 @@ impl Session {
/// A seed for some repository, with metadata about its status.
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
+#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
+
pub struct Seed {
/// The Node ID.
+ #[cfg_attr(
+ feature = "schemars",
+ schemars(with = "crate::schemars_ext::crypto::PublicKey")
+ )]
pub nid: NodeId,
/// Known addresses for this seed.
pub addrs: Vec<KnownAddress>,
@@ -748,7 +806,11 @@ impl Seed {
/// Represents a set of seeds with associated metadata. Uses an RNG
/// underneath, so every iteration returns a different ordering.
#[serde(into = "Vec<Seed>", from = "Vec<Seed>")]
-pub struct Seeds(address::AddressBook<NodeId, Seed>);
+#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
+pub struct Seeds(
+ #[cfg_attr(feature = "schemars", schemars(with = "Vec<Seed>"))]
+ address::AddressBook<NodeId, Seed>,
+);
impl Seeds {
/// Create a new seeds list from an RNG.
@@ -819,9 +881,14 @@ impl From<Vec<Seed>> for Seeds {
#[derive(Clone, Debug, Serialize, Deserialize)]
#[serde(tag = "status", rename_all = "camelCase")]
+#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
pub enum FetchResult {
Success {
updated: Vec<RefUpdate>,
+ #[cfg_attr(
+ feature = "schemars",
+ schemars(with = "HashSet<crate::schemars_ext::crypto::PublicKey>")
+ )]
namespaces: HashSet<NodeId>,
clone: bool,
},
@@ -978,6 +1045,7 @@ impl Error {
#[derive(Debug, Serialize, Deserialize)]
#[serde(rename_all = "camelCase", tag = "status")]
+#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
pub enum ConnectResult {
Connected,
Disconnected { reason: String },
diff --git a/radicle/src/node/address.rs b/radicle/src/node/address.rs
index dac9ac43d..52a087ec8 100644
--- a/radicle/src/node/address.rs
+++ b/radicle/src/node/address.rs
@@ -143,6 +143,7 @@ pub struct Node {
/// A known address.
#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
+#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
pub struct KnownAddress {
/// Network address.
pub addr: Address,
@@ -150,9 +151,17 @@ pub struct KnownAddress {
pub source: Source,
/// Last time this address was used to successfully connect to a peer.
#[serde(with = "crate::serde_ext::localtime::option::time")]
+ #[cfg_attr(
+ feature = "schemars",
+ schemars(with = "Option<crate::schemars_ext::localtime::LocalDurationInSeconds>")
+ )]
pub last_success: Option<LocalTime>,
/// Last time this address was tried.
#[serde(with = "crate::serde_ext::localtime::option::time")]
+ #[cfg_attr(
+ feature = "schemars",
+ schemars(with = "Option<crate::schemars_ext::localtime::LocalDurationInSeconds>")
+ )]
pub last_attempt: Option<LocalTime>,
/// Whether this address has been banned.
pub banned: bool,
@@ -174,6 +183,7 @@ impl KnownAddress {
/// Address source. Specifies where an address originated from.
#[derive(Debug, Copy, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
+#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
pub enum Source {
/// An address that was shared by another peer.
Peer,
diff --git a/radicle/src/node/seed.rs b/radicle/src/node/seed.rs
index 3408e1967..5e2ae4bfc 100644
--- a/radicle/src/node/seed.rs
+++ b/radicle/src/node/seed.rs
@@ -11,11 +11,17 @@ use crate::storage::{refs::RefsAt, ReadRepository, RemoteId};
/// Holds an oid and timestamp.
#[derive(Debug, Copy, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
+#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
pub struct SyncedAt {
/// Head of `rad/sigrefs`.
+ #[cfg_attr(feature = "schemars", schemars(with = "crate::schemars_ext::git::Oid"))]
pub oid: git_ext::Oid,
/// When these refs were synced.
#[serde(with = "crate::serde_ext::localtime::time")]
+ #[cfg_attr(
+ feature = "schemars",
+ schemars(with = "crate::schemars_ext::localtime::LocalDurationInSeconds")
+ )]
pub timestamp: LocalTime,
}
diff --git a/radicle/src/schemars_ext.rs b/radicle/src/schemars_ext.rs
index 34cc5edbe..9157c7297 100644
--- a/radicle/src/schemars_ext.rs
+++ b/radicle/src/schemars_ext.rs
@@ -4,6 +4,29 @@
use schemars::JsonSchema;
+pub mod crypto {
+ use super::*;
+ /// See [`crate::node::NodeId`]
+ /// See [`crate::storage::RemoteId`]
+ /// See [`::crypto::PublicKey`]
+ ///
+ /// An Ed25519 public key in multibase encoding.
+ ///
+ /// `MULTIBASE(base58-btc, MULTICODEC(public-key-type, raw-public-key-bytes))`
+ #[derive(JsonSchema)]
+ #[schemars(
+ title = "NodeId",
+ description = "An Ed25519 public key in multibase encoding.",
+ extend("examples" = [
+ "z6MkrLMMsiPWUcNPHcRajuMi9mDfYckSoJyPwwnknocNYPm7",
+ "z6MkvUJtYD9dHDJfpevWRT98mzDDpdAtmUjwyDSkyqksUr7C",
+ "z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi",
+ "z6MkkfM3tPXNPrPevKr3uSiQtHPuwnNhu2yUVjgd2jXVsVz5",
+ ]),
+)]
+ pub struct PublicKey(String);
+}
+
pub(crate) mod log {
use super::*;
@@ -56,4 +79,34 @@ pub(crate) mod localtime {
description = "A time duration measured locally in milliseconds."
)]
pub(crate) struct LocalDuration(u64);
+
+ /// See [`crate::serde_ext::localtime::time`]
+ #[derive(JsonSchema)]
+ #[schemars(
+ remote = "localtime::LocalDuration",
+ description = "A time duration measured locally in seconds."
+ )]
+ pub(crate) struct LocalDurationInSeconds(u64);
+}
+
+pub(crate) mod git {
+ use super::*;
+
+ /// See [`crate::git::Oid`]
+ /// See [`::git_ext::Oid`]
+ /// See [`::git2::Oid`]
+ ///
+ /// A Git Object Identifier in hexadecimal encoding.
+ #[derive(JsonSchema)]
+ #[schemars(
+ remote = "git2::Oid",
+ description = "A Git Object Identifier (SHA-1 or SHA-256 hash) in hexadecimal encoding."
+ )]
+ pub(crate) struct Oid(
+ #[schemars(regex(pattern = r"^([0-9a-fA-F]{64}|[0-9a-fA-F]{40})$"))] String,
+ );
+
+ /// See [`crate::git::RefString`]
+ #[derive(JsonSchema)]
+ pub(crate) struct RefString(String);
}
diff --git a/radicle/src/storage.rs b/radicle/src/storage.rs
index 4b454b1ea..b4113639d 100644
--- a/radicle/src/storage.rs
+++ b/radicle/src/storage.rs
@@ -191,11 +191,43 @@ pub type RemoteId = PublicKey;
/// An update to a reference.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
+#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
pub enum RefUpdate {
- Updated { name: RefString, old: Oid, new: Oid },
- Created { name: RefString, oid: Oid },
- Deleted { name: RefString, oid: Oid },
- Skipped { name: RefString, oid: Oid },
+ Updated {
+ #[cfg_attr(
+ feature = "schemars",
+ schemars(with = "crate::schemars_ext::git::RefString")
+ )]
+ name: RefString,
+ #[cfg_attr(feature = "schemars", schemars(with = "crate::schemars_ext::git::Oid"))]
+ old: Oid,
+ #[cfg_attr(feature = "schemars", schemars(with = "crate::schemars_ext::git::Oid"))]
+ new: Oid,
+ },
+ Created {
+ #[cfg_attr(
+ feature = "schemars",
+ schemars(with = "crate::schemars_ext::git::RefString")
+ )]
+ name: RefString,
+ #[cfg_attr(feature = "schemars", schemars(with = "crate::schemars_ext::git::Oid"))]
+ oid: Oid,
+ },
+ Deleted {
+ #[cfg_attr(
+ feature = "schemars",
+ schemars(with = "crate::schemars_ext::git::RefString")
+ )]
+ name: RefString,
+ #[cfg_attr(feature = "schemars", schemars(with = "crate::schemars_ext::git::Oid"))]
+ oid: Oid,
+ },
+ Skipped {
+ #[cfg_attr(feature = "schemars", schemars(with = "String"))]
+ name: RefString,
+ #[cfg_attr(feature = "schemars", schemars(with = "crate::schemars_ext::git::Oid"))]
+ oid: Oid,
+ },
}
impl RefUpdate {
diff --git a/radicle/src/storage/refs.rs b/radicle/src/storage/refs.rs
index 3d24e1f6c..a14c93d5f 100644
--- a/radicle/src/storage/refs.rs
+++ b/radicle/src/storage/refs.rs
@@ -377,10 +377,16 @@ impl<V> Deref for SignedRefs<V> {
/// references to other nodes.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
+#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
pub struct RefsAt {
/// The remote namespace of the `rad/sigrefs`.
+ #[cfg_attr(
+ feature = "schemars",
+ schemars(with = "crate::schemars_ext::crypto::PublicKey")
+ )]
pub remote: RemoteId,
/// The commit SHA that `rad/sigrefs` points to.
+ #[cfg_attr(feature = "schemars", schemars(with = "crate::schemars_ext::git::Oid"))]
pub at: Oid,
}
commit bc854c0259be69a60c07d49c543a8363040a30f9
Author: Lorenz Leutgeb <lorenz.leutgeb@radicle.xyz>
Date: Sun May 25 18:48:18 2025 +0200
cargo: Make schemars a workspace dependency
The `schemars` crate is a dependency of multiple workspace crates in the
same version. Its version number is repeated multiple times in the
respective `*/Cargo.toml` files. This requires more maintenance effort
and risks versions drifting.
As long as all crates depend on the same version, it makes more sense to
have `schemars` as a workspace dependency.
See: <https://doc.rust-lang.org/cargo/reference/workspaces.html#the-dependencies-table>
diff --git a/Cargo.toml b/Cargo.toml
index cb1662913..d2b90c2c7 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -42,6 +42,9 @@ version = "0.9.0"
# for the day it makes a difference…
rust-version = "1.81.0"
+[workspace.dependencies]
+schemars = { version = "1.0.0-alpha.17" }
+
[workspace.lints]
clippy.type_complexity = "allow"
clippy.enum_variant_names = "allow"
diff --git a/radicle-cli/Cargo.toml b/radicle-cli/Cargo.toml
index 960a557e4..b06f97e45 100644
--- a/radicle-cli/Cargo.toml
+++ b/radicle-cli/Cargo.toml
@@ -46,7 +46,7 @@ tree-sitter-bash = { version = "0.23.3" }
tree-sitter-go = { version = "0.23.4" }
tree-sitter-md = { version = "0.3.2" }
zeroize = { version = "1.1" }
-schemars = { version = "1.0.0-alpha.17" }
+schemars = { workspace = true }
[dependencies.radicle]
version = "0.15"
diff --git a/radicle/Cargo.toml b/radicle/Cargo.toml
index a8f34ad6a..4e5ad08c3 100644
--- a/radicle/Cargo.toml
+++ b/radicle/Cargo.toml
@@ -35,7 +35,7 @@ sqlite = { version = "0.32.0", features = ["bundled"] }
tempfile = { version = "3.3.0" }
thiserror = { version = "1" }
unicode-normalization = { version = "0.1" }
-schemars = { version = "1.0.0-alpha.17", optional = true }
+schemars = { workspace = true, optional = true }
[dependencies.chrono]
version = "0.4.0"
Exit code: 0
shell: 'cargo --version rustc --version cargo fmt --check cargo clippy --all-targets --workspace -- --deny warnings cargo build --all-targets --workspace cargo doc --workspace --no-deps cargo test --workspace --no-fail-fast '
Commands:
$ podman run --name fb4e806d-fa24-4525-b324-37d1789c48a8 -v /opt/radcis/ci.rad.levitte.org/cci/state/fb4e806d-fa24-4525-b324-37d1789c48a8/s:/fb4e806d-fa24-4525-b324-37d1789c48a8/s:ro -v /opt/radcis/ci.rad.levitte.org/cci/state/fb4e806d-fa24-4525-b324-37d1789c48a8/w:/fb4e806d-fa24-4525-b324-37d1789c48a8/w -w /fb4e806d-fa24-4525-b324-37d1789c48a8/w -v /opt/radcis/ci.rad.levitte.org/.radicle:/${id}/.radicle:ro -e RAD_HOME=/${id}/.radicle rust:trixie bash /fb4e806d-fa24-4525-b324-37d1789c48a8/s/script.sh
+ cargo --version
info: syncing channel updates for '1.85-x86_64-unknown-linux-gnu'
info: latest update on 2025-03-18, rust version 1.85.1 (4eb161250 2025-03-15)
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.85.1 (d73d2caf9 2024-12-31)
+ rustc --version
rustc 1.85.1 (4eb161250 2025-03-15)
+ cargo fmt --check
+ cargo clippy --all-targets --workspace -- --deny warnings
Updating crates.io index
Downloading crates ...
Downloaded amplify_derive v4.0.0
Downloaded aho-corasick v1.1.3
Downloaded git-ref-format-macro v0.3.0
Downloaded opaque-debug v0.3.1
Downloaded popol v3.0.0
Downloaded numtoa v0.1.0
Downloaded outref v0.5.2
Downloaded parking_lot v0.12.3
Downloaded ascii v1.1.0
Downloaded radicle-std-ext v0.1.0
Downloaded qcheck v1.0.0
Downloaded qcheck-macros v1.0.0
Downloaded poly1305 v0.8.0
Downloaded primeorder v0.13.6
Downloaded scopeguard v1.2.0
Downloaded proc-macro2 v1.0.92
Downloaded scrypt v0.11.0
Downloaded p521 v0.13.3
Downloaded proc-macro-error v1.0.4
Downloaded socks5-client v0.4.1
Downloaded ryu v1.0.17
Downloaded ssh-cipher v0.2.0
Downloaded siphasher v0.3.11
Downloaded stable_deref_trait v1.2.0
Downloaded termion v3.0.0
Downloaded thiserror v1.0.69
Downloaded spki v0.7.3
Downloaded synstructure v0.13.1
Downloaded sync_wrapper v1.0.2
Downloaded litemap v0.7.5
Downloaded termion v2.0.3
Downloaded tempfile v3.10.1
Downloaded shlex v1.3.0
Downloaded tree-sitter-language v0.1.2
Downloaded num-iter v0.1.45
Downloaded socket2 v0.5.7
Downloaded io-reactor v0.5.2
Downloaded idna_adapter v1.2.0
Downloaded write16 v1.0.0
Downloaded serde v1.0.219
Downloaded gix-quote v0.4.15
Downloaded icu_normalizer_data v1.5.1
Downloaded gix-chunk v0.4.11
Downloaded tinystr v0.7.6
Downloaded home v0.5.9
Downloaded gix-command v0.4.1
Downloaded gix-refspec v0.27.0
Downloaded icu_provider_macros v1.5.0
Downloaded lexopt v0.3.0
Downloaded tower-service v0.3.3
Downloaded tower-layer v0.3.3
Downloaded universal-hash v0.5.1
Downloaded timeago v0.4.2
Downloaded keccak v0.1.5
Downloaded tinyvec v1.6.0
Downloaded want v0.3.1
Downloaded localtime v1.3.1
Downloaded http-body-util v0.1.3
Downloaded ff v0.13.0
Downloaded bit-vec v0.8.0
Downloaded escargot v0.5.10
Downloaded ecdsa v0.16.9
Downloaded ec25519 v0.1.0
Downloaded itoa v1.0.11
Downloaded num-complex v0.4.6
Downloaded gix-revwalk v0.17.0
Downloaded getrandom v0.2.15
Downloaded utf8parse v0.2.1
Downloaded http-body v1.0.1
Downloaded gix-utils v0.1.14
Downloaded tree-sitter-toml-ng v0.6.0
Downloaded gix-url v0.28.2
Downloaded lock_api v0.4.11
Downloaded yoke v0.7.5
Downloaded gix-hash v0.15.1
Downloaded gix-validate v0.9.4
Downloaded gix-traverse v0.43.1
Downloaded uuid v1.16.0
Downloaded maybe-async v0.2.10
Downloaded icu_properties v1.5.1
Downloaded try-lock v0.2.5
Downloaded idna v1.0.3
Downloaded normalize-line-endings v0.3.0
Downloaded zerofrom-derive v0.1.6
Downloaded zerofrom v0.1.6
Downloaded gix-pack v0.56.0
Downloaded miniz_oxide v0.8.8
Downloaded tree-sitter-python v0.23.4
Downloaded gix-hashtable v0.6.0
Downloaded tree-sitter-go v0.23.4
Downloaded unicode-ident v1.0.12
Downloaded gix-features v0.39.1
Downloaded hashbrown v0.14.3
Downloaded nonempty v0.5.0
Downloaded bstr v1.9.1
Downloaded typenum v1.17.0
Downloaded vcpkg v0.2.15
Downloaded icu_locid v1.5.0
Downloaded hyper-util v0.1.10
Downloaded tracing v0.1.41
Downloaded mio v1.0.2
Downloaded winnow v0.6.26
Downloaded unicode-normalization v0.1.23
Downloaded tree-sitter v0.24.4
Downloaded tree-sitter-rust v0.23.2
Downloaded icu_properties_data v1.5.1
Downloaded chrono v0.4.38
Downloaded tree-sitter-c v0.23.2
Downloaded bloomy v1.2.0
Downloaded tree-sitter-ruby v0.23.1
Downloaded zerovec v0.10.4
Downloaded regex-automata v0.4.9
Downloaded num-bigint-dig v0.8.4
Downloaded futures-util v0.3.31
Downloaded emojis v0.6.4
Downloaded aes v0.8.4
Downloaded unicode-segmentation v1.11.0
Downloaded tree-sitter-bash v0.23.3
Downloaded num-bigint v0.4.6
Downloaded cyphernet v0.5.2
Downloaded jiff v0.2.1
Downloaded libc v0.2.155
Downloaded aes-gcm v0.10.3
Downloaded indexmap v2.2.6
Downloaded memchr v2.7.2
Downloaded tree-sitter-md v0.3.2
Downloaded sha3 v0.10.8
Downloaded tree-sitter-typescript v0.23.2
Downloaded icu_collections v1.5.0
Downloaded rustix v0.38.34
Downloaded flate2 v1.1.1
Downloaded tokio v1.42.1
Downloaded der v0.7.9
Downloaded crypto-bigint v0.5.5
Downloaded crossbeam-channel v0.5.15
Downloaded cc v1.2.2
Downloaded base64 v0.21.7
Downloaded icu_normalizer v1.5.0
Downloaded fraction v0.15.3
Downloaded zeroize v1.7.0
Downloaded zerocopy v0.7.35
Downloaded gix-object v0.46.1
Downloaded icu_provider v1.5.0
Downloaded fancy-regex v0.14.0
Downloaded bytes v1.10.1
Downloaded arc-swap v1.7.1
Downloaded git2 v0.19.0
Downloaded fluent-uri v0.3.2
Downloaded libm v0.2.8
Downloaded syn v2.0.89
Downloaded regex-syntax v0.8.5
Downloaded amplify v4.6.0
Downloaded icu_locid_transform v1.5.0
Downloaded iana-time-zone v0.1.60
Downloaded tower v0.5.2
Downloaded hyper v1.6.0
Downloaded tracing-core v0.1.33
Downloaded num v0.4.3
Downloaded gix-transport v0.44.0
Downloaded unicode-display-width v0.3.0
Downloaded inquire v0.7.5
Downloaded linux-raw-sys v0.4.13
Downloaded gix-protocol v0.47.0
Downloaded chacha20poly1305 v0.10.1
Downloaded anyhow v1.0.82
Downloaded http v1.3.1
Downloaded gix-fs v0.12.1
Downloaded nonempty v0.9.0
Downloaded unicode-width v0.1.11
Downloaded memmap2 v0.9.4
Downloaded gix-odb v0.66.0
Downloaded futures-channel v0.3.31
Downloaded chacha20 v0.9.1
Downloaded gix-prompt v0.9.1
Downloaded gix-lock v15.0.1
Downloaded syn v1.0.109
Downloaded serde_json v1.0.140
Downloaded bitflags v2.5.0
Downloaded gix-tempfile v15.0.0
Downloaded log v0.4.21
Downloaded libgit2-sys v0.17.0+1.8.1
Downloaded url v2.5.4
Downloaded lazy_static v1.5.0
Downloaded group v0.13.0
Downloaded zerovec-derive v0.10.3
Downloaded icu_locid_transform_data v1.5.1
Downloaded tree-sitter-css v0.23.1
Downloaded gix-sec v0.10.12
Downloaded gix-path v0.10.15
Downloaded ipnet v2.11.0
Downloaded diff v0.1.13
Downloaded gix-trace v0.1.12
Downloaded crossbeam-utils v0.8.19
Downloaded gix-commitgraph v0.25.1
Downloaded tree-sitter-html v0.23.2
Downloaded email_address v0.2.9
Downloaded tinyvec_macros v0.1.1
Downloaded noise-framework v0.4.0
Downloaded yoke-derive v0.7.5
Downloaded gix-shallow v0.1.0
Downloaded yansi v0.5.1
Downloaded utf8_iter v1.0.4
Downloaded utf16_iter v1.0.5
Downloaded inout v0.1.3
Downloaded jsonschema v0.30.0
Downloaded gix-negotiate v0.17.0
Downloaded walkdir v2.5.0
Downloaded vsimd v0.8.0
Downloaded jobserver v0.1.31
Downloaded gix-packetline v0.18.4
Downloaded hmac v0.12.1
Downloaded gix-diff v0.49.0
Downloaded base64 v0.13.1
Downloaded httparse v1.10.1
Downloaded gix-revision v0.31.1
Downloaded either v1.11.0
Downloaded displaydoc v0.2.5
Downloaded bytesize v2.0.1
Downloaded sqlite3-src v0.5.1
Downloaded byteorder v1.5.0
Downloaded amplify_syn v2.0.1
Downloaded thiserror-impl v2.0.12
Downloaded num-traits v0.2.19
Downloaded uuid-simd v0.8.0
Downloaded num-cmp v0.1.0
Downloaded ssh-key v0.6.6
Downloaded serde_derive v1.0.219
Downloaded thiserror v2.0.12
Downloaded gix-ref v0.49.1
Downloaded num-integer v0.1.46
Downloaded writeable v0.5.5
Downloaded ed25519 v1.5.3
Downloaded digest v0.10.7
Downloaded data-encoding v2.5.0
Downloaded cipher v0.4.4
Downloaded mime v0.3.17
Downloaded tree-sitter-highlight v0.24.4
Downloaded gix-actor v0.33.2
Downloaded num-rational v0.4.2
Downloaded version_check v0.9.4
Downloaded gix-config-value v0.14.12
Downloaded tree-sitter-json v0.24.8
Downloaded thiserror-impl v1.0.69
Downloaded multibase v0.9.1
Downloaded referencing v0.30.0
Downloaded futures-core v0.3.31
Downloaded ctr v0.9.2
Downloaded cpufeatures v0.2.12
Downloaded colored v2.1.0
Downloaded cbc v0.1.2
Downloaded blowfish v0.9.1
Downloaded gix-date v0.9.4
Downloaded gix-credentials v0.26.0
Downloaded xattr v1.3.1
Downloaded newline-converter v0.3.0
Downloaded netservices v0.8.0
Downloaded futures-task v0.3.31
Downloaded futures-sink v0.3.31
Downloaded fastrand v2.1.0
Downloaded serde_derive_internals v0.29.1
Downloaded filetime v0.2.23
Downloaded errno v0.3.9
Downloaded rsa v0.9.6
Downloaded radicle-surf v0.22.0
Downloaded cyphergraphy v0.3.0
Downloaded base32 v0.4.0
Downloaded aead v0.5.2
Downloaded spin v0.9.8
Downloaded smallvec v1.13.2
Downloaded git-ref-format-core v0.3.0
Downloaded fxhash v0.2.1
Downloaded dyn-clone v1.0.17
Downloaded base-x v0.2.11
Downloaded tar v0.4.40
Downloaded sqlite v0.32.0
Downloaded snapbox-macros v0.3.8
Downloaded snapbox v0.4.17
Downloaded crc32fast v1.4.0
Downloaded base64ct v1.6.0
Downloaded amplify_num v0.5.2
Downloaded slab v0.4.9
Downloaded shell-words v1.1.0
Downloaded const-oid v0.9.6
Downloaded subtle v2.5.0
Downloaded siphasher v1.0.1
Downloaded signature v2.2.0
Downloaded rand_chacha v0.3.1
Downloaded ghash v0.5.1
Downloaded futures-io v0.3.31
Downloaded ct-codecs v1.1.1
Downloaded autocfg v1.2.0
Downloaded sqlite3-sys v0.15.2
Downloaded similar v2.5.0
Downloaded sha1_smol v1.0.0
Downloaded regex v1.11.1
Downloaded ref-cast-impl v1.0.24
Downloaded fnv v1.0.7
Downloaded colorchoice v1.0.0
Downloaded serde_urlencoded v0.7.1
Downloaded schemars v1.0.0-alpha.17
Downloaded same-file v1.0.6
Downloaded equivalent v1.0.1
Downloaded data-encoding-macro-internal v0.1.12
Downloaded libz-sys v1.1.16
Downloaded streaming-iterator v0.1.9
Downloaded git-ref-format v0.3.0
Downloaded form_urlencoded v1.2.1
Downloaded faster-hex v0.9.0
Downloaded data-encoding-macro v0.1.14
Downloaded ref-cast v1.0.24
Downloaded rand_core v0.6.4
Downloaded rand v0.8.5
Downloaded ssh-encoding v0.2.0
Downloaded sha2 v0.10.8
Downloaded crypto-common v0.1.6
Downloaded sem_safe v0.2.0
Downloaded reqwest v0.12.15
Downloaded prodash v29.0.2
Downloaded anstream v0.6.13
Downloaded signals_receipts v0.2.0
Downloaded schemars_derive v1.0.0-alpha.17
Downloaded salsa20 v0.10.2
Downloaded rfc6979 v0.4.0
Downloaded generic-array v0.14.7
Downloaded borrow-or-share v0.2.2
Downloaded p384 v0.13.0
Downloaded adler2 v2.0.0
Downloaded signature v1.6.4
Downloaded sec1 v0.7.3
Downloaded radicle-git-ext v0.8.0
Downloaded proc-macro-error-attr v1.0.4
Downloaded pin-utils v0.1.0
Downloaded cypheraddr v0.4.0
Downloaded block-padding v0.3.3
Downloaded base16ct v0.2.0
Downloaded bcrypt-pbkdf v0.10.0
Downloaded cfg-if v1.0.0
Downloaded anstyle-parse v0.2.3
Downloaded ahash v0.8.11
Downloaded pin-project-lite v0.2.16
Downloaded quote v1.0.36
Downloaded pretty_assertions v1.4.0
Downloaded p256 v0.13.2
Downloaded bit-set v0.8.0
Downloaded pkcs1 v0.7.5
Downloaded once_cell v1.21.3
Downloaded anstyle v1.0.6
Downloaded pkcs8 v0.10.2
Downloaded phf v0.11.3
Downloaded bytecount v0.6.8
Downloaded pkg-config v0.3.30
Downloaded percent-encoding v2.3.1
Downloaded parking_lot_core v0.9.9
Downloaded block-buffer v0.10.4
Downloaded base64 v0.22.1
Downloaded anstyle-query v1.0.2
Downloaded ppv-lite86 v0.2.17
Downloaded polyval v0.6.2
Downloaded phf_shared v0.11.3
Downloaded pem-rfc7468 v0.7.0
Downloaded pbkdf2 v0.12.2
Downloaded elliptic-curve v0.13.8
Compiling libc v0.2.155
Compiling proc-macro2 v1.0.92
Compiling unicode-ident v1.0.12
Checking cfg-if v1.0.0
Compiling shlex v1.3.0
Compiling version_check v0.9.4
Checking memchr v2.7.2
Compiling autocfg v1.2.0
Compiling serde v1.0.219
Compiling quote v1.0.36
Compiling jobserver v0.1.31
Checking getrandom v0.2.15
Compiling syn v2.0.89
Checking smallvec v1.13.2
Compiling cc v1.2.2
Checking aho-corasick v1.1.3
Compiling typenum v1.17.0
Checking regex-syntax v0.8.5
Compiling generic-array v0.14.7
Checking rand_core v0.6.4
Checking log v0.4.21
Checking fastrand v2.1.0
Checking once_cell v1.21.3
Checking regex-automata v0.4.9
Checking crypto-common v0.1.6
Checking stable_deref_trait v1.2.0
Checking bitflags v2.5.0
Checking subtle v2.5.0
Checking itoa v1.0.11
Compiling syn v1.0.109
Checking zeroize v1.7.0
Checking cpufeatures v0.2.12
Checking writeable v0.5.5
Checking tinyvec_macros v0.1.1
Compiling icu_locid_transform_data v1.5.1
Checking litemap v0.7.5
Checking tinyvec v1.6.0
Compiling synstructure v0.13.1
Checking bstr v1.9.1
Compiling icu_properties_data v1.5.1
Checking unicode-normalization v0.1.23
Checking block-padding v0.3.3
Compiling icu_normalizer_data v1.5.1
Checking inout v0.1.3
Checking block-buffer v0.10.4
Compiling crc32fast v1.4.0
Compiling pkg-config v0.3.30
Compiling serde_derive v1.0.219
Compiling zerofrom-derive v0.1.6
Compiling yoke-derive v0.7.5
Compiling zerovec-derive v0.10.3
Compiling displaydoc v0.2.5
Checking zerofrom v0.1.6
Checking yoke v0.7.5
Compiling icu_provider_macros v1.5.0
Checking digest v0.10.7
Checking cipher v0.4.4
Checking utf8_iter v1.0.4
Checking zerovec v0.10.4
Checking percent-encoding v2.3.1
Checking hashbrown v0.14.3
Checking utf16_iter v1.0.5
Checking write16 v1.0.0
Compiling thiserror v1.0.69
Checking form_urlencoded v1.2.1
Compiling thiserror-impl v1.0.69
Compiling rustix v0.38.34
Checking tinystr v0.7.6
Checking icu_locid v1.5.0
Checking icu_collections v1.5.0
Checking icu_provider v1.5.0
Checking sha2 v0.10.8
Checking icu_locid_transform v1.5.0
Checking linux-raw-sys v0.4.13
Checking icu_properties v1.5.1
Checking universal-hash v0.5.1
Compiling vcpkg v0.2.15
Checking opaque-debug v0.3.1
Compiling amplify_syn v2.0.1
Compiling libz-sys v1.1.16
Compiling data-encoding v2.5.0
Checking icu_normalizer v1.5.0
Checking byteorder v1.5.0
Compiling amplify_derive v4.0.0
Checking idna_adapter v1.2.0
Checking idna v1.0.3
Checking url v2.5.4
Compiling data-encoding-macro-internal v0.1.12
Checking ascii v1.1.0
Checking amplify_num v0.5.2
Checking signature v1.6.4
Checking data-encoding-macro v0.1.14
Checking tempfile v3.10.1
Checking ed25519 v1.5.3
Compiling libgit2-sys v0.17.0+1.8.1
Checking aead v0.5.2
Compiling num-traits v0.2.19
Compiling proc-macro-error-attr v1.0.4
Checking base-x v0.2.11
Checking ct-codecs v1.1.1
Checking multibase v0.9.1
Checking ec25519 v0.1.0
Checking amplify v4.6.0
Checking poly1305 v0.8.0
Checking chacha20 v0.9.1
Compiling proc-macro-error v1.0.4
Checking cyphergraphy v0.3.0
Checking keccak v0.1.5
Checking sha3 v0.10.8
Compiling git-ref-format-core v0.3.0
Checking polyval v0.6.2
Checking hmac v0.12.1
Compiling sqlite3-src v0.5.1
Checking ppv-lite86 v0.2.17
Checking base64ct v1.6.0
Checking base32 v0.4.0
Checking rand_chacha v0.3.1
Checking pem-rfc7468 v0.7.0
Checking cypheraddr v0.4.0
Compiling git-ref-format-macro v0.3.0
Checking pbkdf2 v0.12.2
Checking ghash v0.5.1
Checking chacha20poly1305 v0.10.1
Checking ctr v0.9.2
Checking aes v0.8.4
Checking equivalent v1.0.1
Compiling serde_json v1.0.140
Checking ryu v1.0.17
Compiling crossbeam-utils v0.8.19
Checking aes-gcm v0.10.3
Checking indexmap v2.2.6
Checking git-ref-format v0.3.0
Checking noise-framework v0.4.0
Checking socks5-client v0.4.1
Checking rand v0.8.5
Checking ssh-encoding v0.2.0
Checking blowfish v0.9.1
Checking cbc v0.1.2
Compiling thiserror v2.0.12
Checking radicle-std-ext v0.1.0
Checking ssh-cipher v0.2.0
Checking bcrypt-pbkdf v0.10.0
Checking cyphernet v0.5.2
Compiling thiserror-impl v2.0.12
Checking signature v2.2.0
Checking ssh-key v0.6.6
Checking crossbeam-channel v0.5.15
Checking qcheck v1.0.0
Checking radicle-ssh v0.9.0 (/fb4e806d-fa24-4525-b324-37d1789c48a8/w/radicle-ssh)
Compiling ref-cast v1.0.24
Compiling ref-cast-impl v1.0.24
Checking lazy_static v1.5.0
Checking dyn-clone v1.0.17
Compiling lock_api v0.4.11
Compiling parking_lot_core v0.9.9
Checking siphasher v1.0.1
Checking nonempty v0.9.0
Compiling serde_derive_internals v0.29.1
Checking radicle-dag v0.10.0 (/fb4e806d-fa24-4525-b324-37d1789c48a8/w/radicle-dag)
Checking scopeguard v1.2.0
Checking tree-sitter-language v0.1.2
Checking iana-time-zone v0.1.60
Checking chrono v0.4.38
Compiling schemars_derive v1.0.0-alpha.17
Checking parking_lot v0.12.3
Checking colored v2.1.0
Checking bytesize v2.0.1
Checking localtime v1.3.1
Checking base64 v0.21.7
Compiling anyhow v1.0.82
Checking schemars v1.0.0-alpha.17
Checking anstyle-query v1.0.2
Checking gix-trace v0.1.12
Checking faster-hex v0.9.0
Checking errno v0.3.9
Checking sem_safe v0.2.0
Checking gix-utils v0.1.14
Checking signals_receipts v0.2.0
Checking adler2 v2.0.0
Checking miniz_oxide v0.8.8
Checking gix-hash v0.15.1
Checking same-file v1.0.6
Checking walkdir v2.5.0
Checking flate2 v1.1.1
Checking radicle-signals v0.11.0 (/fb4e806d-fa24-4525-b324-37d1789c48a8/w/radicle-signals)
Checking prodash v29.0.2
Compiling tree-sitter v0.24.4
Checking sha1_smol v1.0.0
Checking gix-features v0.39.1
Checking regex v1.11.1
Checking unicode-segmentation v1.11.0
Checking numtoa v0.1.0
Compiling xattr v1.3.1
Compiling filetime v0.2.23
Checking lexopt v0.3.0
Checking home v0.5.9
Checking gix-path v0.10.15
Compiling tar v0.4.40
Checking termion v2.0.3
Checking newline-converter v0.3.0
Checking fxhash v0.2.1
Checking streaming-iterator v0.1.9
Checking unicode-width v0.1.11
Checking inquire v0.7.5
Compiling radicle-surf v0.22.0
Checking termion v3.0.0
Checking unicode-display-width v0.3.0
Compiling tree-sitter-rust v0.23.2
Compiling tree-sitter-toml-ng v0.6.0
Compiling tree-sitter-typescript v0.23.2
Compiling tree-sitter-css v0.23.1
Compiling tree-sitter-c v0.23.2
Compiling tree-sitter-html v0.23.2
Compiling tree-sitter-ruby v0.23.1
Compiling tree-sitter-python v0.23.4
Compiling tree-sitter-json v0.24.8
Compiling tree-sitter-go v0.23.4
Compiling tree-sitter-md v0.3.2
Compiling tree-sitter-bash v0.23.3
Checking sqlite3-sys v0.15.2
Checking sqlite v0.32.0
Checking nonempty v0.5.0
Checking base64 v0.13.1
Compiling radicle-cli v0.13.0 (/fb4e806d-fa24-4525-b324-37d1789c48a8/w/radicle-cli)
Checking tree-sitter-highlight v0.24.4
Checking timeago v0.4.2
Checking jiff v0.2.1
Checking winnow v0.6.26
Checking gix-hashtable v0.6.0
Checking gix-validate v0.9.4
Checking memmap2 v0.9.4
Checking gix-chunk v0.4.11
Checking gix-commitgraph v0.25.1
Checking gix-fs v0.12.1
Checking socket2 v0.5.7
Checking gix-tempfile v15.0.0
Checking shell-words v1.1.0
Checking utf8parse v0.2.1
Checking gix-command v0.4.1
Checking anstyle-parse v0.2.3
Checking gix-lock v15.0.1
Checking gix-url v0.28.2
Checking gix-config-value v0.14.12
Checking gix-quote v0.4.15
Checking gix-sec v0.10.12
Checking anstyle v1.0.6
Checking colorchoice v1.0.0
Checking gix-prompt v0.9.1
Checking anstream v0.6.13
Checking gix-packetline v0.18.4
Checking gix-transport v0.44.0
Checking snapbox-macros v0.3.8
Checking gix-credentials v0.26.0
Checking gix-shallow v0.1.0
Compiling maybe-async v0.2.10
Checking gix-date v0.9.4
Checking arc-swap v1.7.1
Checking gix-actor v0.33.2
Checking normalize-line-endings v0.3.0
Checking similar v2.5.0
Checking gix-object v0.46.1
Checking futures-core v0.3.31
Checking pin-project-lite v0.2.16
Checking snapbox v0.4.17
Checking popol v3.0.0
Compiling slab v0.4.9
Checking either v1.11.0
Checking gix-revwalk v0.17.0
Checking gix-diff v0.49.0
Checking gix-ref v0.49.1
Checking gix-traverse v0.43.1
Checking gix-revision v0.31.1
Checking gix-pack v0.56.0
Checking gix-refspec v0.27.0
Checking gix-negotiate v0.17.0
Checking io-reactor v0.5.2
Checking gix-protocol v0.47.0
Checking salsa20 v0.10.2
Checking bytes v1.10.1
Checking yansi v0.5.1
Checking gix-odb v0.66.0
Checking siphasher v0.3.11
Checking diff v0.1.13
Checking futures-sink v0.3.31
Checking fnv v1.0.7
Compiling radicle-node v0.11.0 (/fb4e806d-fa24-4525-b324-37d1789c48a8/w/radicle-node)
Checking http v1.3.1
Checking pretty_assertions v1.4.0
Checking bloomy v1.2.0
Checking scrypt v0.11.0
Checking netservices v0.8.0
Checking num-integer v0.1.46
Checking mio v1.0.2
Checking futures-task v0.3.31
Compiling escargot v0.5.10
Checking futures-io v0.3.31
Checking radicle-systemd v0.9.0 (/fb4e806d-fa24-4525-b324-37d1789c48a8/w/radicle-systemd)
Compiling httparse v1.10.1
Checking pin-utils v0.1.0
Checking tokio v1.42.1
Checking futures-util v0.3.31
Checking http-body v1.0.1
Compiling qcheck-macros v1.0.0
Checking try-lock v0.2.5
Checking want v0.3.1
Checking num-bigint v0.4.6
Checking futures-channel v0.3.31
Checking tracing-core v0.1.33
Compiling ahash v0.8.11
Compiling radicle-remote-helper v0.10.0 (/fb4e806d-fa24-4525-b324-37d1789c48a8/w/radicle-remote-helper)
Checking tower-service v0.3.3
Checking num-rational v0.4.2
Checking hyper v1.6.0
Checking tracing v0.1.41
Checking num-iter v0.1.45
Checking sync_wrapper v1.0.2
Checking num-complex v0.4.6
Checking bit-vec v0.8.0
Checking zerocopy v0.7.35
Checking borrow-or-share v0.2.2
Checking tower-layer v0.3.3
Checking num v0.4.3
Checking fluent-uri v0.3.2
Checking tower v0.5.2
Checking hyper-util v0.1.10
Checking bit-set v0.8.0
Checking http-body-util v0.1.3
Checking phf_shared v0.11.3
Checking serde_urlencoded v0.7.1
Checking mime v0.3.17
Checking vsimd v0.8.0
Checking ipnet v2.11.0
Checking uuid v1.16.0
Checking outref v0.5.2
Checking base64 v0.22.1
Checking phf v0.11.3
Checking uuid-simd v0.8.0
Checking reqwest v0.12.15
Checking referencing v0.30.0
Checking fancy-regex v0.14.0
Checking fraction v0.15.3
Checking email_address v0.2.9
Checking bytecount v0.6.8
Checking num-cmp v0.1.0
Checking emojis v0.6.4
Checking jsonschema v0.30.0
Checking git2 v0.19.0
Checking radicle-git-ext v0.8.0
Checking radicle-term v0.12.0 (/fb4e806d-fa24-4525-b324-37d1789c48a8/w/radicle-term)
Checking radicle-crypto v0.12.0 (/fb4e806d-fa24-4525-b324-37d1789c48a8/w/radicle-crypto)
Checking radicle-cob v0.13.0 (/fb4e806d-fa24-4525-b324-37d1789c48a8/w/radicle-cob)
Checking radicle-crdt v0.1.0 (/fb4e806d-fa24-4525-b324-37d1789c48a8/w/radicle-crdt)
Checking radicle v0.15.0 (/fb4e806d-fa24-4525-b324-37d1789c48a8/w/radicle)
Checking radicle-fetch v0.11.0 (/fb4e806d-fa24-4525-b324-37d1789c48a8/w/radicle-fetch)
Checking radicle-cli-test v0.11.0 (/fb4e806d-fa24-4525-b324-37d1789c48a8/w/radicle-cli-test)
Checking radicle-schemars v0.1.0 (/fb4e806d-fa24-4525-b324-37d1789c48a8/w/radicle-schemars)
error: this expression creates a reference which is immediately dereferenced by the compiler
--> radicle-schemars/src/main.rs:39:26
|
39 | if !SCHEMAS.contains(&&name.as_str()) {
| ^^^^^^^^^^^^^^^ help: change this to: `(&name.as_str())`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `-D clippy::needless-borrow` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_borrow)]`
error: could not compile `radicle-schemars` (bin "radicle-schemars") due to 1 previous error
warning: build failed, waiting for other jobs to finish...
Exit code: 101
{
"response": "finished",
"result": "failure"
}