Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/post_process/checks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,12 @@ pub fn perform_linking_checks(
tracing::info!("{linked_package}");
});

// If there are no binaries, skip the overdepending check.
// Packages without binaries can't link against libraries.
if package_files.is_empty() {
return Ok(());
}

// If there are any unused run dependencies then it is "overdepending".
for run_dependency in resolved_run_dependencies.iter() {
if !package_files
Expand Down