Open
Open
Feature Request
Description
Right now it seems impossible to output the rustdoc JSON output to stdout when it's invoked via cargo, it can only output to a file.
E.g. this produces a JSON file:
cargo +nightly rustdoc -- --output-format json -Z unstable-options
One would expect that this would work to output to stdout
cargo +nightly rustdoc -- --output-format json -Z unstable-options -o -
but unfortunately it doesn't. Instead it gives an error:
error: Option 'out-dir' given more than once
It would be nice if it was possible to output the whole rustdoc JSON output for a crate and all its deps to stdout instead of to a file 🙂