I'm currently doing a Buildroot env and need to integrate my Rust Project into it. Buildroot currently offers me rust stable 1.33.0 which cant even parse the current Cargo.toml and I need nightly anyway.
Buildroot has components called packages, and rust (and rust-bin) are in there. rust-bin currently downloads https://static.rust-lang.org/dist/rustc-1.33.0-x86_64-unknown-linux-gnu.tar.xz .
In this case the SITE_URL is
https://static.rust-lang.org/dist/ and the filename for rustc
rustc-1.33.0-x86_64-unknown-linux-gnu.tar.xz. I didn't find any nightly variant for 1.49.0, 1.48.0 or a bit older ones by adding the nightly with various variants to it.
My current solution is to replace the version number with a date which results in such a url: https://static.rust-lang.org/dist/2020-12-01/rustc-nightly-x86_64-unknown-linux-gnu.tar.xz?2020-12-01 . I added the
?$(RUST_BIN_VERSION) to the filename, so the downloaded file is kinda still a versioned name.
My question is whether there is a proper versioned url available to use instead of the above. I imagine something along those lines (which don't exist yet and I tried a few others as well):