From: bors Date: Tue, 19 Dec 2017 01:48:52 +0000 (+0000) Subject: Auto merge of #4836 - sfackler:dl-template, r=withoutboats X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~4^2~15 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=77a773a4f78aed157613b37f0b18e3aea0d588f5;p=cargo.git Auto merge of #4836 - sfackler:dl-template, r=withoutboats Template a registry's dl field Previously, crate files were always downloaded from `/{crate}/{version}/download`. However, if the backing crate store for a custom registry is a raw file server rather than an API endpoint that requires every file to be named `download` which is a bit weird. Now a registry's dl URL can be templated with `{crate}` and `{version}` to have more control over the resulting path. For backwards compatibility, we append the default template suffix onto the dl URL if neither of the template parameters are present for backwards compatibility. r? @alexcrichton cc @withoutboats --- 77a773a4f78aed157613b37f0b18e3aea0d588f5