Compare commits

..

3 commits

Author SHA1 Message Date
Jade Ellis
a0610fd11f
feat: Generate admin command documentation
Some checks failed
Release Docker Image / define-variables (push) Failing after 1s
Release Docker Image / build-image (linux/amd64, linux-amd64) (push) Has been skipped
Release Docker Image / build-image (linux/arm64, linux-arm64) (push) Has been skipped
Release Docker Image / merge (push) Has been skipped
Rust Checks / Format (push) Failing after 1s
Rust Checks / Clippy (push) Failing after 9s
Rust Checks / Cargo Test (push) Failing after 10s
The first part of getting admin command docs on the website.

Next is is including it in the same way we do the example config or
readme.

There's also the beginnings of manpage generation here, although it's
kinda sus and I'm not sure how it's supposed to work. I'll leave that to
anyone who wants to package it.

We introduce the beginings of the xtask pattern here - we do a lot of
file generation, I thought it would be best to avoid doing that on every
compilation. It also helps avoid lots of runtime deps.

We'll need to document generating this stuff & probably add pre-commit
hooks for it, though.
2025-05-24 01:00:58 +01:00
Jade Ellis
9bf6faa784
feat: Support logging to journald with tracing-journald
This stubs out on non-unix platforms.
2025-05-24 01:00:57 +01:00
Jade Ellis
6e0816e326
build: Don't rerun on git changes
Some checks failed
Release Docker Image / define-variables (push) Failing after 1s
Release Docker Image / build-image (linux/amd64, linux-amd64) (push) Has been skipped
Release Docker Image / build-image (linux/arm64, linux-arm64) (push) Has been skipped
Release Docker Image / merge (push) Has been skipped
Rust Checks / Format (push) Failing after 2s
Rust Checks / Clippy (push) Failing after 16s
Rust Checks / Cargo Test (push) Failing after 9s
2025-05-24 00:55:19 +01:00

View file

@ -79,12 +79,12 @@ fn main() {
// --- Rerun Triggers --- // --- Rerun Triggers ---
// TODO: The git rerun triggers seem to always run // TODO: The git rerun triggers seem to always run
// Rerun if the git HEAD changes // // Rerun if the git HEAD changes
println!("cargo:rerun-if-changed=.git/HEAD"); // println!("cargo:rerun-if-changed=.git/HEAD");
// Rerun if the ref pointed to by HEAD changes (e.g., new commit on branch) // // Rerun if the ref pointed to by HEAD changes (e.g., new commit on branch)
if let Some(ref_path) = run_git_command(&["symbolic-ref", "--quiet", "HEAD"]) { // if let Some(ref_path) = run_git_command(&["symbolic-ref", "--quiet", "HEAD"])
println!("cargo:rerun-if-changed=.git/{ref_path}"); // { println!("cargo:rerun-if-changed=.git/{ref_path}");
} // }
println!("cargo:rerun-if-env-changed=GIT_COMMIT_HASH"); println!("cargo:rerun-if-env-changed=GIT_COMMIT_HASH");
println!("cargo:rerun-if-env-changed=GIT_COMMIT_HASH_SHORT"); println!("cargo:rerun-if-env-changed=GIT_COMMIT_HASH_SHORT");