A time-based unique ID solution.
To install RowID, run the following command:
cargo add rowid
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();
This project is MIT licensed, you can find the license file here.