-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix reproducible builds due to how derives were populated
Previously `HashSet` was used to prevent duplicate entries in the computed derive attributes for bindgen generated code. The default hasher used in `HashSet` is randomly seeded on each process run to prevent HashDos. This random seeding resulted in changing the ordering of the resulted derive attributes. This changing order of the derive attributes prevented reproducible builds as the derived implementations would move around in the resultant binary. Now `BtreeSet` is used to prevent duplicate derives during code generation. This provides a consistent ordering of the derives.
- Loading branch information
1 parent
5123503
commit 46fde17
Showing
1 changed file
with
52 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters