mirror of
https://github.com/uuid-rs/uuid.git
synced 2025-10-01 06:51:21 +00:00
prepare for 1.12.0 release
This commit is contained in:
parent
358eb34384
commit
8f761754c0
@ -29,7 +29,7 @@ homepage = "https://github.com/uuid-rs/uuid"
|
|||||||
name = "uuid"
|
name = "uuid"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
repository = "https://github.com/uuid-rs/uuid"
|
repository = "https://github.com/uuid-rs/uuid"
|
||||||
version = "1.11.1" # remember to update html_root_url in lib.rs
|
version = "1.12.0" # remember to update html_root_url in lib.rs
|
||||||
rust-version = "1.63.0"
|
rust-version = "1.63.0"
|
||||||
|
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
@ -149,7 +149,7 @@ version = "1"
|
|||||||
|
|
||||||
# Public: Re-exported
|
# Public: Re-exported
|
||||||
[dependencies.uuid-macro-internal]
|
[dependencies.uuid-macro-internal]
|
||||||
version = "1.11.1"
|
version = "1.12.0"
|
||||||
path = "macros"
|
path = "macros"
|
||||||
optional = true
|
optional = true
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ Add the following to your `Cargo.toml`:
|
|||||||
|
|
||||||
```toml
|
```toml
|
||||||
[dependencies.uuid]
|
[dependencies.uuid]
|
||||||
version = "1.11.1"
|
version = "1.12.0"
|
||||||
features = [
|
features = [
|
||||||
"v4", # Lets you generate random UUIDs
|
"v4", # Lets you generate random UUIDs
|
||||||
"fast-rng", # Use a faster (but still sufficiently random) RNG
|
"fast-rng", # Use a faster (but still sufficiently random) RNG
|
||||||
@ -65,11 +65,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)
|
If you'd like to parse UUIDs _really_ fast, check out the [`uuid-simd`](https://github.com/nugine/uuid-simd)
|
||||||
library.
|
library.
|
||||||
|
|
||||||
For more details on using `uuid`, [see the library documentation](https://docs.rs/uuid/1.11.1/uuid).
|
For more details on using `uuid`, [see the library documentation](https://docs.rs/uuid/1.12.0/uuid).
|
||||||
|
|
||||||
## References
|
## References
|
||||||
|
|
||||||
* [`uuid` library docs](https://docs.rs/uuid/1.11.1/uuid).
|
* [`uuid` library docs](https://docs.rs/uuid/1.12.0/uuid).
|
||||||
* [Wikipedia: Universally Unique Identifier](http://en.wikipedia.org/wiki/Universally_unique_identifier).
|
* [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).
|
* [RFC 9562: Universally Unique IDentifiers (UUID)](https://www.ietf.org/rfc/rfc9562.html).
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "uuid-macro-internal"
|
name = "uuid-macro-internal"
|
||||||
version = "1.11.1"
|
version = "1.12.0"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
authors = [
|
authors = [
|
||||||
"QnnOkabayashi"
|
"QnnOkabayashi"
|
||||||
|
@ -909,7 +909,7 @@ impl Builder {
|
|||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
impl Builder {
|
impl Builder {
|
||||||
#[deprecated(
|
#[deprecated(
|
||||||
since = "1.11.1",
|
since = "1.12.0",
|
||||||
note = "use `Builder::from_gregorian_timestamp(ticks, counter, node_id)`"
|
note = "use `Builder::from_gregorian_timestamp(ticks, counter, node_id)`"
|
||||||
)]
|
)]
|
||||||
pub const fn from_rfc4122_timestamp(ticks: u64, counter: u16, node_id: &[u8; 6]) -> Self {
|
pub const fn from_rfc4122_timestamp(ticks: u64, counter: u16, node_id: &[u8; 6]) -> Self {
|
||||||
@ -917,7 +917,7 @@ impl Builder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[deprecated(
|
#[deprecated(
|
||||||
since = "1.11.1",
|
since = "1.12.0",
|
||||||
note = "use `Builder::from_sorted_gregorian_timestamp(ticks, counter, node_id)`"
|
note = "use `Builder::from_sorted_gregorian_timestamp(ticks, counter, node_id)`"
|
||||||
)]
|
)]
|
||||||
pub const fn from_sorted_rfc4122_timestamp(
|
pub const fn from_sorted_rfc4122_timestamp(
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
//!
|
//!
|
||||||
//! ```toml
|
//! ```toml
|
||||||
//! [dependencies.uuid]
|
//! [dependencies.uuid]
|
||||||
//! version = "1.11.1"
|
//! version = "1.12.0"
|
||||||
//! features = [
|
//! features = [
|
||||||
//! "v4", # Lets you generate random UUIDs
|
//! "v4", # Lets you generate random UUIDs
|
||||||
//! "fast-rng", # Use a faster (but still sufficiently random) RNG
|
//! "fast-rng", # Use a faster (but still sufficiently random) RNG
|
||||||
@ -138,7 +138,7 @@
|
|||||||
//!
|
//!
|
||||||
//! ```toml
|
//! ```toml
|
||||||
//! [dependencies.uuid]
|
//! [dependencies.uuid]
|
||||||
//! version = "1.11.1"
|
//! version = "1.12.0"
|
||||||
//! features = [
|
//! features = [
|
||||||
//! "v4",
|
//! "v4",
|
||||||
//! "v7",
|
//! "v7",
|
||||||
@ -153,7 +153,7 @@
|
|||||||
//!
|
//!
|
||||||
//! ```toml
|
//! ```toml
|
||||||
//! [dependencies.uuid]
|
//! [dependencies.uuid]
|
||||||
//! version = "1.11.1"
|
//! version = "1.12.0"
|
||||||
//! default-features = false
|
//! default-features = false
|
||||||
//! ```
|
//! ```
|
||||||
//!
|
//!
|
||||||
@ -211,7 +211,7 @@
|
|||||||
#![doc(
|
#![doc(
|
||||||
html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
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_favicon_url = "https://www.rust-lang.org/favicon.ico",
|
||||||
html_root_url = "https://docs.rs/uuid/1.11.1"
|
html_root_url = "https://docs.rs/uuid/1.12.0"
|
||||||
)]
|
)]
|
||||||
|
|
||||||
#[cfg(any(feature = "std", test))]
|
#[cfg(any(feature = "std", test))]
|
||||||
|
@ -166,14 +166,14 @@ impl Timestamp {
|
|||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
impl Timestamp {
|
impl Timestamp {
|
||||||
#[deprecated(
|
#[deprecated(
|
||||||
since = "1.11.1",
|
since = "1.12.0",
|
||||||
note = "use `Timestamp::from_gregorian(ticks, counter)`"
|
note = "use `Timestamp::from_gregorian(ticks, counter)`"
|
||||||
)]
|
)]
|
||||||
pub const fn from_rfc4122(ticks: u64, counter: u16) -> Self {
|
pub const fn from_rfc4122(ticks: u64, counter: u16) -> Self {
|
||||||
Timestamp::from_gregorian(ticks, counter)
|
Timestamp::from_gregorian(ticks, counter)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[deprecated(since = "1.11.1", note = "use `Timestamp::to_gregorian()`")]
|
#[deprecated(since = "1.12.0", note = "use `Timestamp::to_gregorian()`")]
|
||||||
pub const fn to_rfc4122(&self) -> (u64, u16) {
|
pub const fn to_rfc4122(&self) -> (u64, u16) {
|
||||||
self.to_gregorian()
|
self.to_gregorian()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user