Support installing third-party tier-3 target support with rustup
@rami3l ya está trabajando en esto.
Desde el 9/12/2025.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Problem you are trying to solve
I'd like to be able to install a tier-3 toolchain using rustup rather than the current solution of unzipping a file into $(rustc --print sysroot).
Currently we manually build zipfiles of the libstd for riscv32imac-unknown-xous-elf using the stable compiler and install this into $(rustc --print sysroot)/lib/rustlib. This works well as it allows for users to have the standard library without needing a C compiler (which is otherwise required to build libm).
These zipfiles are installed by the xtask pattern as part of the normal build, but it would be nice to have it managed in a standard way.
Solution you'd like
rustup supports having alternate distribution servers. These are mostly used for pre-release testing, but it would be possible to use it for tier-3 targets. For example, we could build packages for xous with ./x.py dist --target riscv32imac-unknown-xous-elf build-manifest rust-std and then use the build-manifest program to generate a dist server root.
The issue is that target add refuses to consult the dist server for the riscv32imac-unknown-xous-elf target triple, so even though that target exists and is available on that server it won't go looking for it.
Notes
Initially I was going to open an issue identical to https://github.com/rust-lang/rustup/issues/4590 because it took me a while to discover what the problem was. However I see as of https://github.com/rust-lang/rustup/issues/4006 it at least doesn't refer to rustc --print target-list anymore.
- Lenguaje dominante
- Rust
- Estrellas
- 7k
- Forks
- 1.1k
- Merge medio
- 1 d 1 h
- PR fusionados (30 d)
- 46
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de rust-lang/rustup
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
document visual studio 2026 AbiertoE-easy enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
-
enhancement O-shell
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
-
enhancement
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
Todos los issues de rust-lang/rustup
Issues similares
-
Browser (wasm) relay client cannot connect to relays whose URL has a trailing-dot FQDN hostname Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
n0-computer/iroh#4550 ·
-
impl detach for native Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
paritytech/zombienet-sdk#591 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
farion1231/cc-switch#7638 · 1 comentario ·
-
onnx-ir re-exports ModelProto and GraphProto but not NodeProto, AttributeProto and AttributeType Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100