Comments (9)
I think a good approach here would be to add an integration test that can download a recent manifest, parse it, and regenerate a source file that contains current definitions of these (and fails the test if they're outdated).
from rustup.
I think a good approach here would be to add an integration test that can download a recent manifest, parse it, and regenerate a source file that contains current definitions of these (and fails the test if they're outdated).
@djc The current model of target triples in Rustup requires some non-code knowledge to correctly generate the list:
{ arch: aarch64, os: linux, env: android }
{ arch: aarch64, os: unknown-freebsd}
Looking at the original file, I think a reasonable (but possibly breaking) solution would be parsing the triples as follows:
// for `x-y`
{ arch: x, os: y }
// special case for `x-y-w` where `y` is `none` or `linux`
// e.g. `thumbv4t-none-eabi`, `i686-linux-android`
// (should've been called `x-unknown-y-w`, but alas)
{ arch: x, os: y, env: w }
// for `x-y-z`
{ arch: x, os: y-z }
// for `x-y-z-w`
{ arch: x, os: y-z, env: w }
Then we can get a list of triples by using things like rustc --print target-list
(I assume we cannot add/remove a component without even having rustc
installed, right?), or by reading the manifest (either at comptime or at runtime) and deduplicating.
from rustup.
Related Issues (20)
- Installing can't be done with the script HOT 2
- install script error info: downloading installer sh: line 570: 1607 Segmentation fault: 11 "$@" HOT 1
- mac catalina cant use offical script install rust HOT 1
- Does not decrment correctly HOT 1
- Rust offline windows installer missing clippy, source and rustfmt HOT 2
- Distribute GCC backend HOT 1
- rustup doesn't install a toolchain? HOT 11
- Get built toolchain programmatically HOT 2
- Meta: mention that we need to keep mdBook links stable
- The «Basic usage» section of the rustup book should talk about basic usage. HOT 9
- error: failed to run custom build command for `openssl-sys v0.9.92` HOT 1
- Implement checkpointing in the installer, to avoid restarting downloads from zero if they fail HOT 3
- Provide different rustup instalation options on https://rustup.rs/ for security conscious users and administrators HOT 1
- rustup fails to open non-existing windows registry path HOT 3
- Decide on a better strategy for release notes/changelogs HOT 3
- Simplify download and/or TLS backends HOT 1
- Rustup fails with os error 10054 on a new Windows 11 machine HOT 13
- ZZGIXIPV6
- `sh.rustup.rs` should only resolve to ipv4 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rustup.