5 releases (3 breaking)
0.4.0 | Oct 26, 2024 |
---|---|
0.3.0 | Oct 14, 2024 |
0.2.0 | Oct 13, 2024 |
0.1.1 | Aug 4, 2024 |
0.1.0 | Jun 22, 2024 |
#368 in Authentication
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 MIT licensed, you can find the license file here.
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
~315KB