pub fn format_display_name( registry: &str, repo: &str, name: &str, sub: Option<&str>, config: &Config, ) -> String
Formats a package identifier for display based on registry and repository configuration.