Skip to content

Commit

Permalink
Merge pull request #407 from mattsse/matt/derive-hash
Browse files Browse the repository at this point in the history
feat: derive hash for generated types
  • Loading branch information
asn-d6 authored Mar 8, 2024
2 parents 34858f7 + d8b5b00 commit fb1bc62
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion bindings/rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions bindings/rust/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ fn make_bindings(header_path: &str, blst_headers_dir: &str, bindings_out_path: &
.parse_callbacks(Box::new(Callbacks))
// Add PartialEq and Eq impls to types.
.derive_eq(true)
// All types are hashable.
.derive_hash(true)
// Blobs are big, we don't want rust to liberally copy them around.
.no_copy("Blob")
// Do not make fields public. If we want to modify them we can create setters/mutable
Expand Down
18 changes: 9 additions & 9 deletions bindings/rust/src/bindings/generated.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fb1bc62

Please sign in to comment.