Crate scan_crate_for_typedefs

Source

Modules§

imports

Macros§

example_macro
ix

Structs§

CrateTypes
Represents various types of items in a Rust crate.
PersistentWorkspaceTypeMap
A wrapper around WorkspaceTypes with persistence features.
WorkspaceTypes
A mapping between workspace crate names and the types they define, along with an index for quick lookups.

Enums§

CrateLocation
Represents the location of a Rust crate in various scenarios.

Constants§

WORKSPACE_TYPEMAP_DEFAULT_PERSISTANCE_FILE
Default JSON file name for storing the workspace type map.

Functions§

cat_file_to_screen
Prints the content of the file located at the specified path to the standard output.
current_cargo_toml
Returns the PathBuf to the current directory’s Cargo.toml file.
get_crate_name_from_cargo_toml
Retrieves the crate name from a given Cargo.toml file path.
get_parent_directory_from_cargo_toml_path
Retrieves the parent directory path from a given Cargo.toml file path.
get_workspace_members
Fetches the list of member crate names from a given workspace-level Cargo.toml file.
is_node_public
Determines if a given syntax node in a Rust AST represents a public entity.
load_workspace_types
Loads a WorkspaceTypes instance from a JSON file at the specified path.
parent_cargo_toml
Returns the PathBuf to the parent directory’s Cargo.toml file.
save_workspace_types
Saves the WorkspaceTypes instance to a JSON file at the specified path.