2019-06-06 21:43:30 +00:00
|
|
|
#![warn(clippy::all)]
|
|
|
|
|
2019-06-04 18:08:26 +00:00
|
|
|
pub mod adapters;
|
2019-06-07 19:46:03 +00:00
|
|
|
pub mod args;
|
2019-06-05 14:43:40 +00:00
|
|
|
mod caching_writer;
|
2019-06-12 10:25:02 +00:00
|
|
|
pub mod matching;
|
2019-06-06 09:00:13 +00:00
|
|
|
pub mod preproc;
|
2019-06-07 17:00:24 +00:00
|
|
|
pub mod preproc_cache;
|
2020-06-08 21:11:43 +00:00
|
|
|
use anyhow::Context;
|
|
|
|
use anyhow::Result;
|
2019-06-05 14:43:40 +00:00
|
|
|
pub use caching_writer::CachingWriter;
|
2020-06-08 21:11:43 +00:00
|
|
|
use directories_next::ProjectDirs;
|
|
|
|
|
|
|
|
pub fn project_dirs() -> Result<ProjectDirs> {
|
|
|
|
directories_next::ProjectDirs::from("", "", "ripgrep-all")
|
|
|
|
.context("no home directory found! :(")
|
|
|
|
}
|