diff options
author | Florian Klink <flokli@flokli.de> | 2024-03-20T16·00+0200 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2024-03-20T21·19+0000 |
commit | 9793745459fb5a8d2d66c4e8832b9ca79fdd9a1a (patch) | |
tree | f271f594fa8edd26aafaacfdbb861873cd3edd1d /tvix/castore/build.rs | |
parent | 345a639e799bed7a11ab75e3e90b4246e64269df (diff) |
feat(tvix/castore): derive Eq and Hash automatically r/7757
This allows these messages to be put in HashSets. Change-Id: Ia58094cafe53eb624578821d3d8d969c5d21a1d7 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11219 Tested-by: BuildkiteCI Reviewed-by: Connor Brewster <cbrewster@hey.com> Autosubmit: flokli <flokli@flokli.de>
Diffstat (limited to 'tvix/castore/build.rs')
-rw-r--r-- | tvix/castore/build.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tvix/castore/build.rs b/tvix/castore/build.rs index 6424487b2112..089c093e71b4 100644 --- a/tvix/castore/build.rs +++ b/tvix/castore/build.rs @@ -15,6 +15,7 @@ fn main() -> Result<()> { // https://github.com/hyperium/tonic/issues/908 let mut config = prost_build::Config::new(); config.bytes(["."]); + config.type_attribute(".", "#[derive(Eq, Hash)]"); builder .build_server(true) |