tuid

Crates.iotuid
lib.rstuid
version0.0.0
sourcesrc
created_at2021-11-20 00:59:59.082343
updated_at2021-11-20 00:59:59.082343
descriptionSequential UUID generator
homepage
repositoryhttps://github.com/mselee/tuid/blob/master/tuid-rs
max_upload_size
id484686
size11,302
Mohamed Seleem (mselee)

documentation

README

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();
}

Commit count: 0

cargo fmt