#uuid #generator #uuid8 #uuid16 #uuid32

rs-uuid

Universally unique identifier generator

6 releases

✓ Uses Rust 2018 edition

0.3.1 Oct 12, 2019
0.3.0 Oct 12, 2019
0.2.2 Oct 11, 2019
0.1.0 Oct 10, 2019

#272 in Encoding

Download history 24/week @ 2019-11-27 6/week @ 2019-12-04 19/week @ 2019-12-11 6/week @ 2019-12-25 4/week @ 2020-01-01 15/week @ 2020-01-08 8/week @ 2020-01-15 2/week @ 2020-01-22 6/week @ 2020-02-12 12/week @ 2020-02-19 53/week @ 2020-02-26 13/week @ 2020-03-04 8/week @ 2020-03-11

82 downloads per month

Apache-2.0

5KB
86 lines

UUID Generator library

Examples

use rs_uuid::{uuid8, uuid16, uuid32};

let id_8byte = uuid8();
let id_16byte = uuid16();
let id_32byte = uuid32();

// a94b-d2-9f-83-020290
println!("{}", id_8byte);

// 22f4b97a-94b4-37bf-0993-462840d1c3e3
println!("{}", id_16byte);

// e8893dbded63452b-9a764159-5d9128eb-e04ffb33-f1be0b8a79a15d119fc511f9
println!("{}", id_32byte);

ISO Standard UUID generators

use rs_uuid::iso::uuid_v4;

let iso_v4_uuid = uuid_v4();

// 22f4b97a-94b4-47bf-0993-462840d1c3e3
println!("{}", iso_v4_uuid);

lib.rs:

ISO compatible UUID generators

Dependencies

~390KB