url_decompose/
lib.rs

1/*!
2Provides a struct [`Url`] to decompose the url into a set of string slice. 
3Some utilities functions are also provided.
4
5# Motivation
6
7You can notice this crate is very similar to the [url crate]. That's right : 
8url-decompose almost do the same thing. 
9
10As I started to make this crate, I didn't know the existance of "url" so I went to 
11URI RFC to make my own implementation (using a regex). When I discover "url" crate, 
12I decided to keep on my crate for some reasons :
13
14### Url\<S\> can either own data or not
15
16`S` has to implement `AsRef<str>`, so Url can stock whatever type you want. 
17It can be String (so Url owns the string) or &str (so Url keeps a reference to 
18another String). 
19
20### This crate is light
21
22As I'm writing, there is 2 files 400 lines in totale, and needs 3 dependencies. 
23Of course, the crate should evolve to something better in parsing, but it'll
24still remain light.
25
26[url crate]: https://crates.io/crates/url
27[RFC 3986]: https://datatracker.ietf.org/doc/html/rfc3986
28*/
29
30#[cfg(test)]
31mod tests;
32pub(crate) mod regex_generator;
33pub(crate) mod url;
34
35pub use url::*;