Add global rustdoc flag support

Aperta
#4,450 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
40/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
build-system

Direzione di ricerca

Start by finding how the existing extra_rustc_flag and clippy_flag settings are declared and threaded through the toolchain in rust/private/, since the new rustdoc_flag should mirror them. Then follow how rustdoc actions are constructed in rust/private/rustdoc.bzl (and the utils it calls) to see where flags are appended, and add the global flag at the same point. Done means one global setting reaches every rustdoc build, with tests alongside the existing flag tests.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

needs-triage

Is your feature request related to a problem? Please describe.
I want to be able to set --deny=rustdoc::private_intra_doc_links across all my rustdoc builds in the same way as extra_rustc_flag and clippy_flag.

Describe the solution you'd like
rustdoc_flag option allowing for setting flags for all rustdoc builds

Describe alternatives you've considered
Doing rustdoc_flags for every separate build. It's annoying and hard to keep them all in sync

Lingua principale
Starlark
Stelle
857
Fork
701
Merge medio
4g 7h
PR unite (30g)
46

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di bazelbuild/rules_rust

Tutte le issue di bazelbuild/rules_rust

Issue simili

Altre issue su Build System

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.