Module cargo::sources::path

source ยท

Structsยง

  • A source that represents a package gathered at the root path on the filesystem.
  • A source that represents one or multiple packages gathered from a given root path on the filesystem.

Enumsยง

Functionsยง

  • _list_files ๐Ÿ”’
  • discover_git_repo ๐Ÿ”’
    Returns Some(git2::Repository) if found sibling Cargo.toml and .git directory; otherwise, caller should fall back on full file list.
  • discover_gix_repo ๐Ÿ”’
    Returns Some(gix::Repository) if the discovered repository (searched upwards from root) contains a tracked <root>/Cargo.toml. Otherwise, the caller should fall back on full file list.
  • last_modified_file ๐Ÿ”’
    Gets the last modified file in a package.
  • List all files relevant to building this package inside this source.
  • list_files_git ๐Ÿ”’
    Lists files relevant to building this package inside this source by consulting both Git index (tracked) or status (untracked) under a given Git repository.
  • list_files_gix ๐Ÿ”’
    Lists files relevant to building this package inside this source by traversing the git working tree, while avoiding ignored files.
  • list_files_walk ๐Ÿ”’
    Lists files relevant to building this package inside this source by walking the filesystem from the package root path.
  • walk ๐Ÿ”’
    Helper recursive function for list_files_walk.