radicle-heartwood-lfs/crates/radicle-protocol/src
Lorenz Leutgeb 22b2871f64 radicle: Add Version to User Agent
The main motivation behind this change is to get just a little
telemetry information from nodes on the network, namely the version
of Radicle they are running.

This is achieved by rewriting `impl Default for UserAgent` which now
uses the version information provided by the build script also used
in other crates.

Also, a new configuration option `node.userAgent` is added, which
allows users to override the user agent if they so please, or set
the value `null`, which will in turn send the user agent
`/radicle/`, which is not really helpful, and the default prior to
this commit.

Creations of `UserAgent` in the whole workspace is cleaned up. In
order to do that `UserAgent::test` is introduced.
2026-04-02 16:26:46 +01:00
..
fetcher rust/edition/fmt: 2021 → 2024 2026-03-30 16:57:51 +02:00
service radicle: Add Version to User Agent 2026-04-02 16:26:46 +01:00
wire cargo: Add feature for Tor support 2026-03-31 16:24:22 +02:00
worker rust/edition/fmt: 2021 → 2024 2026-03-30 16:57:51 +02:00
bounded.rs rust/edition: 2021 → 2024 2026-03-30 16:56:58 +02:00
deserializer.rs rust/edition: 2021 → 2024 2026-03-30 16:56:58 +02:00
fetcher.rs protocol: Allow configuration of `radicle_fetch::Config` 2026-03-24 14:40:42 +00:00
lib.rs protocol: Introduce `FetcherState` 2026-02-05 20:04:28 +01:00
service.rs node: Explicit default for `AddressConfig` 2026-03-31 16:24:22 +02:00
wire.rs protocol: Use pastey fork 2026-04-02 14:46:41 +01:00
worker.rs protocol: Allow configuration of `radicle_fetch::Config` 2026-03-24 14:40:42 +00:00