## dirty_files_outside_pkg_root

# Function dirty_files_outside_pkg_root

Source

    fn dirty_files_outside_pkg_root(
        ws: &Workspace<'_>,
        pkg: &Package,
        repo: &Repository,
        src_files: &[PathEntry],
    ) -> CargoResult<Vec<PathBuf>>

Expand description

Checks whether “included” source files outside package root have been modified.

This currently looks at

- `package.readme` and `package.license-file` pointing to paths outside package root
- symlinks targets residing outside package root
- Any change in the root workspace manifest, regardless of what has changed.

This is required because those paths may link to a file outside the current package root, but still under the git workdir, affecting the final packaged `.crate` file.