1 unstable release
0.1.0 | Aug 19, 2019 |
---|
#9 in #versioned
53KB
1K
SLoC
parse-dat-url
url parser to support versioned dat URLs
Useful links:
- dat.foundation - Main webpage
- How dat works - Detailed Guide
- datprocol - Main implementation
- datrs - Rust implementation
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
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT )
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
~4.5–6.5MB
~110K SLoC