chiark / gitweb /
bac8d9de3e3f98386479d5d43b62a9a19bebbe49
[hippotat.git] / src / prelude.rs
1 // Copyright 2021 Ian Jackson and contributors to Hippotat
2 // SPDX-License-Identifier: AGPL-3.0-or-later
3 // There is NO WARRANTY.
4
5 pub use std::collections::HashMap;
6 pub use std::fs;
7 pub use std::fmt::Debug;
8 pub use std::io::{self, ErrorKind, Read as _};
9 pub use std::mem;
10 pub use std::net::{IpAddr, Ipv4Addr};
11 pub use std::path::{Path, PathBuf};
12 pub use std::str::FromStr;
13 pub use std::sync::Arc;
14
15 pub use anyhow::{anyhow, Context};
16 pub use extend::ext;
17 pub use fehler::{throw, throws};
18 pub use hyper::Uri;
19 pub use itertools::Itertools;
20 pub use lazy_regex::regex_is_match;
21 pub use structopt::StructOpt;
22 pub use tokio::time::Duration;
23 pub use void::{self, Void};
24
25 pub use crate::config;
26 pub use crate::utils::*;
27 pub use crate::types::*;
28
29 pub use anyhow::Error as AE;
30 pub use ErrorKind as EK;