Skip to main content

rust_file_is_project_source

Function rust_file_is_project_source 

Source
pub fn rust_file_is_project_source(path: &Path) -> bool
Expand description

Return whether Cargo can plausibly compile path as part of one of the package targets in the surrounding workspace. Merely living somewhere below a Cargo.toml is not enough (documentation snippets are a common counterexample).