rust-analyzer tools: workspace-wide extra Bazel flags
Los mantenedores suelen responder en 3 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 38/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- rust
Línea de trabajo
Start by reading the rust-analyzer tool entry points discover_rust_project, gen_rust_project, and flycheck, which the issue says run bazel info and bazel build. Trace how their existing bazel_args are passed and how the proposed //tools/rust_analyzer:extra_bazel_args build setting could reach those calls. Done means workspace .bazelrc configuration supplies extra flags to every relevant Bazel invocation, with documentation and coverage for the tools.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
The rust-analyzer tools (discover_rust_project, gen_rust_project, flycheck) run bazel info and bazel build in the workspace, so they pick up the workspace .bazelrc. If that rc adds output groups or aspects to every build, for example clippy and other linters through --output_groups and --aspects, discovery builds them for every crate and gets much slower.
The tools already take bazel_args on their command line, but those have to be passed in each editor's config, by every developer. We'd like to set them once for the workspace.
What we run with is a repeatable string build setting, //tools/rust_analyzer:extra_bazel_args. It's read when the tools are built and added to every bazel info / bazel build they run, so a workspace sets it once in its .bazelrc:
common --@rules_rust//tools/rust_analyzer:extra_bazel_args=--config=ide
Is that something you'd take? If so I can send the PR, with docs. If you'd prefer another mechanism (an env var, or a file the tools read), I'm happy to do that instead.
- Lenguaje dominante
- Starlark
- Estrellas
- 857
- Forks
- 701
- Merge medio
- 4 d 7 h
- PR fusionados (30 d)
- 46
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin 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 bazelbuild/rules_rust
-
`rust_test(crate = ...)` does not stage the crate's transitive dynamic libraries into runfilesPosiblemente ocupada @Wito-1 la tomó hace 65 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
bazelbuild/rules_rust#4309 ·
Los mantenedores suelen responder en 3 días
-
Windows (no-symlink path): drain_runfiles_dir_windows deletes retained runfiles — inverted filename_suffixes_to_retain conditionPosiblemente ocupada @Mattbusel la tomó hace 17 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
bazelbuild/rules_rust#4266 ·
Los mantenedores suelen responder en 3 días
-
rust.toolchain(strip_level = ...) is silently ignoredPosiblemente ocupada @Mattbusel la tomó hace 17 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
bazelbuild/rules_rust#4223 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 90/100
bazelbuild/rules_rust#4152 · 1 reacción ·
Los mantenedores suelen responder en 3 días
-
awaiting-response
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
bazelbuild/rules_rust#3599 · 1 comentario ·
Los mantenedores suelen responder en 3 días
Todos los issues de bazelbuild/rules_rust
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
bazelbuild/apple_support#707 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
-
blocky: new version 0.38.0Abiertoout-of-date
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
CachyOS/CachyOS-PKGBUILDS#2232 ·
Los mantenedores suelen responder en 1 día
-
blast/large refactor risk/low spend-dem
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
chriskelly/MusicWall#87 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
neilotoole/sq#1503 ·
Los mantenedores suelen responder en 1 día