I am currently on a new documentation generator (something like docs.rs) for rust but I am having issues with passing unstable options to cargo doc.
The invocation command is the following:
cargo doc -vv --all --no-deps -Z unstable-options --resource-suffix some-suffix
Error:
error: Found argument '--resource-suffix' which wasn't expected, or isn't valid in this context
Before I take a different route which is much more complex (parsing and rewriting the html with the patched hrefs attributes), I would like to know if it's possible to expose that particular flag to cargo.
Additional arguments can be passed with RUSTDOCFLAGS environment variable.
RUSTDOCFLAGS="-Z unstable-options --resource-suffix xxx" cargo +nightly doc --all --no-deps
@ehuss I couldn鈥檛 find that by googling, gdi. Thank You.
Most helpful comment
Additional arguments can be passed with
RUSTDOCFLAGSenvironment variable.RUSTDOCFLAGS="-Z unstable-options --resource-suffix xxx" cargo +nightly doc --all --no-deps