swarm-secret-client: derive Kind's segment strings via strum instead of a hand-written match

This commit is contained in:
damocles 2026-09-11 20:41:52 +02:00
commit 0d6c003fa8
4 changed files with 41 additions and 9 deletions

View file

@ -113,6 +113,10 @@ schemars = "1.0"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
similar = "2"
# `derive`-only: `Kind`'s segment strings via `#[strum(serialize = "...")]`
# instead of a hand-written match, so the derive macro is the single source
# of truth (see `swarm-secret-client::path::Kind`).
strum = { version = "0.28.0", features = ["derive"] }
tokio = { version = "1", features = [
"fs",
"io-util",