use {
anyhow::Result,
std::{
collections::BTreeMap,
path::{Path, PathBuf},
},
};
pub mod arena;
pub mod cargo_deps;
pub mod gdb;
pub mod highlight;
pub mod loose;
pub mod model;
pub mod path_label;
pub mod rustc_wrapper;
pub mod source;
pub mod tui;
pub fn loose_profile_dir_name() -> &'static str {
crate::profile::DEFAULT_PROFILE_DIR
}
pub fn run(
profile_dir: &Path,
programs: &BTreeMap<String, PathBuf>,
manifest_dir: Option<&Path>,
crate_dir: Option<&Path>,
test_filter: Option<&str>,
) -> Result<()> {
highlight::detect_theme_mode_once();
let session =
arena::build_session(profile_dir, programs, manifest_dir, crate_dir, test_filter)?;
tui::run(session)
}