Rust: Remove skip_path_resolution config variable (hardhoded to true).

This commit is contained in:
Geoffrey White
2025-08-26 09:33:52 +01:00
parent fb7c3f32d3
commit d6d0645d7b
4 changed files with 1 additions and 13 deletions

View File

@@ -80,12 +80,6 @@ options:
Collect flame graph data using the `tracing-flame` crate. To render a flame graph Collect flame graph data using the `tracing-flame` crate. To render a flame graph
or chart, run the `inferno-flamegraph` command. See also: https://crates.io/crates/tracing-flame or chart, run the `inferno-flamegraph` command. See also: https://crates.io/crates/tracing-flame
type: string type: string
skip_path_resolution:
title: Skip path resolution
description: >
Skip path resolution. This is experimental, while we move path resolution from the extractor to the QL library.
type: string
pattern: "^(false|true)$"
extract_dependencies_as_source: extract_dependencies_as_source:
title: Extract dependencies as source code title: Extract dependencies as source code
description: > description: >

View File

@@ -69,7 +69,6 @@ pub struct Config {
pub build_script_command: Vec<String>, pub build_script_command: Vec<String>,
pub extra_includes: Vec<PathBuf>, pub extra_includes: Vec<PathBuf>,
pub proc_macro_server: Option<PathBuf>, pub proc_macro_server: Option<PathBuf>,
pub skip_path_resolution: bool,
pub extract_dependencies_as_source: bool, pub extract_dependencies_as_source: bool,
pub force_library_mode: bool, // for testing purposes pub force_library_mode: bool, // for testing purposes
} }

View File

@@ -283,11 +283,7 @@ fn main() -> anyhow::Result<()> {
} }
let cwd = cwd()?; let cwd = cwd()?;
let (cargo_config, load_cargo_config) = cfg.to_cargo_config(&cwd); let (cargo_config, load_cargo_config) = cfg.to_cargo_config(&cwd);
let resolve_paths = if cfg.skip_path_resolution { let resolve_paths = ResolvePaths::No;
ResolvePaths::No
} else {
ResolvePaths::Yes
};
let (library_mode, library_resolve_paths) = if cfg.extract_dependencies_as_source { let (library_mode, library_resolve_paths) = if cfg.extract_dependencies_as_source {
(SourceKind::Source, resolve_paths) (SourceKind::Source, resolve_paths)
} else { } else {

View File

@@ -1 +0,0 @@
skip_path_resolution: true