Cargo: Expose unstable rustdoc options?

Created on 25 Sep 2018  路  2Comments  路  Source: rust-lang/cargo

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.

Most helpful comment

Additional arguments can be passed with RUSTDOCFLAGS environment variable.

RUSTDOCFLAGS="-Z unstable-options --resource-suffix xxx" cargo +nightly doc --all --no-deps

All 2 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rodoufu picture rodoufu  路  3Comments

fprijate picture fprijate  路  3Comments

japaric picture japaric  路  3Comments

rask picture rask  路  3Comments

nox picture nox  路  3Comments