-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
rustdoc json output on stdout ? #127165
Copy link
Copy link
Closed
Labels
A-rustdoc-jsonArea: Rustdoc JSON backendArea: Rustdoc JSON backendC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-rustdoc-jsonArea: Rustdoc JSON backendArea: Rustdoc JSON backendC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Hi.
As of today, it seems that there is no out of the box way to get rustdoc json output on stdout. I see no way to augment the
rustdoc src/lib.rs -Zunstable-options --output-format jsoninvocation to handle output on stdout.This is a shame as I'd like to perform rustdoc -> some jq or better for preprocessing -> tera templating -> makeinfo for texinfo generation, all of that through pipes.
As of today, the only piece of code that doesn't support piping in the above is rustdoc.
Being kind of a dinosaur, I like to get things done the old unixish way, with one tool doing something and only that, and having pipe support would allow to generate my texinfo manual from rustdoc json output without having to go jumping through hoops using temporary files.