protocol: Depend on `cypheraddr` not `cyphernet`
radicle-protocol depends on cyphernet, but only uses the module
cyphernet::addr, which is a re-export of cypheraddr, which is
unnecessary (as cypheraddr alone would do), and invites accidentally
pulling in more dependencies via cyphernet.
To prevent accidentally depending on further types from cyphernet,
change this to more conservativeley depend on cypheraddr.
node/debug: Use derived serializers
The construction of the debug object is unwieldy, and error prone (for example, renamed struct members have to be manually renamed in the serialization code, see “refs” vs. “refsAt”).
Use derived serializers where possible to make this easier to maintain.
remote-helper: Produce push certificates
11 files changed
+103
-44
c06b00e3
→
075a2008
modified Cargo.lock
@@ -679,6 +679,7 @@ dependencies = [
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -3083,7 +3084,7 @@ dependencies = [
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified Cargo.toml
@@ -25,6 +25,7 @@ bytes = "1.11.1"
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified crates/radicle-node/src/runtime/handle.rs
@@ -350,35 +350,10 @@ impl radicle::node::Handle for Handle {
|
|
|
|
|
|
| - | |
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-protocol/Cargo.toml
@@ -15,7 +15,7 @@ test = ["radicle/test", "radicle-crypto/test", "radicle-crypto/cyphernet", "qche
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-protocol/src/fetcher/state.rs
@@ -10,6 +10,7 @@ pub mod event;
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -42,7 +43,7 @@ pub const MAX_CONCURRENCY: NonZeroUsize = NonZeroUsize::MIN;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -235,7 +236,7 @@ impl FetcherState {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -271,7 +272,7 @@ impl Default for Config {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -290,7 +291,7 @@ impl ActiveFetch {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -304,14 +305,15 @@ pub struct QueuedFetch {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-protocol/src/service/limiter.rs
@@ -2,6 +2,7 @@ use std::collections::{HashMap, HashSet};
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -9,7 +10,7 @@ use radicle::node::{address, config, HostName, NodeId};
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-protocol/src/wire.rs
@@ -15,7 +15,7 @@ use std::string::FromUtf8Error;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -257,7 +257,7 @@ impl Encode for Refs {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-protocol/src/wire/message.rs
@@ -2,7 +2,7 @@ use std::{mem, net};
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-remote-helper/src/push.rs
@@ -4,7 +4,7 @@ mod canonical;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -974,18 +974,58 @@ fn push_ref(
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -993,10 +1033,9 @@ fn push_ref(
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1004,6 +1043,8 @@ fn push_ref(
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
added post-receive
@@ -0,0 +1,14 @@
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
added pre-receive
@@ -0,0 +1,24 @@
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |