proc_macro_crate

Function extract_crate_names

source
pub(crate) fn extract_crate_names(
    cargo_toml: &DocumentMut,
    workspace_dependencies: BTreeMap<String, String>,
) -> Result<BTreeMap<String, FoundCrate>, Error>
Expand description

Extract all crate names from the given Cargo.toml by checking the dependencies and dev-dependencies.