#dat #parse-url #versioned #parser #datrs #dat-url

parse-dat-url

url parser to support versioned dat URLs

1 unstable release

0.1.0 Aug 19, 2019

#5 in #versioned

MIT/Apache

53KB
1K SLoC

parse-dat-url

url parser to support versioned dat URLs

Useful links:

Usage

[dependencies]
parse-dat-url = "0.1.0"

It is possible to avoid pulling serde as a dependency, by disabling default features:

[dependencies]
parse-dat-url = { version = "0.1.0", default-features = false }

Example

use parse_dat_url::DatUrl;

fn main() {
    let url = DatUrl::parse("dat://584faa05d394190ab1a3f0240607f9bf2b7e2bd9968830a11cf77db0cea36a21+v1.0.0/path/to/file.txt");
}

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~3.5–5MB
~121K SLoC