Auris, URI parser for Rust
- Uses only safe features in rust
- Working towards
rfc2396
&rfc3986
compliance
Parses structure:
foo://example.com:8042/over/there?name=ferret#nose
\_/ \______________/\_________/ \_________/ \__/
| | | | |
scheme authority path query fragment
Usage
use URI;
"postgres://user:password@host".;
"https://crates.io/crates/auris".;
Query strings
We also parse query strings into HashMaps:
"postgres://user:password@example.com/db?replication=true".;
In the case of duplicated query string tags the last one wins:
"scheme://host/path?a=1&a=2".;
Documentation
Todo
- Ports
- Split up into multiple files
- Domains with .
- Rendering of URIs and Authority with fmt::Display
- Net loc compliance
- Parsing IPv4, IPv6
- Parsing fragments
- Percent encoding and decoding
- QuickCheck?