steveklabnik/rustdoc

Flag: configuration flags

Aberta

#134 aberto em 10 de ago. de 2017

 (2 comentários) (0 reação) (0 responsável) (22 forks)github user discovery
E-Mediumbackendhelp wantedquestion

Métricas do repositório

Stars
 (104 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

This issue is part of https://github.com/steveklabnik/rustdoc/issues/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?

Guia do colaborador