1 unstable release

0.1.0 Aug 2, 2023

#51 in #deprecated

Download history 1925/week @ 2024-01-10 1770/week @ 2024-01-17 1888/week @ 2024-01-24 2421/week @ 2024-01-31 2243/week @ 2024-02-07 2756/week @ 2024-02-14 3115/week @ 2024-02-21 2772/week @ 2024-02-28 2592/week @ 2024-03-06 3113/week @ 2024-03-13 3248/week @ 2024-03-20 1958/week @ 2024-03-27 2273/week @ 2024-04-03 2123/week @ 2024-04-10 2520/week @ 2024-04-17 1919/week @ 2024-04-24

9,193 downloads per month
Used in 19 crates (2 directly)

MIT license

6KB
55 lines

cuid-rust

Build Status Crates.io docs.rs

This repository is the home of the cuid and cuid2 crates. The original CUID standard is marked as deprecated in favor of CUID2, so please prefer the cuid2 crate. cuid2 is provided as a separate crate because its generated IDs have different semantics from cuid, so it is not necessarily a drop-in replacement.

If you are using the cuid crate already, you can also use the cuid2() function from that crate.

Please see the individual crates' READMEs for more information.

Development

A flake.nix file is provided for easy installation of dependencies via the nix package manager. To start a shell with all of the dependencies available, run:

nix develop

Or, if you are not yet using flakes, a shell.nix shim is provided, so you can do the same with

nix-shell

If you use direnv, the .envrc file will automatically source the nix packages into your shell (or editor environment, if you use a direnv plugin).


lib.rs:

Common utility functions for CUID generation

No runtime deps