Add global rustdoc flag support

オープン
#4,450 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
40/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
rust
領域
build-system

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
Starlark
スター
857
フォーク
701
平均マージ
4日 7時間
マージ済み PR(30日)
46

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

bazelbuild/rules_rust のほかの issue

bazelbuild/rules_rust の issue をすべて見る

似ている issue

Build System の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。