Skip to content
This repository has been archived by the owner on May 20, 2020. It is now read-only.

Flag: configuration flags #134

Open
steveklabnik opened this issue Aug 10, 2017 · 2 comments
Open

Flag: configuration flags #134

steveklabnik opened this issue Aug 10, 2017 · 2 comments

Comments

@steveklabnik
Copy link
Owner

This issue is part of #125

--cfg: passing configuration flags

Using this flag looks like this:

$ rustdoc src/lib.rs --cfg feature="foo"

This flag accepts the same values as rustc --cfg, and uses it to configure
compilation. The example above uses feature, but any of the cfg values
are acceptable.


Should we keep this flag or not?

@steveklabnik
Copy link
Owner Author

This seems pretty important.

@hjr3
Copy link
Contributor

hjr3 commented Dec 5, 2017

Per https://doc.rust-lang.org/book/first-edition/conditional-compilation.html, there does not seem to be a way to pass arbitrary configuration flags from cargo. We are limited to only toggling which features we want to be turned on.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants