Repository navigation
Add - (stdin) support in rustdoc - #124611
Conversation
commented
May 2, 2024
commented
May 3, 2024
|
Ofc, technically technically technically speaking this constitutes a breaking change but that's only theoretical in nature. On *nix systems, ppl can name their files # Create a file called `-`:
printf 'pub fn omg() {}' > -
# Yes, we've just created a file called `-`.
# On the command-line, run the following to see the output:
< -
# Now document our wonderful crate:
rustdoc - --crate-name dash
# Docs were generated:
"$BROWSER" ./doc/dash/index.html |
|
Hey there @rust-lang/rustdoc, I propose merging this1 after an FCP. This PR updates rustdoc's CLI to recognize the INPUT argument Motivation:
Maintenance Cost: Very low (next to zero) Potential Concerns:
Footnotes
|
commented
May 4, 2024
|
I think we should land this, and I'm surprised this wasn't previously supported |
commented
May 4, 2024
|
I'm also surprised it's not already there. Let's start the FCP then. @rfcbot fcp merge |
|
Team member @GuillaumeGomez has proposed to merge this. The next step is review by the rest of the tagged team members: No concerns currently listed. Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
commented
May 8, 2024
|
🔔 This is now entering its final comment period, as per the review above. 🔔 |
commented
May 17, 2024
|
re alternatives: If someone is actually putting source code in a file named |
commented
May 18, 2024
|
The final comment period, with a disposition to merge, as per the review above, is now complete. As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed. This will be merged soon. |
commented
May 18, 2024
|
Thanks everyone! @bors r+ |
commented
May 18, 2024
commented
May 18, 2024
commented
May 18, 2024
|
☀️ Test successful - checks-actions |
commented
May 18, 2024
|
Finished benchmarking commit (bb97203): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)This benchmark run did not return any relevant results for this metric. CyclesResults (primary -4.1%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 667.741s -> 668.952s (0.18%) |
commented
Jul 25, 2024
|
Thanks for this :) |
This PR adds support for the special
-input which threats the input as coming from stdin instead of being a filepath.Doing this also makes
rustdocconsistent withrustcandeveryother tools. Full motivation.Fixes #123671
r? @fmease