mod utils

module utils

Functions

fn check_for_manifest(paths: Vec<&Path>) -> Option<(PathBuf, CargoManifest)>

Check the provided paths for the Cargo.toml file.

Returns:

A Some value of the path that contained the Cargo manifest and the associated manifest for the first path contains a Cargo.toml file.

Structs and Unions

struct CargoManifest(Manifest)

Newtype struct for the Cargo manifest from cargo_toml

Functions

fn executable_files(&self, crate_dir: &Path) -> Vec<SourceCodeFile>

Get all the executable files in the crate.

fn lib_file(&self, crate_dir: &Path) -> Option<SourceCodeFile>

Get the library file for the crate, if any.

struct SourceCodeFile

Struct for the source code files encountered when scanning the crate.

path: PathBuf

The path to the file.

item: String

The name of the item in the file.

Functions

fn ast(&self) -> syn::File
fn to_parent_directory(&self) -> Self