| Crates.io | unaccent |
| lib.rs | unaccent |
| version | 0.1.1 |
| created_at | 2025-01-11 23:59:51.35793+00 |
| updated_at | 2025-02-14 01:48:38.818266+00 |
| description | A Rust crate to remove accents from strings, inspired by PostgreSQL's unaccent extension. |
| homepage | |
| repository | https://github.com/crowdtech-io/unaccent |
| max_upload_size | |
| id | 1512825 |
| size | 9,116 |
unaccent is a simple and efficient Rust crate designed to remove accents (diacritical marks) from strings. Inspired by the PostgreSQL unaccent extension, this crate offers an easy-to-use API for developers who need to normalize text by removing accents in their Rust applications.
unicode-normalization crate under the hood for robust and efficient text processing.Add unaccent to your Cargo.toml:
[dependencies]
unaccent = "0.1.0"
Then, include it in your project:
use unaccent::unaccent;
Here’s a quick example:
use unaccent::unaccent;
fn main() {
let input = "Café au lait élégant";
let result = unaccent(input);
println!("Unaccented: {}", result); // Outputs: "Cafe au lait elegant"
}
Contributions are welcome! If you find a bug or have a feature request, please open an issue or submit a pull request.
Clone the repository:
git clone https://github.com/crowdtech-io/unaccent.git
cd unaccent
Run tests:
cargo test
This project adheres to the Rust Code of Conduct. By participating, you are expected to uphold this standard.
This project is licensed under the MIT License.
Special thanks to the creators of the PostgreSQL unaccent extension and the maintainers of the unicode-normalization crate for their foundational work.
Note: This crate is not affiliated with or endorsed by the PostgreSQL project.