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

Replace consts with sizes #68

Merged
merged 1 commit into from Mar 17, 2024
Merged

Replace consts with sizes #68

merged 1 commit into from Mar 17, 2024

Conversation

tarcieri
Copy link
Member

Replaces the re-export of typenum::consts by making the sizes module public.

This ensures that the sizes module only contains supported sizes with ArraySize impls which should help prevent confusion about which array sizes are supported.

It also makes the type aliases for extra-sizes available so they don't have to be computed.

Closes #64.

Replaces the re-export of `typenum::consts` by making the `sizes` module
public. A deprecated module is retained for backwards compatibility
which re-exports the contents of the `sizes` module, which we might
consider removing prior to a v0.2 release.

This ensures that the `sizes` module only contains supported sizes with
`ArraySize` impls which should help prevent confusion about which array
sizes are supported.

It also makes the type aliases for `extra-sizes` available so they don't
have to be computed.
@tarcieri tarcieri merged commit aeedcbf into master Mar 17, 2024
14 checks passed
@tarcieri tarcieri deleted the sizes-module branch March 17, 2024 17:00
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.

extra_sizes type aliases are not publicly accessible
1 participant