timeflake

Crates.iotimeflake
lib.rstimeflake
version0.1.0
created_at2025-03-30 23:38:33.338508+00
updated_at2025-03-30 23:38:33.338508+00
descriptionRust port of Timeflake, a 128-bit, roughly-ordered, URL-safe UUID
homepage
repository
max_upload_size
id1612875
size55,149
(kkent030315)

documentation

README

Actions crates.io version

timeflake-rs

Rust port of Timeflake, a 128-bit, roughly-ordered, URL-safe UUID.

Original work can be found at anthonynsimon/timeflake.

Usage

[dependencies]
timeflake = "0.1.0"

or

cargo add timeflake

Example

use timeflake::Timeflake;

fn main() {
    let mut rng = rand::rng();
    let flake = Timeflake::new_random(&mut rng);
    println!("{flake}");
}

Features

  • std: Allow no_std environments. This is on by default.
  • uuid: Allow use of uuid crate. This is on by default.

Benchmark

Run benchmarks by follow command. It is recommended to have gnuplot installed.

cargo bench
Commit count: 0

cargo fmt