| Crates.io | precis-profiles |
| lib.rs | precis-profiles |
| version | 0.1.12 |
| created_at | 2021-11-02 09:31:42.89861+00 |
| updated_at | 2025-03-31 14:43:58.583236+00 |
| description | Implementation of the PRECIS Framework: Preparation, Enforcement, and Comparison of Internationalized Strings Representing Usernames and Passwords as defined in rfc8265; and Nicknames as defined in rfc8266. |
| homepage | https://github.com/sancane/precis |
| repository | https://github.com/sancane/precis |
| max_upload_size | |
| id | 475628 |
| size | 2,280,455 |
PRECIS Framework: Preparation, Enforcement, and Comparison of Internationalized Strings in Application Protocols as described in rfc8264
This crate implements the next PRECIS profiles:
assert_eq!(Nickname::prepare("Guybrush Threepwood"),
Ok(Cow::from("Guybrush Threepwood")));
assert_eq!(Nickname::enforce(" Guybrush Threepwood "),
Ok(Cow::from("Guybrush Threepwood")));
assert_eq!(Nickname::compare("Guybrush Threepwood ",
"guybrush threepwood"), Ok(true));
Patches and feedback are welcome.
If you find this project helpful, you may consider making a donation:
This project is licensed under either of