Skip to content

Make UniformUsize serializable #1646

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

Merged
merged 4 commits into from
Jul 17, 2025
Merged

Conversation

aleb
Copy link
Contributor

@aleb aleb commented Jul 11, 2025

  • Added a CHANGELOG.md entry

Motivation

This allows WeightedIndex<usize> to be serializable.

@aleb aleb force-pushed the usize-serializable branch 2 times, most recently from cf0a643 to 4667477 Compare July 16, 2025 10:46
@aleb
Copy link
Contributor Author

aleb commented Jul 16, 2025

Not sure if the second commit is useful

@aleb aleb force-pushed the usize-serializable branch 2 times, most recently from b185474 to f0bb4df Compare July 16, 2025 12:31
Copy link
Member

@dhardy dhardy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Thanks for the misc. fixes; they look good.

@aleb aleb force-pushed the usize-serializable branch 2 times, most recently from b456cd3 to 4177e69 Compare July 16, 2025 14:49
aleb added 4 commits July 17, 2025 12:30
For now the 32-bit implementation is limited to serialization. A (custom) 32-bit
deserializer would have to panic when the objects serialized on 64-bit are not
usable on 32-bit.
Warnings reported by CI and by `cargo clippy --all-targets --all-features -- -D warnings`
@aleb aleb force-pushed the usize-serializable branch from 4177e69 to 236bce0 Compare July 17, 2025 10:30
@dhardy dhardy merged commit 6cb75ee into rust-random:master Jul 17, 2025
15 checks passed
@aleb
Copy link
Contributor Author

aleb commented Jul 17, 2025

Thanks! When do you think will be the next release?

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.

2 participants