#identifier

kleio-rs

A simple, seemingly random, key generator written in Rust

1 unstable release

0.1.0 Jun 23, 2024

#99 in #identifier

MIT license

7KB
65 lines

Kleio

NOTE ⚠️: This code for this library was thrown together within a few minutes as it was necessary for another project to continue. The API and generation methods will most likely be changed drastically (soontm).

Kleio is a small library that generates ids or alphabetical keys that can be used as (almost) unique identifiers that are at the same time seemingly random.

Getting started

The API for Kleio as it stands right now is very simple. You can start using like this:

use kleio::{generate_key, generate_id};

let key: String = generate_key();
// or
let id: u64 = generate_id();

Dependencies

~355KB