1214 Commits

Author SHA1 Message Date
KodrAus
fd0fb6e338 more work on docs 2021-11-01 11:03:02 +10:00
KodrAus
1960f9faf4 fix up signature of Uuid::from_fields_le 2021-11-01 11:02:37 +10:00
KodrAus
afa89e6e50 work on doc examples 2021-11-01 10:49:31 +10:00
KodrAus
5c1d3853dd make version and variant non_exhaustive 2021-11-01 08:24:56 +10:00
KodrAus
128befda46 split up v1 tests 2021-11-01 08:19:01 +10:00
KodrAus
69b9014747 focus benches on formatting and parsing 2021-11-01 08:16:43 +10:00
Ashley Mannix
b32f3728f8
Merge pull request #542 from KodrAus/fix/timestamp-name
Rename to_timestamp to get_timestamp
2021-11-01 04:54:17 +10:00
Ashley Mannix
3ff12ee107
Merge pull request #541 from KodrAus/feat/macros-scaffold
Scaffold out a uuid-macros crate that shares the parser
2021-11-01 04:54:04 +10:00
Ashley Mannix
4908b4e42a rename to_timestamp to get_timestamp 2021-10-31 20:26:33 +10:00
Ashley Mannix
817260a6b5 scaffold out a uuid-macros crate that shared the parser 2021-10-31 20:10:23 +10:00
Ashley Mannix
66a544d599
Merge pull request #540 from KodrAus/fix/guid-convert
Don't flip GUID fields when converting to UUID
2021-10-31 19:52:48 +10:00
Ashley Mannix
dbf0b2ecad don't flip GUID fields when converting to UUID 2021-10-31 18:41:33 +10:00
Ashley Mannix
973b17420e
Merge pull request #538 from KodrAus/feat/unstable-zerocopy
Add unstable zerocopy support
2021-10-31 16:41:04 +10:00
Ashley Mannix
ab194c2cfa add unstable zerocopy support 2021-10-31 15:42:36 +10:00
Ashley Mannix
682099ab1e
Merge pull request #539 from Takashiidobe/patch-1
Fix typo in v4.rs
2021-10-31 14:54:51 +10:00
Takashi Idobe
147e3ad3ad
Fix typo in v4.rs 2021-10-30 20:38:39 -05:00
Ashley Mannix
05ac705340
Merge pull request #536 from KodrAus/feat/infallible-ctors
Make ctors that accept slices infallible using arrays and other breaking changes
2021-10-31 07:45:44 +10:00
KodrAus
cd9786f012 rename wasm-bindgen feature to js 2021-10-30 09:29:54 +10:00
KodrAus
9c07eb0281 simplify internal module layout 2021-10-29 22:01:06 +10:00
KodrAus
40c4b1670b simplify errors and avoid repeating Display and source 2021-10-29 21:46:10 +10:00
KodrAus
9d1484252e rename "adapter" to "fmt" 2021-10-29 21:23:42 +10:00
KodrAus
ce3eca7c95 serialize Uuid as [u8; 16] instead of &[u8] 2021-10-29 21:13:28 +10:00
KodrAus
63170f8d9c make get_variant infallible 2021-10-29 17:45:42 +10:00
KodrAus
7748a37f13 fix up v1 2021-10-29 17:33:43 +10:00
KodrAus
20e253a124 make ctors that accept slices infallible using arrays 2021-10-29 12:08:17 +10:00
Ashley Mannix
07f920f24b
Merge pull request #535 from KodrAus/chore/housekeeping
Make more things const
2021-10-28 19:02:36 +10:00
KodrAus
e9d27ae09e make more things const 2021-10-28 18:06:10 +10:00
Ashley Mannix
e51f80a5c3
Merge pull request #528 from uuid-rs/ci/more-embedded
check more features in no-std
2021-08-16 13:00:22 +10:00
KodrAus
8701d0e814 add some docs on wasm and embedded 2021-08-16 11:06:30 +10:00
KodrAus
558313bb69 avoid fallback in atomic 2021-08-16 10:58:35 +10:00
KodrAus
5d550bb073 move to atomic crate for v1 context 2021-08-16 10:53:10 +10:00
Ashley Mannix
04580d01c7
test more features in no-std 2021-08-16 10:35:24 +10:00
Ashley Mannix
d25b2878df
Merge pull request #527 from KodrAus/chore/endianness
Add more docs on endianness
2021-08-13 18:16:09 +10:00
Ashley Mannix
4a312b8a41 add more docs on endianness 2021-08-13 16:54:21 +10:00
Ashley Mannix
be6c7dee10
Merge pull request #526 from KodrAus/chore/v3-v5-deps
Update dependencies for sha-1 and md-5
2021-08-13 10:37:25 +10:00
Ashley Mannix
5df3d797c2 just remove clippy from ci 2021-08-13 10:03:43 +10:00
Ashley Mannix
f7643b619a fix up clippy lints 2021-08-13 09:53:52 +10:00
Ashley Mannix
acb21e774b run fmt 2021-08-13 09:44:32 +10:00
Ashley Mannix
500852f835 update dependencies for sha-1 and md-5 2021-08-13 09:40:55 +10:00
Ashley Mannix
dde80b21fd
Merge pull request #525 from KodrAus/ci/wasm
add more ci for wasm and embedded targets
2021-08-13 09:25:43 +10:00
Ashley Mannix
b0b6db488f add more ci for wasm and embedded targets
bump msrv to 1.46.0
2021-08-13 08:34:06 +10:00
Ashley Mannix
c735394bdb
Merge pull request #521 from Tehnix/master
Update Uuid::new_v4 documentation to reflect `Try` no longer being implemented
2021-08-04 08:45:41 +10:00
Christian Kjaer Laustsen
a0dcc9bf34 Enable doc testing of Uuid::new_v4 example
The doc testing of the Uuid::new_v4() example was currently disabled,
but after fixing the errors in df0dc49 the test is now working again.
2021-07-24 13:39:54 +02:00
Christian Kjær
df0dc490ff
Remove ? from the Uuid::new_v4 example
It seems Uuid no longer implements `Try`, which makes Uuid::new_v4()? fail compilation. The `?`
was removed from the README in commit 8962ef612e8b830a5e58a7cfb364c262fcccf432 but 
was not removed from the rust-doc in lib.rs.

Additionally, this also hides `#[cfg(feature = "v4")]` from the docs.
2021-07-24 12:32:51 +01:00
bors[bot]
3b5f6ad03e
Merge #520
520: Update mod.rs r=Dylan-DPC a=tshepang

missing word

<!--
    If this PR is a breaking change, ensure that you are opening it against 
    the `breaking` branch.  If the pull request is incomplete, prepend the Title with WIP: 
-->

**I'm submitting a(n)** (bug fix|deprecation|feature|refactor|removal|other)


# Description

# Motivation

# Tests
<!-- How are these changes tested? -->

# Related Issue(s)


Co-authored-by: Tshepang Lekhonkhobe <tshepang@gmail.com>
2021-05-28 12:41:58 +00:00
Tshepang Lekhonkhobe
1006302f87
Update mod.rs
missing word
2021-05-28 00:19:10 +02:00
bors[bot]
2f52aeeefa
Merge #512
512: Allow v3, v4, v5 features on wasm32-unknown-unknown r=kinggoesgaming a=Expyron

I'm submitting a feature

# Description
The v3, v4, v5 features did not work on `wasm32-unknown-unknown` in a no_std context.

For v3 and v5, the `md5` and `sha1` crates are no_std if their default features are disabled, so they work on `wasm32-unknown-unknown`.

For v4, `getrandom` can work on any architecture if the root crate registers a custom implementation.

This is not a breaking change, as the other architectures (including `stdweb` and `wasm-bindgen`) are not impacted.

 
# Motivation
I wanted to use this crate (especially the v4 feature) on a `wasm32-unknown-unknown` context that does not have `stdweb` nor `wasm-bindgen`.


# Tests
The test suite unfortunately does not run on `wasm32-unknown-unknown`.
The v3, v4, v5 features work properly, as I was able to use them from a dependent crate.


Co-authored-by: Expyron <Expyron@users.noreply.github.com>
2021-04-30 13:58:50 +00:00
bors[bot]
90d445ded7
Merge #519
519: Upgrade to GitHub-native Dependabot r=kinggoesgaming a=dependabot-preview[bot]

_Dependabot Preview will be shut down on August 3rd, 2021. In order to keep getting Dependabot updates, please merge this PR and migrate to GitHub-native Dependabot before then._

Dependabot has been fully integrated into GitHub, so you no longer have to install and manage a separate app. This pull request migrates your configuration from Dependabot.com to a config file, using the [new syntax][new_syntax]. When merged, we'll swap out `dependabot-preview` (me) for a new `dependabot` app, and you'll be all set!

With this change, you'll now use the [Dependabot page in GitHub][dependabot_page], rather than the [Dependabot dashboard][dashboard], to monitor your version updates, and you'll configure Dependabot through the new config file rather than a UI.







If you've got any questions or feedback for us, please let us know by creating an issue in the [dependabot/dependabot-core][issues] repository.

[Learn more about migrating to GitHub-native Dependabot][learn]

Please note that regular `@dependabot` commands do not work on this pull request.

[dashboard]: https://app.dependabot.com/
[dependabot_page]: https://github.com/uuid-rs/uuid/network/updates
[issues]: https://github.com/dependabot/dependabot-core/issues/new?assignees=%40dependabot%2Fpreview-migration-reviewers&labels=E%3A+preview-migration&template=migration-issue.md
[learn]: http://docs.github.com/code-security/supply-chain-security/upgrading-from-dependabotcom-to-github-native-dependabot
[new_syntax]: https://help.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates
[org_secrets_url]: https://github.com/organizations/uuid-rs/settings/secrets/dependabot
[repo_secrets_url]: https://github.com/uuid-rs/uuid/settings/secrets/dependabot


Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-04-30 00:39:02 +00:00
dependabot-preview[bot]
c78648ad45
Upgrade to GitHub-native Dependabot 2021-04-29 19:06:39 +00:00
bors[bot]
8cca1aa252
Merge #518
518: Added support for converting u64 pair into UUID and back r=kinggoesgaming a=SaiintBrisson

This PR resolves #517 by adding two methods:
`Uuid::from_u64_pair(high_bits, low_bits) -> Uuid`: Creates a UUID from two u64, the first being the MSBs, and the second, the LSBs.
`Uuid::as_u64_pair(&self) -> (u64, u64)`: Returns a pair of u64, the first being the MSBs, and the second, the LSBs.

Co-authored-by: Luiz Carlos Mourão Paes de Carvalho <luizcarlosmpc@gmail.com>
2021-04-19 13:49:00 +00:00