Lorenz Leutgeb
8bac24d6ab
rust/edition/fmt: 2021 → 2024
...
Reformat code with `rustfmt`, now that the edition changed from
Rust 2021 to Rust 2024.
2026-03-30 16:57:51 +02:00
Lorenz Leutgeb
0494227e75
rust/edition: 2021 → 2024
...
Switch from Rust 2021 to Rust 2024.
See <https://doc.rust-lang.org/edition-guide/rust-2024/ >.
Regarding the added bound `use<>`, see
<https://blog.rust-lang.org/2024/09/05/impl-trait-capture-rules/ >.
2026-03-30 16:56:58 +02:00
Fintan Halpenny
f9a36ef7ac
systemd: Update to 0.12.0
2026-02-20 13:11:50 +00:00
Lorenz Leutgeb
0c513e981f
systemd: Support Credentials
...
Add `mod credential` with `fn path` which implements a simple lookup of
systemd credentials. See <https://systemd.io/CREDENTIALS/ >
2025-10-09 10:03:21 +01:00
Fintan Halpenny
ee041d8d06
crates: bump for release
...
- `radicle-term`: 0.15.0 -> 0.16.0
- `radicle-node`: 0.15.0 -> 0.16.0
- `radicle-fetch`: 0.15.0 -> 0.16.0
- `radicle-crypto`: 0.13.0 -> 0.14.0
- `radicle-cli`: 0.16.0 -> 0.17.0
- `radicle`: 0.19.0 -> 0.20.0
- `radicle-cob`: 0.16.0 -> 0.17.0
- `radicle-remote-helper`: 0.13.0 -> 0.14.0
- `radicle-protocol`: 0.3.0 -> 0.4.0
- `radicle-systemd`: 0.10.0 -> 0.11.0
2025-10-06 16:36:30 +01:00
Lorenz Leutgeb
5cd016b587
radicle-systemd: Guard `mod listen` for Unix
...
This crate does not build on Windows, because there is a Unix-only `use`
in `mod listen`. To get the crate to build, guard the module
appropriately.
2025-10-02 15:46:56 +01:00
Lorenz Leutgeb
474b97950b
node/log: Define syslog identifier
...
The argument passed to `fn logger` would only be used as a fallback.
Make it required to pass an identifier, as this is a good practice.
2025-10-01 16:46:46 +02:00
Lorenz Leutgeb
e563117397
node: Refactor logging initialization
...
Logging initialization was infallible previously, i.e., a logger would
always have to be chosen, falling back to our own logger
implementation in case of failure with setting up journald submission.
This lead to complexity like attempting to log errors from parsing
arguments, as there is a circular dependency.
Change this to make logging initialization fallible. If it fails, exit
non-zero instead of falling back to another logger. This makes the
initialization code slightly simpler.
At the same time, make choosing the logger possible via the command
line and deprecate `--log`.
Note that we still default to journald if detected.
2025-09-23 16:33:50 +02:00
Yorgos Saslis
9793b4e7b6
systemd: Require Linux for journal module
...
The dependency `systemd-journal-logger` does not build on macOS, and
there are no tests for other Unixes. Also, systemd is most common on
Linux.
To avoid compilation errors on non-Linux platforms, only depend on the
crate when building on Linux.
Co-authored-by: Lorenz Leutgeb <lorenz.leutgeb@radicle.xyz>
2025-09-19 15:39:53 +02:00
Fintan Halpenny
0e48723b41
release: prepare crates
...
The `radicle` crate required a bump `0.16.1 -> 0.17`.
Due to this, all its dependents are also bumped
- `radicle-cli`: `0.14.0` -> `0.15.0`
- `radicle-fetch`: `0.12.0` -> `0.13.0`
- `radicle-node`: `0.12.0` -> `0.13.0`
- `radicle-remote-helper`: `0.11.0` -> `0.12.0`
- `radicle-schemars`: `0.1.0` -> `0.2.0`
The following also required upgrading:
- `radicle-ssh`: `0.9.0` -> `0.10.0`
- `radicle-systemd`: `0.9.0` -> `0.10.0`
- `radicle-term`: `0.13.0` -> `0.14.0`
2025-08-12 12:13:49 +02:00
Lorenz Leutgeb
c7f3c47f9a
systemd: Add module for logging to the journal
2025-08-07 08:30:59 +01:00
Lorenz Leutgeb
2776e003dc
systemd: Move socket activation to module
2025-08-07 08:30:59 +01:00
Lorenz Leutgeb
5bc2dc677b
repo: Move workspace crates into `crates` subdirectory
...
This keeps the top level of the repo cleaner, e.g.
<https://github.com/radicle-dev/heartwood > scrolls less and
<https://app.radicle.xyz/nodes/rosa.radicle.xyz/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5/ >
might show more files at the top level.
This way we also don't have to explicitly name all crates in
`Cargo.toml`.
2025-06-09 15:09:21 +02:00