intermodal/bin/gen/src/common.rs

48 lines
1.6 KiB
Rust
Raw Normal View History

pub(crate) use std::{
cmp::{Ord, PartialOrd},
collections::{BTreeMap, BTreeSet},
env,
fmt::{self, Display, Formatter},
fs::{self, File},
io,
ops::Deref,
path::{Path, PathBuf, StripPrefixError},
process::{self, Command, ExitStatus, Stdio},
str,
};
pub(crate) use ansi_term::Style;
pub(crate) use askama::Template;
pub(crate) use cargo_toml::Manifest;
pub(crate) use chrono::{DateTime, NaiveDateTime, Utc};
pub(crate) use fehler::{throw, throws};
pub(crate) use git2::{Commit, Oid, Repository};
pub(crate) use ignore::overrides::OverrideBuilder;
pub(crate) use lexiclean::Lexiclean;
pub(crate) use libc::EXIT_FAILURE;
pub(crate) use log::info;
pub(crate) use regex::Regex;
pub(crate) use serde::{Deserialize, Serialize};
pub(crate) use snafu::{ResultExt, Snafu};
pub(crate) use std::string::FromUtf8Error;
pub(crate) use structopt::StructOpt;
pub(crate) use strum::VariantNames;
pub(crate) use strum_macros::{EnumVariantNames, IntoStaticStr};
pub(crate) use url::Url;
pub(crate) use walkdir::WalkDir;
// modules
pub(crate) use crate::error;
// traits
pub(crate) use crate::{command_ext::CommandExt, row::Row, slug::Slug, template_ext::TemplateExt};
// structs and enums
pub(crate) use crate::{
bin::Bin, changelog::Changelog, config::Config, entry::Entry, error::Error, example::Example,
faq::Faq, faq_entry::FaqEntry, introduction::Introduction, kind::Kind, metadata::Metadata,
opt::Opt, package::Package, project::Project, readme::Readme, reference::Reference,
reference_section::ReferenceSection, release::Release, subcommand::Subcommand, summary::Summary,
table::Table,
};