rustup: llvm-tools: please package `llvm-extract`
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 42/100
Línea de trabajo
Start by reading the llvm-tools component packaging and distribution configuration, then trace how its bundled LLVM utilities are selected and built. The issue asks to include upstream llvm-extract in that component; done means users receive a version-matched tool there. The issue names no specific files or tests, so first locate the component's packaging entry points and existing tool list.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
It is sometimes useful to inspect how particular Rust code looks after compilation.
However, there is a caveat: usually, one wants to focus on some specific function,
and not just view the entire resulting .s/.ll with all the functions that happen to be there.
There's https://crates.io/crates/cargo-show-asm that provides a nice user interface for that,
but currently this filtering is entirely textual.
While this works fine for visual observation,
the result is non-actionable, in so that it is not self-contained,
especially for LLVM IR (which is what this issue is specifically about),
since it contains only a single raw function,
with 'dangling' references to other functions, and attributes.
This snippet can not be copied as-is and e.g. put into godbolt.
There's llvm-extract upstream tool that solves this problem, takes an LLVM IR module,
and produces a valid LLVM IR with other functions definitions turned into declarations.
Requiring that tool to be user-provided is not optimal, because it is not hermetic and
there might be LLVM IR version mismatch between it and the rust-internal LLVM version.
There's a potential alternatice approach to use rustc-dev component + rustc_llvm crate,
but that would be nightly-only and again might break silently once LLVM version is changed.
(And i'm not sure if needed functionality is even exposed there).
Third option would be to use llvm-sys. Same concerns about version mismatch.
And it's a very heavy dependency...
So it would be quite convient if that tool could just be provided in llvm-tools component.
Thank you!
Refs. https://github.com/rust-lang/rust/issues/85658
Refs. https://github.com/pacak/cargo-show-asm/issues/509
- Lenguaje dominante
- Rust
- Estrellas
- 123k
- Forks
- 16.6k
- Merge medio
- 2 d 17 h
- PR fusionados (30 d)
- 532
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la 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/rust
-
strictly_dominates missing a `=`AbiertoC-bug needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
rust-lang/rust#166722 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
A-attributes relnotes relnotes-needs-review relnotes-tracking-issue T-compiler T-lang
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
A-run-make C-bug T-bootstrap
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día
-
Tracking issue for release notes of #161531: Remove `T: Send + Sync` bound from `Arc::downcast`Abiertorelnotes relnotes-tracking-issue T-libs
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
A-str A-Unicode relnotes relnotes-tracking-issue T-libs
Dificultad 1/5 Menos de una hora Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día
Todos los issues de rust-lang/rust
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
tamatebako/tebako#1155 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
swc-project/swc-next-issues#1148 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
registrystack/registry-stack#2828 ·
Los mantenedores suelen responder en 1 día
-
agent:triaged arch-audit bug priority:p1
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
SocketDev/socket-patch#2364 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día