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
In cargo.toml
cuid = "1.0.0"
use cuid;
fn main() -> () {
println!("{}", cuid.cuid().unwrap());
println!("{}", cuid.slug().unwrap());
}
This package also provides a binary:
> cargo run cuid
cq64d5t05g4lx7twdb3t