read_url/
lib.rs

1// https://stackoverflow.com/a/61417700
2#![cfg_attr(docsrs, feature(doc_cfg))]
3#![warn(missing_docs)]
4
5/*!
6Go beyond `http://` with this streamlined URL library for Rust.
7
8read-url gets you an [io::Read](std::io::Read) or a [tokio::io::AsyncRead] from a wide variety of URL types,
9including entries in archives and code repositories using a URL notation inspired by Java's
10[JarURLConnection](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/JarURLConnection.html).
11
12For more information and usage examples see the
13[home page](https://github.com/tliron/rust-read-url).
14*/
15
16mod cache;
17mod context;
18mod errors;
19mod url;
20mod util;
21
22/// `file:`
23#[cfg(feature = "file")]
24pub mod file;
25
26/// `git:`
27#[cfg(feature = "git")]
28pub mod git;
29
30/// `http:` and `https:`
31#[cfg(feature = "http")]
32pub mod http;
33
34/// `internal:`
35pub mod internal;
36
37/// Mock URLs.
38pub mod mock;
39
40/// `tar:`
41#[cfg(feature = "tar")]
42pub mod tar;
43
44/// `zip:`
45#[cfg(feature = "zip")]
46pub mod zip;
47
48#[allow(unused_imports)]
49pub use {cache::*, context::*, errors::*, url::*};