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ยง
- Git2OrGixRepository ๐
Functionsยง
- _list_files ๐
- discover_git_repo ๐Returns
Some(git2::Repository)
if found siblingCargo.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 fromroot
) 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
.