Closed AustinWise closed 2 years ago
See also how the rustup
website detects the OS, to suggest which installer to use: https://github.com/rust-lang/rustup/tree/master/www
I had an idea:
- Instead of parsing the message GitHub gives when doing a 302 redirect to find the the latest version, use include a
version.txt
as one of the release files. See 769fc8dfe9a0ac3f8a3246aa0c547c0590c69b92
Unfortunately there does not appear to be a URL that will allow us to reach this file =( .
Some ideas are in the CLI book: https://rust-cli.github.io/book/tutorial/packaging.html
trust gets most of the way there. There are some tweaks I would like to make:
rustc
to detect the target triple, steal the target detection code from therustup-init.sh
scriptAlso, a
cargo install
command should be listed, so people can install on targets I have not yet create binaries for.Some more pie-in-the-sky ideas:
rustup
already does a lot of what I want for binary distribution and installation. Perhaps a binary rust package manager could be built out of parts of it?