intermodal/bin/gen/src/common.rs
Casey Rodarmor e7872f56f2
Move all output from bin/gen to target/gen
To make it clearer what is and isn't generated content, make gen place
all generated output in `target/gen`.

Also, try to make the readme clearer about the location of build
artifacts.

type: development
2020-05-01 00:29:40 -07:00

45 lines
1.5 KiB
Rust

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 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;
// 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::{
arguments::Arguments, bin::Bin, bin_subcommand::BinSubcommand, changelog::Changelog,
config::Config, entry::Entry, error::Error, example::Example, faq::Faq, faq_entry::FaqEntry,
introduction::Introduction, kind::Kind, metadata::Metadata, options::Options, package::Package,
project::Project, readme::Readme, reference::Reference, reference_section::ReferenceSection,
release::Release, subcommand::Subcommand, summary::Summary, table::Table,
};