uuidv4

A lightweight library for generating UUID v4

2 releases (1 stable)

1.0.0 Aug 24, 2023
0.1.0 Aug 24, 2023
Download history 14/week @ 2024-07-21 13/week @ 2024-07-28 12/week @ 2024-08-04 2/week @ 2024-08-11 9/week @ 2024-08-25 6/week @ 2024-09-01 17/week @ 2024-09-08 16/week @ 2024-09-15 32/week @ 2024-09-22 50/week @ 2024-09-29 7/week @ 2024-10-06 74/week @ 2024-10-13 46/week @ 2024-10-20 79/week @ 2024-10-27 53/week @ 2024-11-03

252 downloads per month
Used in 3 crates (2 directly)

Unlicense

3KB

uuidv4

A Rust library for generating UUID v4.

Installation

Run:

cargo add uuidv4

Or manually add to your Cargo.toml:

[dependencies]
uuidv4 = "1.0.0"

Usage

use uuidv4::uuid;

fn main() {
    let my_uuid = uuid::v4();
    println!("Generated UUID: {}", my_uuid);
}

You can play around with UUIDs or generate them online here

Dependencies

~315KB