Rust FAQ
Articles
Search
A−
A+
Lt
Dk
Hi
HD
Home
›
Crates/Uuid
Crates/Uuid
2 articles
How to Generate UUIDs in Rust
Use the `uuid` crate with the `v4` feature to generate random UUIDs, or `v7` for time-ordered ones.
How to use uuid crate in Rust UUID generation
Generate a random UUID in Rust by adding the uuid crate with v4 features and calling Uuid::new_v4().