Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: uuid-rs/uuid
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.15.1
Choose a base ref
...
head repository: uuid-rs/uuid
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.16.0
Choose a head ref
  • 4 commits
  • 6 files changed
  • 3 contributors

Commits on Mar 8, 2025

  1. mark Uuid::new_v8 const

    tguichaoua committed Mar 8, 2025

    Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    254258c View commit details

Commits on Mar 14, 2025

  1. Merge pull request #815 from tguichaoua/new_v8_const

    Mark `Uuid::new_v8` const
    KodrAus authored Mar 14, 2025

    Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    420f627 View commit details
  2. prepare for 1.16.0 release

    KodrAus committed Mar 14, 2025

    Partially verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
    Copy the full SHA
    5338b24 View commit details
  3. Merge pull request #817 from uuid-rs/cargo/v1.16.0

    Prepare for 1.16.0 release
    KodrAus authored Mar 14, 2025
    Copy the full SHA
    c36beb1 View commit details
Showing with 14 additions and 14 deletions.
  1. +4 −4 Cargo.toml
  2. +3 −3 README.md
  3. +1 −1 macros/Cargo.toml
  4. +1 −1 rng/Cargo.toml
  5. +4 −4 src/lib.rs
  6. +1 −1 src/v8.rs
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@ homepage = "https://github.com/uuid-rs/uuid"
name = "uuid"
readme = "README.md"
repository = "https://github.com/uuid-rs/uuid"
version = "1.15.1" # remember to update html_root_url in lib.rs
version = "1.16.0" # remember to update html_root_url in lib.rs
rust-version = "1.63.0"

[package.metadata.docs.rs]
@@ -84,7 +84,7 @@ borsh = ["dep:borsh", "dep:borsh-derive"]

# Public: Used in trait impls on `Uuid`
[dependencies.bytemuck]
version = "1.15.1"
version = "1.16.0"
optional = true
features = ["derive"]

@@ -135,7 +135,7 @@ optional = true
[target.'cfg(all(target_arch = "wasm32", target_vendor = "unknown", target_os = "unknown"))'.dependencies.uuid-rng-internal-lib]
# Work-around lack of support for both `dep:x` and `x/` in MSRV
package = "uuid-rng-internal"
version = "1.15.1"
version = "1.16.0"
path = "rng"
optional = true

@@ -158,7 +158,7 @@ version = "1"

# Public: Re-exported
[dependencies.uuid-macro-internal]
version = "1.15.1"
version = "1.16.0"
path = "macros"
optional = true

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@ Add the following to your `Cargo.toml`:

```toml
[dependencies.uuid]
version = "1.15.1"
version = "1.16.0"
# Lets you generate random UUIDs
features = [
"v4",
@@ -64,11 +64,11 @@ assert_eq!(Some(Version::Random), my_uuid.get_version());
If you'd like to parse UUIDs _really_ fast, check out the [`uuid-simd`](https://github.com/nugine/uuid-simd)
library.

For more details on using `uuid`, [see the library documentation](https://docs.rs/uuid/1.15.1/uuid).
For more details on using `uuid`, [see the library documentation](https://docs.rs/uuid/1.16.0/uuid).

## References

* [`uuid` library docs](https://docs.rs/uuid/1.15.1/uuid).
* [`uuid` library docs](https://docs.rs/uuid/1.16.0/uuid).
* [Wikipedia: Universally Unique Identifier](http://en.wikipedia.org/wiki/Universally_unique_identifier).
* [RFC 9562: Universally Unique IDentifiers (UUID)](https://www.ietf.org/rfc/rfc9562.html).

2 changes: 1 addition & 1 deletion macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "uuid-macro-internal"
version = "1.15.1"
version = "1.16.0"
edition = "2018"
authors = [
"QnnOkabayashi"
2 changes: 1 addition & 1 deletion rng/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "uuid-rng-internal"
version = "1.15.1"
version = "1.16.0"
edition = "2018"
authors = [
"uuid-rs contributors"
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -38,7 +38,7 @@
//!
//! ```toml
//! [dependencies.uuid]
//! version = "1.15.1"
//! version = "1.16.0"
//! # Lets you generate random UUIDs
//! features = [
//! "v4",
@@ -139,7 +139,7 @@
//!
//! ```toml
//! [dependencies.uuid]
//! version = "1.15.1"
//! version = "1.16.0"
//! features = [
//! "v4",
//! "v7",
@@ -154,7 +154,7 @@
//!
//! ```toml
//! [dependencies.uuid]
//! version = "1.15.1"
//! version = "1.16.0"
//! default-features = false
//! ```
//!
@@ -212,7 +212,7 @@
#![doc(
html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
html_favicon_url = "https://www.rust-lang.org/favicon.ico",
html_root_url = "https://docs.rs/uuid/1.15.1"
html_root_url = "https://docs.rs/uuid/1.16.0"
)]

#[cfg(any(feature = "std", test))]
2 changes: 1 addition & 1 deletion src/v8.rs
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@ impl Uuid {
/// # References
///
/// * [UUID Version 8 in RFC 9562](https://www.ietf.org/rfc/rfc9562.html#section-5.8)
pub fn new_v8(buf: [u8; 16]) -> Uuid {
pub const fn new_v8(buf: [u8; 16]) -> Uuid {
Builder::from_custom_bytes(buf).into_uuid()
}
}