| Crates.io | rfc2396 |
| lib.rs | rfc2396 |
| version | 1.1.0 |
| created_at | 2020-12-27 15:02:47.843223+00 |
| updated_at | 2021-01-24 12:36:20.622618+00 |
| description | A library for validating strings as RFC2396-compliant URIs |
| homepage | |
| repository | https://gitlab.com/Kage-Yami/rfc2396-rust |
| max_upload_size | |
| id | 327856 |
| size | 133,961 |
A Rust library for validating strings as RFC2396-compliant URIs
This project follows Semantic Versioning principals starting with 1.0.0.
This repository is located on GitLab.com.
To use this crate, simply call one of the validate* functions, depending on your use case and desired return type:
validate(S) -> boolvalidate_nom(S) -> nom::IResult<&str, &str>validate_opt(S) -> Option<&str>validate_res(S) -> anyhow::Result<&str>Where S is some type that implements Into<&str>; for example, &str itself!
All functions except the _nom variant will additionally ensure that the entire input is consumed and matches exactly what was parsed internally. If you require that this check is not done (e.g. as part of a larger parsing exercise), then use the _nom variant.
This crate does not provide a data structure with which components of a URI are represented by.