HomeFreeBSD

Mk/Uses/cargo.mk: Better deal with versions with build identifier suffixes

Description

Mk/Uses/cargo.mk: Better deal with versions with build identifier suffixes

A crate spec like curl-sys-0.4.30+curl-7.69.1 was incorrectly
interpreted as having a name of 'curl-sys-0.4.30+curl' instead of
'curl-sys' and failed to fetch as a consequence.

Crate names can only be composed of a limited character set [1].
Limit the regular expressions to that set and make them less greedy.

[1] https://doc.rust-lang.org/cargo/reference/manifest.html#the-name-field

PR: 244977
Reported by: jbeich

Details