pub fn extract_dependencies(
project: &CargoProject,
options: SourceOptions,
) -> Result<DependencyExtraction, ArchUnitError>Expand description
Parses selected Cargo targets and extracts Rust dependency references.
Internal module prefixes and renamed workspace dependencies resolve to workspace-relative files. Sysroot and declared third-party dependencies resolve to their Cargo-visible crate names. Parse, ambiguity, and unknown-name limitations are returned as diagnostics instead of aborting files.