#uuid #sequential #guid #identifier

yanked tuid

Sequential UUID generator

0.0.0 Nov 20, 2021

#35 in #guid

25 downloads per month

MPL-2.0 license

12KB
277 lines

tuid-rs

Installation

If using cargo-edit

cargo add tuid

or add it yourself to Cargo.toml

[dependencies.tuid]
version = "0.1"

Usage

fn main() {
  use rand::Rng;

  let mut rng = rand::thread_rng();
  let tid = tuid::gen::default(rng.gen(), rng.gen());
  let uid = tid.as_uuid();
  let hex = tid.as_hex();
}

Dependencies

~265–790KB
~14K SLoC