6 releases (3 breaking)

0.4.1 Jan 28, 2025
0.4.0 Oct 26, 2024
0.3.0 Oct 14, 2024
0.2.0 Oct 13, 2024
0.1.0 Jun 22, 2024

#308 in Authentication

Download history 14/week @ 2024-10-29 2/week @ 2024-11-05 1/week @ 2024-11-19 9/week @ 2024-12-10 103/week @ 2025-01-28 4/week @ 2025-02-04 71/week @ 2025-02-11

178 downloads per month

MIT license

25KB
446 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.


lib.rs:

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

Dependencies

~1.5MB
~18K SLoC