feat(nix-compat): Use serde_with for HashAlgo serialization
We already have serde_with in the workspace and using it cuts down on code lines (very slightly). This also adds a FromStr implementation for HashAlgo in addition to the existing TryFrom<&str>. Change-Id: I1b525d7391f3881d54cef0c74d22198ad394f47d Reviewed-on: https://cl.snix.dev/c/snix/+/30652 Reviewed-by: Florian Klink <flokli@flokli.de> Tested-by: besadii Autosubmit: Brian Olsen <brian@maven-group.org>
This commit is contained in:
parent
6187029077
commit
e5177ae930
10 changed files with 36 additions and 33 deletions
|
|
@ -5611,7 +5611,7 @@ rec {
|
|||
"futures" = [ "dep:futures" ];
|
||||
"nix-compat-derive" = [ "dep:nix-compat-derive" ];
|
||||
"pin-project-lite" = [ "dep:pin-project-lite" ];
|
||||
"serde" = [ "dep:serde" "dep:serde_json" ];
|
||||
"serde" = [ "dep:serde" "dep:serde_json" "dep:serde_with" ];
|
||||
"tokio" = [ "dep:tokio" ];
|
||||
"url" = [ "dep:url" ];
|
||||
"wire" = [ "tokio" "pin-project-lite" "bytes" ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue