swarm-secret-client: derive Kind's segment strings via strum instead of a hand-written match
This commit is contained in:
parent
1fb9e068ee
commit
0d6c003fa8
4 changed files with 41 additions and 9 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue