package cuid
Not available on OCaml 5.5Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=848e88e46c5b6c51a0737afc25a8fbc1cca275450d08a4aae6b307692108a7ad
sha512=5d8f0260279177aef5443d57015ed1cdbecc20fe2e4abcdf7bb99c4dc02d0512f3506de1380ec97960c0cfb170bb40023c2403593823270df72798fcbdea4727
Description
Added to opam-repository:
README
cuid
CUID generator for OCaml.
For further information, please refer to http://usecuid.org
Installation
If available on OPAM, it's easily installed with:
$ opam install cuidOtherwise, this library is also installable using Dune within this root directory:
$ dune installUsage
As library:
let cuid = Cuid.generate ( )
(* cuid is "c00p6veue0000072slgr067a3", for example *)There's also an implementation of CUID slugs. They fit in cases where collision resistance is not important and when they are not generated too frequently. For instance, we can use them as URL suffixes for blog posts. To generate a CUID slug, just use:
let slug = Cuid.slug ( )
(* slug is "u90m0y0m", for example *)Conclusion
PRs & issues are welcome. Have fun and imagine Sisyphus happy.
Dependencies (5)
-
bisect_ppx
< "2.6.0" - nocrypto
-
core
>= "v0.9.0" -
dune
>= "1.0" -
ocaml
>= "4.03.0"
Optional Dependencies
None
Used by
None
Conflicts
None
Build status
Results of building cuid with each compiler on check.ci.ocaml.org, run of against opam-repository 78c202b. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
| Version | OCaml 4.11 | OCaml 4.14 | OCaml 5.2 | OCaml 5.4 | OCaml 5.5 |
|---|---|---|---|---|---|
| 0.2 (this version) | good | n/a | n/a | n/a | n/a |
| 0.1 | good | good | n/a | n/a | n/a |
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure