ids/cuid
Generating a cuid. The implementation requires a counter, so an actor is used to keep track of that state. This means before generating a cuid, an actor needs to be started and all work is done via a channel.
Slugs are also supported.
Usage
import ids/cuid
assert Ok(channel) = cuid.start()
let id = cuid.gen(channel)
let slug = cuid.slug(channel)