cuid-rust

Travis Build Status Crates.io

Cuids are "Collision-resistant ids optimized for horizontal scaling and binary search lookup performance."

This is a rust implementation of the CUID library, the original JavaScript implementation of which may be found here

Installation

In cargo.toml

toml cuid = "1.0.1"

Usage

```rust use cuid;

fn main() -> () { println!("{}", cuid.cuid().unwrap()); println!("{}", cuid.slug().unwrap()); } ```

This package also provides a binary:

```sh

cargo run cuid cq64d5t05g4lx7twdb3t ```