|
14 | 14 | clippy::wildcard_imports
|
15 | 15 | )]
|
16 | 16 |
|
| 17 | +pub(crate) use { |
| 18 | + crate::{ |
| 19 | + alias::Alias, analyzer::Analyzer, assignment::Assignment, |
| 20 | + assignment_resolver::AssignmentResolver, ast::Ast, binding::Binding, color::Color, |
| 21 | + color_display::ColorDisplay, command_ext::CommandExt, compile_error::CompileError, |
| 22 | + compile_error_kind::CompileErrorKind, conditional_operator::ConditionalOperator, |
| 23 | + config::Config, config_error::ConfigError, count::Count, delimiter::Delimiter, |
| 24 | + dependency::Dependency, dump_format::DumpFormat, enclosure::Enclosure, error::Error, |
| 25 | + evaluator::Evaluator, expression::Expression, fragment::Fragment, function::Function, |
| 26 | + function_context::FunctionContext, interrupt_guard::InterruptGuard, |
| 27 | + interrupt_handler::InterruptHandler, item::Item, justfile::Justfile, keyed::Keyed, |
| 28 | + keyword::Keyword, lexer::Lexer, line::Line, list::List, load_dotenv::load_dotenv, |
| 29 | + loader::Loader, name::Name, ordinal::Ordinal, output::output, output_error::OutputError, |
| 30 | + parameter::Parameter, parameter_kind::ParameterKind, parser::Parser, platform::Platform, |
| 31 | + platform_interface::PlatformInterface, position::Position, positional::Positional, |
| 32 | + range_ext::RangeExt, recipe::Recipe, recipe_context::RecipeContext, |
| 33 | + recipe_resolver::RecipeResolver, scope::Scope, search::Search, search_config::SearchConfig, |
| 34 | + search_error::SearchError, set::Set, setting::Setting, settings::Settings, shebang::Shebang, |
| 35 | + shell::Shell, show_whitespace::ShowWhitespace, string_kind::StringKind, |
| 36 | + string_literal::StringLiteral, subcommand::Subcommand, suggestion::Suggestion, table::Table, |
| 37 | + thunk::Thunk, token::Token, token_kind::TokenKind, unresolved_dependency::UnresolvedDependency, |
| 38 | + unresolved_recipe::UnresolvedRecipe, use_color::UseColor, variables::Variables, |
| 39 | + verbosity::Verbosity, warning::Warning, |
| 40 | + }, |
| 41 | + std::{ |
| 42 | + cmp, |
| 43 | + collections::{BTreeMap, BTreeSet}, |
| 44 | + env, |
| 45 | + ffi::{OsStr, OsString}, |
| 46 | + fmt::{self, Debug, Display, Formatter}, |
| 47 | + fs, |
| 48 | + io::{self, Cursor, Write}, |
| 49 | + iter::{self, FromIterator}, |
| 50 | + mem, |
| 51 | + ops::{Index, Range, RangeInclusive}, |
| 52 | + path::{self, Path, PathBuf}, |
| 53 | + process::{self, Command, ExitStatus, Stdio}, |
| 54 | + rc::Rc, |
| 55 | + str::{self, Chars}, |
| 56 | + sync::{Mutex, MutexGuard}, |
| 57 | + usize, vec, |
| 58 | + }, |
| 59 | + { |
| 60 | + camino::Utf8Path, |
| 61 | + derivative::Derivative, |
| 62 | + edit_distance::edit_distance, |
| 63 | + lexiclean::Lexiclean, |
| 64 | + libc::EXIT_FAILURE, |
| 65 | + log::{info, warn}, |
| 66 | + regex::Regex, |
| 67 | + serde::{ |
| 68 | + ser::{SerializeMap, SerializeSeq}, |
| 69 | + Serialize, Serializer, |
| 70 | + }, |
| 71 | + snafu::{ResultExt, Snafu}, |
| 72 | + strum::{Display, EnumString, IntoStaticStr}, |
| 73 | + typed_arena::Arena, |
| 74 | + unicode_width::{UnicodeWidthChar, UnicodeWidthStr}, |
| 75 | + }, |
| 76 | +}; |
| 77 | + |
| 78 | +#[cfg(test)] |
| 79 | +pub(crate) use crate::{node::Node, tree::Tree}; |
| 80 | + |
17 | 81 | pub use crate::run::run;
|
18 | 82 |
|
19 | 83 | // Used in integration tests.
|
20 | 84 | #[doc(hidden)]
|
21 | 85 | pub use unindent::unindent;
|
22 | 86 |
|
| 87 | +pub(crate) type CompileResult<'a, T> = Result<T, CompileError<'a>>; |
| 88 | +pub(crate) type ConfigResult<T> = Result<T, ConfigError>; |
| 89 | +pub(crate) type RunResult<'a, T> = Result<T, Error<'a>>; |
| 90 | +pub(crate) type SearchResult<T> = Result<T, SearchError>; |
| 91 | + |
23 | 92 | #[macro_use]
|
24 | 93 | extern crate lazy_static;
|
25 | 94 |
|
@@ -52,7 +121,6 @@ mod binding;
|
52 | 121 | mod color;
|
53 | 122 | mod color_display;
|
54 | 123 | mod command_ext;
|
55 |
| -mod common; |
56 | 124 | mod compile_error;
|
57 | 125 | mod compile_error_kind;
|
58 | 126 | mod compiler;
|
|
0 commit comments