diff options
author | Florian Klink <flokli@flokli.de> | 2024-02-29T08·28+0200 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2024-03-03T13·17+0000 |
commit | 442eabe9d0c9e88e902d40a7748652bdca3d5628 (patch) | |
tree | 038db8a97359b0e70ebac569af29502af5e50b2b /tvix/nix-compat/src/nixhash/mod.rs | |
parent | eff2cc4f6844875f3684bfb17a134ccd0b5547a4 (diff) |
feat(tvix/nix-compat): add HashMode and CAHash::mode() r/7634
This allows peeking at the mode without matching on all enum kinds of CAHash directly. Change-Id: Icca147a876f7f4cff0bbaa067ac4dae40d05bee9 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11069 Reviewed-by: flokli <flokli@flokli.de> Reviewed-by: Brian Olsen <me@griff.name> Tested-by: BuildkiteCI Autosubmit: flokli <flokli@flokli.de>
Diffstat (limited to 'tvix/nix-compat/src/nixhash/mod.rs')
-rw-r--r-- | tvix/nix-compat/src/nixhash/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tvix/nix-compat/src/nixhash/mod.rs b/tvix/nix-compat/src/nixhash/mod.rs index a6f2b967996a..25b89d8f8eb0 100644 --- a/tvix/nix-compat/src/nixhash/mod.rs +++ b/tvix/nix-compat/src/nixhash/mod.rs @@ -9,6 +9,7 @@ mod ca_hash; pub use algos::HashAlgo; pub use ca_hash::CAHash; +pub use ca_hash::HashMode as CAHashMode; /// NixHash represents hashes known by Nix. #[derive(Clone, Debug, Eq, PartialEq)] |