1b0fafea75
This commit adds a `Loader` type, which can be used to load multiple source strings. This was done to support the work on modules, but coincidentally enabled consolidating errors, since now `Config::run` can take a `&Loader`, and in the event of an error, return and `Error` that borrows from loaded strings. Multiple error types have been consolidated, and a bunch of ad-hoc error printing was removed.
28 lines
709 B
Rust
28 lines
709 B
Rust
pub(crate) use std::{
|
|
collections::BTreeMap,
|
|
env::{self, consts::EXE_SUFFIX},
|
|
error::Error,
|
|
fmt::Debug,
|
|
fs,
|
|
io::Write,
|
|
iter,
|
|
path::{Path, PathBuf},
|
|
process::{Command, Output, Stdio},
|
|
str,
|
|
};
|
|
|
|
pub(crate) use cradle::cmd_unit;
|
|
pub(crate) use executable_path::executable_path;
|
|
pub(crate) use just::unindent;
|
|
pub(crate) use libc::{EXIT_FAILURE, EXIT_SUCCESS};
|
|
pub(crate) use pretty_assertions::Comparison;
|
|
pub(crate) use regex::Regex;
|
|
pub(crate) use tempfile::TempDir;
|
|
pub(crate) use temptree::temptree;
|
|
pub(crate) use which::which;
|
|
pub(crate) use yaml_rust::YamlLoader;
|
|
|
|
pub(crate) use crate::{
|
|
assert_stdout::assert_stdout, assert_success::assert_success, tempdir::tempdir, test::Test,
|
|
};
|