use-id-slug
Human-readable slug normalization and validation helpers for RustUse.
Install
[]
= "0.0.1"
The published package keeps the Rust crate name use_slug, so code imports stay the same.
Foundation
use-id-slug keeps slug behavior explicit and predictable: normalize free-form text into lowercase ASCII segments joined by hyphens, then validate the canonical form.
Example
use Slug;
let slug = new?;
assert_eq!;
assert_eq!;
# Ok::
When to use directly
Choose use-id-slug when human-readable identifiers are the only ID surface you need.
Scope
- Slugs stay lowercase, ASCII, and hyphen-delimited.
- Normalization is deterministic and documented.
- Locale-aware transliteration and routing concerns are out of scope.
Status
use-id-slug is a pre-1.0 crate with a deliberately narrow API.