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.
8 files changed
+19
-39
d530f126
→
5099c25d
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};
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|