//! ULID generation and validation.
use ProjectError;
const CROCKFORD: & = b"0123456789ABCDEFGHJKMNPQRSTVWXYZ";
/// Mint a new project id (26-char uppercase Crockford ULID).
/// Validate that `id` is a canonical ULID.
///
/// Must be called before any id becomes a path component: the alphabet
/// check rejects `/`, `\`, `.` and every other traversal character.