2019-09-14 16:29:11 -07:00
|
|
|
// stdlib
|
2019-04-11 15:23:14 -07:00
|
|
|
pub(crate) use std::{
|
|
|
|
borrow::Cow,
|
|
|
|
cmp,
|
|
|
|
collections::{BTreeMap, BTreeSet},
|
|
|
|
env,
|
|
|
|
fmt::{self, Display, Formatter},
|
|
|
|
fs, io, iter,
|
|
|
|
ops::{Range, RangeInclusive},
|
|
|
|
path::{Path, PathBuf},
|
2019-07-13 01:55:06 -07:00
|
|
|
process::{self, Command},
|
2019-04-15 22:40:02 -07:00
|
|
|
str::Chars,
|
2019-04-11 15:23:14 -07:00
|
|
|
sync::{Mutex, MutexGuard},
|
|
|
|
usize, vec,
|
|
|
|
};
|
2018-03-17 09:17:41 -07:00
|
|
|
|
2019-09-14 16:29:11 -07:00
|
|
|
// dependencies
|
2019-04-11 15:23:14 -07:00
|
|
|
pub(crate) use edit_distance::edit_distance;
|
|
|
|
pub(crate) use libc::{EXIT_FAILURE, EXIT_SUCCESS};
|
|
|
|
pub(crate) use log::warn;
|
|
|
|
pub(crate) use unicode_width::UnicodeWidthChar;
|
2018-03-17 09:17:41 -07:00
|
|
|
|
2019-09-14 16:29:11 -07:00
|
|
|
// modules
|
2019-06-01 22:38:03 -07:00
|
|
|
pub(crate) use crate::search;
|
|
|
|
|
2019-09-14 16:29:11 -07:00
|
|
|
// modules used in tests
|
2019-07-06 20:55:46 -07:00
|
|
|
#[cfg(test)]
|
|
|
|
pub(crate) use crate::testing;
|
|
|
|
|
2019-09-14 16:29:11 -07:00
|
|
|
// functions
|
2019-04-11 15:23:14 -07:00
|
|
|
pub(crate) use crate::{
|
|
|
|
load_dotenv::load_dotenv,
|
|
|
|
misc::{default, empty},
|
2019-07-13 01:55:06 -07:00
|
|
|
output::output,
|
2019-06-01 22:38:03 -07:00
|
|
|
};
|
|
|
|
|
2019-09-14 16:29:11 -07:00
|
|
|
// structs and enums
|
2019-06-01 22:38:03 -07:00
|
|
|
pub(crate) use crate::{
|
|
|
|
alias::Alias, alias_resolver::AliasResolver, assignment_evaluator::AssignmentEvaluator,
|
|
|
|
assignment_resolver::AssignmentResolver, color::Color, compilation_error::CompilationError,
|
|
|
|
compilation_error_kind::CompilationErrorKind, configuration::Configuration,
|
|
|
|
expression::Expression, fragment::Fragment, function::Function,
|
|
|
|
function_context::FunctionContext, functions::Functions, interrupt_guard::InterruptGuard,
|
2019-07-13 01:55:06 -07:00
|
|
|
interrupt_handler::InterruptHandler, justfile::Justfile, lexer::Lexer, output_error::OutputError,
|
|
|
|
parameter::Parameter, parser::Parser, platform::Platform, position::Position, recipe::Recipe,
|
|
|
|
recipe_context::RecipeContext, recipe_resolver::RecipeResolver, runtime_error::RuntimeError,
|
|
|
|
search_error::SearchError, shebang::Shebang, state::State, string_literal::StringLiteral,
|
|
|
|
token::Token, token_kind::TokenKind, use_color::UseColor, variables::Variables,
|
2019-09-21 18:53:30 -07:00
|
|
|
verbosity::Verbosity, warning::Warning,
|
2019-04-11 15:23:14 -07:00
|
|
|
};
|
|
|
|
|
2019-09-21 15:35:03 -07:00
|
|
|
pub(crate) type CompilationResult<'a, T> = Result<T, CompilationError<'a>>;
|
2019-04-19 02:40:25 -07:00
|
|
|
|
2019-09-21 15:35:03 -07:00
|
|
|
pub(crate) type RunResult<'a, T> = Result<T, RuntimeError<'a>>;
|
2019-04-19 02:40:25 -07:00
|
|
|
|
2019-04-11 15:23:14 -07:00
|
|
|
#[allow(unused_imports)]
|
|
|
|
pub(crate) use std::io::prelude::*;
|
|
|
|
|
|
|
|
#[allow(unused_imports)]
|
|
|
|
pub(crate) use crate::command_ext::CommandExt;
|
|
|
|
|
|
|
|
#[allow(unused_imports)]
|
|
|
|
pub(crate) use crate::range_ext::RangeExt;
|
2019-04-19 02:17:43 -07:00
|
|
|
|
|
|
|
#[allow(unused_imports)]
|
|
|
|
pub(crate) use crate::ordinal::Ordinal;
|
2019-07-13 01:55:06 -07:00
|
|
|
|
|
|
|
#[allow(unused_imports)]
|
|
|
|
pub(crate) use crate::platform_interface::PlatformInterface;
|