2 releases

0.1.1 Aug 4, 2024
0.1.0 Jun 22, 2024

#279 in Authentication

Download history 154/week @ 2024-06-21 2/week @ 2024-06-28 103/week @ 2024-08-02 8/week @ 2024-08-09

111 downloads per month

MIT license

24KB
408 lines

RowID

A time-based unique ID solution.

Quick Start

You may create a RowID with the following code:

use rowid::rowid;

let id: String = rowid();

Or customize the RowID with the following code:

use rowid::{RowIDWithConfig, RowIDWithConfigResult};

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

let id: String = rwc.rowid();

License

This project is MIT licensed, you can find the license file here.


lib.rs:

RowID

A time-based unique ID solution.

Quick Start

You may create a RowID with the following code:

use rowid::rowid;

let id: String = rowid();

Or customize the RowID with the following code:

use rowid::{RowIDWithConfig, RowIDWithConfigResult};

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

let id: String = rwc.rowid();

Dependencies

~315KB