ruff_cache 0.0.4

This is an internal component crate of Ruff
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::path::{Path, PathBuf};

pub use cache_key::{CacheKey, CacheKeyHasher};

mod cache_key;
pub mod filetime;
pub mod globset;

pub const CACHE_DIR_NAME: &str = ".ruff_cache";

/// Return the cache directory for a given project root.
pub fn cache_dir(project_root: &Path) -> PathBuf {
    project_root.join(CACHE_DIR_NAME)
}