slugi
A simple, lightweight Rust library for turning text into URL-safe slugs.
Inspired by tools like Python’s slugify, but designed for idiomatic Rust usage.
GITHUBLINK
https://github.com/Omchaudhary2004/slugify
✨ Features
- Convert accented characters (
Café → cafe) - Lowercase all text
- Replace spaces with
_ - Keep only ASCII alphanumeric characters and underscores
- Tiny, dependency-free implementation
📦 Installation
Add slugi to your Cargo.toml:
[]
= "0.1"
Or install directly with Cargo:
🚀 Usage
use slugify;
📖 Documentation
Full API docs are available at docs.rs/slugi .
✅ Roadmap
Support for more diacritics
Configurable replacement character (- instead of _)
Optional Unicode normalization
🤝 Contributing
Contributions, issues, and feature requests are welcome! Feel free to check the issues page .
Fork the repo
Create a new branch (git checkout -b feature/my-feature)
Commit changes (git commit -m 'Add my feature')
Push to the branch (git push origin feature/my-feature)
Open a Pull Request