Crate ulid_generator_rs

source
Expand description

§About ULID

ULID is Universally Unique Lexicographically Sortable Identifier.

For more information, please check the following specifications.

§Usage

use ulid_generator_rs::{ULIDGenerator, ULID};

let mut generator: ULIDGenerator = ULIDGenerator::new();
let ulid: ULID = generator.generate().unwrap();
let str: String = ulid.to_string();
println!("{}", str); // "01ETGRM6448X1HM0PYWG2KT648"

§Alternative crates

  • https://github.com/dylanhart/ulid-rs
  • https://github.com/huxi/rusty_ulid
  • https://github.com/suyash/ulid-rs

Structs§

Enums§