Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alpheustangs/rowid.rs
A time-based unique ID solution
https://github.com/alpheustangs/rowid.rs
id rowid rust time time-based unique unique-id
Last synced: 18 days ago
JSON representation
A time-based unique ID solution
- Host: GitHub
- URL: https://github.com/alpheustangs/rowid.rs
- Owner: alpheustangs
- License: mit
- Created: 2024-06-22T15:37:42.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-10-20T15:12:59.000Z (2 months ago)
- Last Synced: 2024-10-20T16:56:32.292Z (2 months ago)
- Topics: id, rowid, rust, time, time-based, unique, unique-id
- Language: Rust
- Homepage: https://docs.rs/rowid
- Size: 63.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RowID
A time-based unique ID solution.
## Installation
To install this package, run the following command:
```bash
cargo add rowid
```## Quick Start
Create an ID with the following code:
```rust
use rowid::base::rowid;let id: String = rowid();
```Or start a customization with the following code:
```rust
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.