mago-database 1.0.0-alpha.5

Provides a high-performance, in-memory database for source code analysis, featuring distinct mutable and immutable states and transactional updates.
Documentation
1
2
3
4
5
6
7
8
9
10
use std::path::PathBuf;

/// Defines a rule for excluding files or directories from a scan.
#[derive(Debug, Clone, Hash, Eq, PartialEq, PartialOrd, Ord)]
pub enum Exclusion {
    /// Exclude a specific file or directory path.
    Path(PathBuf),
    /// Exclude paths matching a glob pattern.
    Pattern(String),
}