rfc2396 1.1.0

A library for validating strings as RFC2396-compliant URIs
Documentation
pub use uri::uri_reference;

#[cfg(test)]
macro_rules! test_cases {
    (
        $module:ident::$parser:ident: {
            $( $case:ident: $text:literal ),+
        }
    ) => {$(
        #[test]
        fn $case() -> anyhow::Result<()> {
            assert_eq!(crate::parsers::$module::$parser($text).context(concat!("failed to parse `", $text, "`"))?, ("", $text));
            Ok(())
        }
    )+};
}

mod char;
mod component;
mod multi_char;
mod uri;