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: 1.3.2
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: 1.3.3
Choose a head ref
  • 7 commits
  • 10 files changed
  • 2 contributors

Commits on May 3, 2023

  1. Copy the full SHA
    0536908 View commit details
  2. Merge pull request #671 from uuid-rs/ci/cleanups

    Use sha hash for checkout action and remove others
    KodrAus authored May 3, 2023
    Copy the full SHA
    6d22d0c View commit details

Commits on May 7, 2023

  1. Copy the full SHA
    d89c69d View commit details

Commits on May 8, 2023

  1. update build agents

    KodrAus committed May 8, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    147d4b3 View commit details

Commits on May 15, 2023

  1. Merge pull request #673 from uuid-rs/chore/hard-deprecation

    Hard deprecate Timestamp::to_unix_nanos
    KodrAus authored May 15, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    534691e View commit details
  2. prepare for 1.3.3 release

    KodrAus committed May 15, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    2bbbb74 View commit details
  3. Merge pull request #674 from uuid-rs/cargo/1.3.3

    Prepare for 1.3.3 release
    KodrAus authored May 15, 2023
    Copy the full SHA
    2cfe9f1 View commit details
Showing with 36 additions and 139 deletions.
  1. +0 −24 .github/ISSUE_TEMPLATE/Bug_report.md
  2. +0 −20 .github/ISSUE_TEMPLATE/Feature_request.md
  3. +0 −5 .github/PULL_REQUEST_TEMPLATE.md
  4. +0 −12 .github/dependabot.yml
  5. +24 −60 .github/workflows/ci.yml
  6. +2 −2 Cargo.toml
  7. +3 −3 README.md
  8. +1 −1 macros/Cargo.toml
  9. +4 −4 src/lib.rs
  10. +2 −8 src/timestamp.rs
24 changes: 0 additions & 24 deletions .github/ISSUE_TEMPLATE/Bug_report.md

This file was deleted.

20 changes: 0 additions & 20 deletions .github/ISSUE_TEMPLATE/Feature_request.md

This file was deleted.

5 changes: 0 additions & 5 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

12 changes: 0 additions & 12 deletions .github/dependabot.yml

This file was deleted.

84 changes: 24 additions & 60 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -22,39 +22,35 @@ jobs:
strategy:
matrix:
exclude:
- os: macos-10.15
- os: macos-latest
rust_target: x86_64-gnu
- os: macos-10.15
- os: macos-latest
rust_target: x86_64-msvc
- os: windows-2019
- os: windows-latest
rust_target: x86_64-apple-darwin
- os: ubuntu-20.04
- os: ubuntu-latest
rust_target: x86_64-msvc
- os: ubuntu-20.04
- os: ubuntu-latest
rust_target: x86_64-apple-darwin
channel:
- stable
- beta
- nightly
os:
- macos-10.15
- ubuntu-20.04
- windows-2019
- macos-latest
- ubuntu-latest
- windows-latest
rust_target:
- x86_64-gnu
- x86_64-msvc
- x86_64-apple-darwin

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab

- name: Install Rust Toolchain
uses: actions-rs/toolchain@v1
with:
override: true
profile: minimal
toolchain: ${{ matrix.channel }}-${{ matrix.rust_target }}
run: rustup update ${{ matrix.channel }}-${{ matrix.rust_target }} && rustup default ${{ matrix.channel }}-${{ matrix.rust_target }}

- name: Install cargo-hack
run: cargo install cargo-hack
@@ -73,44 +69,33 @@ jobs:

stable:
name: "Tests / Stable"
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab

- name: All features
run: cargo test --all-features

msrv:
name: "Tests / MSRV"
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.57.0
override: true
run: rustup update 1.57.0

- name: Version features
run: cargo test --features "$VERSION_FEATURES"
run: cargo +1.57.0 test --features "$VERSION_FEATURES"

wasm:
name: Tests / WebAssembly
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab

- name: Install
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
@@ -129,13 +114,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab

- name: Install Cross
run: cargo install cross
@@ -148,27 +127,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
target: thumbv6m-none-eabi
override: true
run: rustup update nightly && rustup target add --toolchain nightly thumbv6m-none-eabi

- name: No features
uses: actions-rs/cargo@v1
with:
command: build
args: -Z avoid-dev-deps --target thumbv6m-none-eabi --no-default-features
run: cargo +nightly build -Z avoid-dev-deps --target thumbv6m-none-eabi --no-default-features

- name: Version features
uses: actions-rs/cargo@v1
with:
command: build
args: -Z avoid-dev-deps --target thumbv6m-none-eabi --no-default-features --features "v1 v3 v5 v6 serde"
run: cargo +nightly build -Z avoid-dev-deps --target thumbv6m-none-eabi --no-default-features --features "v1 v3 v5 v6 serde"

nodeps:
name: Build / No deps
@@ -177,14 +145,10 @@ jobs:
RUSTFLAGS: "--cfg uuid_unstable"
steps:
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
run: rustup update nightly && rustup default nightly

- name: Install cargo-hack
run: cargo install cargo-hack
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@ homepage = "https://github.com/uuid-rs/uuid"
name = "uuid"
readme = "README.md"
repository = "https://github.com/uuid-rs/uuid"
version = "1.3.2" # remember to update html_root_url in lib.rs
version = "1.3.3" # remember to update html_root_url in lib.rs

[package.metadata.docs.rs]
rustc-args = ["--cfg", "uuid_unstable"]
@@ -134,7 +134,7 @@ version = "1"
# Use the `macro-diagnostics` feature instead
[dependencies.uuid-macro-internal]
package = "uuid-macro-internal"
version = "1.3.2"
version = "1.3.3"
path = "macros"
optional = true

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

```toml
[dependencies.uuid]
version = "1.3.2"
version = "1.3.3"
features = [
"v4", # Lets you generate random UUIDs
"fast-rng", # Use a faster (but still sufficiently random) RNG
@@ -66,7 +66,7 @@ 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.3.2/uuid).
For more details on using `uuid`, [see the library documentation](https://docs.rs/uuid/1.3.3/uuid).

## Minimum Supported Rust Version (MSRV)

@@ -75,7 +75,7 @@ CI. It may be bumped in minor releases as necessary.

## References

* [`uuid` library docs](https://docs.rs/uuid/1.3.2/uuid).
* [`uuid` library docs](https://docs.rs/uuid/1.3.3/uuid).
* [Wikipedia: Universally Unique Identifier](http://en.wikipedia.org/wiki/Universally_unique_identifier).
* [RFC4122: A Universally Unique IDentifier (UUID) URN Namespace](http://tools.ietf.org/html/rfc4122).

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.3.2"
version = "1.3.3"
edition = "2018"
authors = [
"QnnOkabayashi"
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -39,7 +39,7 @@
//!
//! ```toml
//! [dependencies.uuid]
//! version = "1.3.2"
//! version = "1.3.3"
//! features = [
//! "v4", # Lets you generate random UUIDs
//! "fast-rng", # Use a faster (but still sufficiently random) RNG
@@ -138,7 +138,7 @@
//!
//! ```toml
//! [dependencies.uuid]
//! version = "1.3.2"
//! version = "1.3.3"
//! features = [
//! "v4",
//! "v7",
@@ -153,7 +153,7 @@
//!
//! ```toml
//! [dependencies.uuid]
//! version = "1.3.2"
//! version = "1.3.3"
//! default-features = false
//! ```
//!
@@ -211,7 +211,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.3.2"
html_root_url = "https://docs.rs/uuid/1.3.3"
)]

#[cfg(any(feature = "std", test))]
10 changes: 2 additions & 8 deletions src/timestamp.rs
Original file line number Diff line number Diff line change
@@ -137,20 +137,14 @@ impl Timestamp {
)
}

#[deprecated(note = "use `to_unix` instead")]
#[deprecated(note = "use `to_unix` instead; this method will be removed in a future release")]
/// Get the number of fractional nanoseconds in the Unix timestamp.
///
/// This method is deprecated and probably doesn't do what you're expecting it to.
/// It doesn't return the timestamp as nanoseconds since the Unix epoch, it returns
/// the fractional seconds of the timestamp.
pub const fn to_unix_nanos(&self) -> u32 {
// NOTE: This method never did what it said on the tin: instead of
// converting the timestamp into nanos it simply returned the nanoseconds
// part of the timestamp.
//
// We can't fix the behavior because the return type is too small to fit
// a useful value for nanoseconds since the epoch.
self.nanos
panic!("`Timestamp::to_unix_nanos` is deprecated and will be removed: use `Timestamp::to_unix` instead")
}
}