Expand description
Dependency graph for include-aware cache invalidation.
Tracks #include relationships between source and header files,
resolves include paths against search directories, and determines
whether a compilation can use a cached artifact.
Re-exports§
pub use args::ParsedArgs;pub use args::UserDepFlags;pub use compile_commands::parse_compile_commands_json;pub use compile_commands::CompileCommand;pub use context::compute_artifact_key;pub use context::compute_rustc_artifact_key;pub use context::ArtifactKey;pub use context::CompileContext;pub use context::ContextKey;pub use context::RustcCompileContext;pub use depfile::prepare_depfile;pub use depfile::DepfileError;pub use depfile::DepfileStrategy;pub use graph::CacheVerdict;pub use graph::ContextState;pub use graph::DepGraph;pub use graph::DepGraphStats;pub use rustc_args::parse_rustc_args;pub use rustc_args::ExternCrate;pub use rustc_args::RustcParsedArgs;pub use scanner::IncludeDirective;pub use scanner::IncludeKind;pub use scanner::ScanResult;pub use search_paths::IncludeSearchPaths;pub use session::FinalizedSessionStats;pub use session::Session;pub use session::SessionConfig;pub use session::SessionId;pub use session::SessionManager;pub use session::SessionStatsTracker;pub use snapshot::classify_load;pub use snapshot::depgraph_file_path;pub use snapshot::load_from_file;pub use snapshot::save_to_file;pub use snapshot::DepGraphLoadOutcome;pub use snapshot::SnapshotError;pub use snapshot::DEPGRAPH_VERSION;pub use system_includes::discovery_args;pub use system_includes::parse_system_include_output;pub use system_includes::SystemIncludeCache;pub use watcher_support::WatchSet;
Modules§
- args
- Compiler argument parser.
- compile_
commands - Parser for
compile_commands.json(clang compilation database). - context
- Compilation context and cache key computation.
- depfile
- Parser for GNU make dependency files (
.dfiles). - graph
- Core dependency graph.
- msvc_
args - MSVC (
cl.exe) argument parser. - rustc_
args - Rustc argument parser for cache key computation.
- scanner
#includedirective scanner.- search_
paths - Include search path types and resolution order.
- session
- Session management for the dependency graph.
- show_
includes - MSVC
/showIncludesstderr parser. - snapshot
- Disk persistence for the dependency graph via rkyv zero-copy serialization.
- system_
includes - System include path discovery from compiler output.
- watcher_
support - Watcher integration support for the dependency graph.