#![cfg_attr(not(test), warn(unused_crate_dependencies))]
use std::path::{Path, PathBuf};
use normalize_path::NormalizePath;
use project_origins::ProjectType;
#[doc(inline)]
pub use discover::*;
mod discover;
#[doc(inline)]
pub use error::*;
mod error;
#[doc(inline)]
pub use filter::*;
mod filter;
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct IgnoreFile {
pub path: PathBuf,
pub applies_in: Option<PathBuf>,
pub applies_to: Option<ProjectType>,
}
pub(crate) fn simplify_path(path: &Path) -> PathBuf {
dunce::simplified(path).normalize()
}