7 releases (4 breaking)

Uses new Rust 2024

new 0.5.0 Apr 11, 2025
0.4.2 Apr 10, 2025
0.4.1 Jan 28, 2025
0.4.0 Oct 26, 2024
0.1.0 Jun 22, 2024

#344 in Authentication

Download history 103/week @ 2025-01-28 4/week @ 2025-02-04 22/week @ 2025-02-11 2/week @ 2025-02-18 8/week @ 2025-03-11 1/week @ 2025-03-18 227/week @ 2025-04-08

235 downloads per month

MIT license

25KB
445 lines

RowID

A time-based unique ID solution.

Quick Start

Create an ID with the following code:

use rowid::base::rowid;

let id: String = rowid();

Or start a customization with the following code:

use rowid::with_config::{RowIDWithConfig, RowIDWithConfigResult};

let rwc: RowIDWithConfigResult = RowIDWithConfig::new()
    .char_list("0123456789ABCDEFGHJKMNPQRSTVWXYZ")
    .randomness_length(22)
    .done()
    .unwrap();

let id: String = rwc.rowid();

License

This project is licensed under the terms of the MIT license.

Dependencies

~1MB
~17K SLoC