-
Notifications
You must be signed in to change notification settings - Fork 2
/
lib.rs
33 lines (31 loc) · 925 Bytes
/
lib.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//! This is a library part of [fixred][repo] tool.
//!
//! To install as dependency, add `fixred` to your `Cargo.toml` file. Ensure to disable default features.
//! It removes all unnecessary dependencies for using this tool as library.
//!
//! ```toml
//! [dependencies]
//! fixred = { version = "1", default-features = false, features = [] }
//! ```
//!
//! Here is a small example code.
//!
//! ```
//! use fixred::resolve::CurlResolver;
//! use fixred::redirect::Redirector;
//!
//! let red = Redirector::<CurlResolver>::default();
//! let fixed = red.fix(std::io::stdin(), std::io::stdout()).unwrap();
//! eprintln!("Fixed {} link(s)", fixed);
//! ```
//!
//! For the real world example, please see [src][] directory.
//!
//! [repo]: https://github.com/rhysd/fixred
//! [src]: https://github.com/rhysd/fixred/tree/main/src
pub mod redirect;
pub mod replace;
pub mod resolve;
pub mod url;
#[cfg(test)]
mod test_helper;