Skip to content

Conversation

DarthB
Copy link
Contributor

@DarthB DarthB commented Sep 1, 2025

At the moment the enums represented in raw.rs use isize which has different sizes (4 or 8 bytes) depending on the system.

  • This PR removes the usage of isize as representation for enums and replaces it with either u32 or i32, depending on whether the underlying constants have negative values.
  • It adds strum as a dependency to add a from_repr method to the enums.

This is a breaking change.

@DarthB DarthB force-pushed the tj/prop/system_independent_enum_repr branch from 1db7651 to 5ba11f3 Compare September 9, 2025 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant