Use u64 instead of u32 in Version fields (#555)

It turns out that it's not uncommon to use timestamps as patch versions
(e.g., `20230628214621`). I believe this is the ISO 8601 "basic format".
These can't be represented by a `u32`, so I think it makes sense to just
bump to `u64` to remove this limitation.
This commit is contained in:
Charlie Marsh 2023-12-04 21:00:55 -05:00 committed by GitHub
parent af13c83177
commit 06ee321e9c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 28 additions and 27 deletions

View file

@ -71,7 +71,7 @@ impl TryFrom<&VersionSpecifier> for PubGrubSpecifier {
} else if let Some(post) = low.post {
low.post = Some(post + 1);
} else {
low.post = Some(u32::MAX);
low.post = Some(u64::MAX);
}
let version = PubGrubVersion::from(specifier.version().clone());
Range::strictly_higher_than(version)