proc_macro_crate

Function extract_workspace_dependencies

source
pub(crate) fn extract_workspace_dependencies(
    workspace_toml: &DocumentMut,
) -> Result<BTreeMap<String, String>, Error>
Expand description

Extract all [workspace.dependencies].

Returns a hash map that maps from dep name to the package name. Dep name and package name can be the same if there doesn’t exist any rename.