Home
Head's Up: I'm in the middle of upgrading my site. Most things are in place, but there are something missing and/or broken including image alt text. Please bear with me while I'm getting things fixed.

Create Text Slugs In Rust

The slug crate is great for making urls and filenames from strings of text. For example :

rust
use slug::slugify;

fn main() {
    let text = "This is.!~ the test   ";
    let slug = slugify(text);
    println!("{}", slug);
}
results full

- Add the create with [TODO: Code shorthand span ]

- Returns a - z, 0 - 9, and ' - '

- never contain more than one ' - '

- never start or end with ' - '

Footnotes And References