fix(deps): update rust crate uuid to v1 #37
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.8->1.6Release Notes
uuid-rs/uuid (uuid)
v1.6.1Compare Source
What's Changed
Full Changelog: uuid-rs/uuid@1.6.0...1.6.1
v1.6.0Compare Source
What's Changed
New Contributors
Full Changelog: uuid-rs/uuid@1.5.0...1.6.0
v1.5.0Compare Source
What's Changed
bytemucksupport by @John-Toohey in https://github.com/uuid-rs/uuid/pull/711New Contributors
Full Changelog: uuid-rs/uuid@1.4.1...1.5.0
v1.4.1Compare Source
What's Changed
New Contributors
Full Changelog: uuid-rs/uuid@1.4.0...1.4.1
v1.4.0Compare Source
What's Changed
borshsupport by @grovesNL in https://github.com/uuid-rs/uuid/pull/686New Contributors
Full Changelog: uuid-rs/uuid@1.3.4...1.4.0
v1.3.4Compare Source
What's Changed
wasm32-wasisupport with tests by @acfoltzer in https://github.com/uuid-rs/uuid/pull/677New Contributors
Full Changelog: uuid-rs/uuid@1.3.3...1.3.4
v1.3.3Compare Source
What's Changed
Full Changelog: uuid-rs/uuid@1.3.2...1.3.3
v1.3.2Compare Source
What's Changed
New Contributors
Full Changelog: uuid-rs/uuid@1.3.1...1.3.2
v1.3.1Compare Source
What's Changed
Full Changelog: uuid-rs/uuid@1.3.0...1.3.1
v1.3.0Compare Source
What's Changed
New Contributors
Full Changelog: uuid-rs/uuid@1.2.2...1.3.0
v1.2.2Compare Source
What's Changed
Full Changelog: uuid-rs/uuid@1.2.1...1.2.2
v1.2.1Compare Source
What's Changed
Full Changelog: uuid-rs/uuid@1.2.0...1.2.1
v1.2.0Compare Source
What's Changed
New Contributors
Full Changelog: uuid-rs/uuid@1.1.2...1.2.0
v1.1.2Compare Source
What's Changed
New Contributors
Full Changelog: uuid-rs/uuid@1.1.1...1.1.2
v1.1.1Compare Source
What's Changed
New Contributors
Full Changelog: uuid-rs/uuid@1.1.0...1.1.1
v1.1.0Compare Source
What's Changed
New Contributors
Full Changelog: uuid-rs/uuid@1.0.0...1.1.0
v1.0.0Compare Source
This release includes a huge amount of work from a lot of contributors. These notes are duplicated from
1.0.0-alpha.1since they're relevant for anybody moving from0.8.2to1.0.0.Changes since the last release
Contributions since the last release
@Gaelan @hecsalazarf @Expyron @saiintbrisson @tshepang @Tehnix @Takashiidobe @A248 @clehner
With a special thanks to:
@kinggoesgaming @QnnOkabayashi @Nugine
Highlights
Parsing and formatting methods are now much faster, and work in
consttoo! On my i9 9900K Windows desktop, the difference looks something like this:Case |
1.0.0-alpha.1|0.8.3----------------------- | ------------------ | ------------------
parse_invalid_character | 40 ns/iter (+/- 0) | 39 ns/iter (+/- 1)
parse_invalid_group_len | 47 ns/iter (+/- 1) | 52 ns/iter (+/- 5)
parse_invalid_groups | 58 ns/iter (+/- 1) | 58 ns/iter (+/- 0)
parse_invalid_len | 57 ns/iter (+/- 2) | 6 ns/iter (+/- 0)
parse_nil | 16 ns/iter (+/- 0) | 50 ns/iter (+/- 4)
parse_nil_hyphenated | 17 ns/iter (+/- 0) | 59 ns/iter (+/- 2)
parse_random | 16 ns/iter (+/- 0) | 42 ns/iter (+/- 1)
parse_random_hyphenated | 18 ns/iter (+/- 0) | 51 ns/iter (+/- 2)
parse_urn | 18 ns/iter (+/- 0) | 51 ns/iter (+/- 1)
You can go one step further and look at the
uuid-simdlibrary for vectorized UUID parsing. It's fast!You can create UUIDs at compile time using the
uuid!macro:Enable the
macro-diagnosticscrate feature to get better diagnostics fromuuid!using a procedural macro.Breaking changes
Relocation of
adapter::compactThis module can now be found in
serde::compact. It can be combined with#[serde(with)]to serialize aUuidusing a more compact representation. We originally moved to this representation directly, but discovered it comes with its own drawbacks that aren't suitable for all formats.Infallible constructors
The following methods have been changed to accept a
&[u8; N]instead of a&[u8], making them infallible instead of returning aResult:Uuid::from_fieldsUuid::from_fields_leUuid::new_v1Builder::from_fieldsBuilder::from_fields_leInfallible
get_variantThe
Uuid::get_variantmethod now returns aVariantinstead of anOption<Varaint>, because it's not actually possible for it to ever beNone.Uuid::to_timestampis nowUuid::get_timestampThe
Uuid::to_timestampmethod has been renamed toUuid::get_timestampto make it more consistent withUuid::get_versionandUuid::get_variant.Changes to formatting methods
The following methods that produce formatting adapters have been renamed:
Uuid::to_hyphenated->Uuid::hyphenatedUuid::to_simple->Uuid::simpleUuid::to_urn->Uuid::urnThe following types have been removed:
HyphenatedRefSimpleRefUrnRefThe following methods have been changed to return a
&<AdapterType>instead of an<AtapterType>Ref:Uuid::to_hyphenated_ref->Uuid::as_hyphenatedUuid::to_simple_ref->Uuid::as_simpleUuid::to_urn_ref->Uuid::as_urnBuildermethod consistencyThe
Builder::buildmethod has been renamed toBuilder::into_uuid, to complement the<AdapterType>::into_uuidmethods. It also gets an equivalentBuilder::as_uuidmethod.VersionandVariantare non-exhaustiveThe
#[non_exhaustive]attribute has been added toVersionandVariant. There are already active proposals for new UUID versions, so these are likely to continue evolving in the future.Removed
winapisupportThe
Uuid::to_guidandUuid::from_guidmethods have been removed. This was done for two reasons:winapitypes in the stableuuidpublic API.There are some examples in the repository root that demonstrate how to convert GUIDs into UUIDs as a replacement.
Building with
--all-featuresNow that
uuidincludes unstable features, if you're building with--all-features(such as in package manager scenarios), you'll also need to passRUSTFLAGS="--cfg uuid_unstable", or you'll end up with compilation errors. If this strategy becomes problematic for users we can change unstable features to silently no-op instead of cause compilation failures if the corresponding cfg is not also supplied. Please reach out if that affects you!Stability commitment
With
uuid1.0we'll try to stay on that version "forever". There won't be a2.0unless there's a very compelling need for it. That means you should feel safe depending onUuidin the public API of your libraries if you want to.v0.8.2: uuid 0.8.2: API and feature cleanupsCompare Source
This release includes a large number of internal refactorings and changes to dependencies.
The
0.8.xreleases are now tracked on the0.8.xbranch ofuuid. Themainbranch now contains breaking changes.Contributions
md5to0.7(#442)getrandominstead ofrand(#447)serde_derive(#478)Uuid#[repr(transparent)](#468)randcrate (#489)getrandomto0.2.0(#501)v0.8.1: uuid 0.8.1: DocsCompare Source
This release doesn't contain any source changes, it fixes up errors in the docs, adds clarification and more examples.
Contributions
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.