Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

freeze_struct improvements #606

Open
3 tasks
sam0x17 opened this issue Jul 2, 2024 · 0 comments
Open
3 tasks

freeze_struct improvements #606

sam0x17 opened this issue Jul 2, 2024 · 0 comments
Assignees
Labels
blue team defensive programming, CI, etc

Comments

@sam0x17
Copy link
Contributor

sam0x17 commented Jul 2, 2024

#513 introduced the #[freeze_struct] attribute which allows you to "lock" a storage struct such that any changes to it result in a new hash code that is enforced at compile time.

A few additional features would enhance this:

  • ignore changes to generic name in hash code calculation (verify that this is actually harmless)
  • ignore changes to field names in hash code calculation (verify that this is actually harmless)
  • an automatic lint requiring this on storage structs
@sam0x17 sam0x17 added the blue team defensive programming, CI, etc label Jul 2, 2024
@sam0x17 sam0x17 self-assigned this Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blue team defensive programming, CI, etc
Projects
None yet
Development

No branches or pull requests

1 participant