7 releases (4 breaking)
Uses new Rust 2024
new 0.5.0 | Apr 11, 2025 |
---|---|
0.4.2 |
|
0.4.1 | Jan 28, 2025 |
0.4.0 | Oct 26, 2024 |
0.1.0 | Jun 22, 2024 |
#344 in Authentication
235 downloads per month
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