Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.