rusty_ulid
This is a Rust implementation of the ULID Universally Unique Lexicographically Sortable Identifiers.
Take a look at the changelog for a detailed list of all changes.
Quickstart
extern crate rusty_ulid;
use new_ulid_string;
use new_ulid_bytes;
// Generate a ULID string
let ulid_string: String = new_ulid_string;
assert_eq!;
// Generate ULID bytes
let ulid_bytes: = new_ulid_bytes;
assert_eq!;
extern crate rusty_ulid;
use Ulid;
// Generate a ULID
let ulid = new;
// Generate a string for a ULID
let ulid_string = ulid.to_string;
// Create ULID from a string
let result = from_str;
assert_eq!;
Benchmark
Run the benchmarks by executing cargo bench
.