Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F171779310
D59575.id186401.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
991 B
Referenced Files
None
Subscribers
None
D59575.id186401.diff
View Options
diff --git a/Mk/Uses/cargo.mk b/Mk/Uses/cargo.mk
--- a/Mk/Uses/cargo.mk
+++ b/Mk/Uses/cargo.mk
@@ -68,7 +68,7 @@
. for _index _crate _name _version in ${_CARGO_CRATES}
# Resolving CRATESIO alias is very inefficient with many MASTER_SITES, consume MASTER_SITE_CRATESIO directly
-MASTER_SITES+= ${MASTER_SITE_CRATESIO:S,%SUBDIR%,${_name}/${_version},:S,$,:_cargo_${_index},}
+MASTER_SITES+= ${MASTER_SITE_CRATESIO:S,%SUBDIR%,${_name}/${_crate}${CARGO_CRATE_EXT},:S,$,:_cargo_${_index},}
DISTFILES+= ${CARGO_DIST_SUBDIR}/${_crate}${CARGO_CRATE_EXT}:_cargo_${_index}
# Provide pointer to the crate's extraction dir
diff --git a/Mk/bsd.sites.mk b/Mk/bsd.sites.mk
--- a/Mk/bsd.sites.mk
+++ b/Mk/bsd.sites.mk
@@ -106,7 +106,7 @@
.endif
.if !defined(IGNORE_MASTER_SITE_CRATESIO)
-MASTER_SITE_CRATESIO+= https://crates.io/api/v1/crates/%SUBDIR%/download?dummy=/
+MASTER_SITE_CRATESIO+= https://static.crates.io/crates/%SUBDIR%?dummy=/
.endif
.if !defined(IGNORE_MASTER_SITE_DEBIAN)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Sep 14, 11:38 AM (5 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38722128
Default Alt Text
D59575.id186401.diff (991 B)
Attached To
Mode
D59575: bsd.sites.mk: use static CDN to download rust crates
Attached
Detach File
Event Timeline
Log In to Comment