Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #625 from KodrAus/chore/api-docs-and-deprecations
Some work on the new version features
- Loading branch information
Showing
14 changed files
with
579 additions
and
366 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
//! Generating a sortable UUID. | ||
//! | ||
//! If you enable the `v7` feature you can generate sortable UUIDs. | ||
|
||
#[test] | ||
#[cfg(feature = "v7")] | ||
fn generate_sortable_uuid() { | ||
use uuid::Uuid; | ||
|
||
let uuid = Uuid::now_v7(); | ||
|
||
assert_eq!(Some(uuid::Version::SortRand), uuid.get_version()); | ||
} | ||
|
||
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.