See:
https://doc.rust-lang.org/cargo/reference/manifest.html#the-name-field
Unbreaks crates using `curl-sys` version `0.4.30+curl-7.69.1` and such.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
# @DESCRIPTION:
# Generates the URIs to put in SRC_URI to help fetch dependencies.
cargo_crate_uris() {
- local -r regex='^(.*)-([0-9]+\.[0-9]+\.[0-9]+.*)$'
+ local -r regex='^([a-zA-Z0-9_\-]+)-([0-9]+\.[0-9]+\.[0-9]+.*)$'
local crate
for crate in "$@"; do
local name version url