steveklabnik/rustdoc

Flag: crate name

Aperta

#132 aperta il 10 ago 2017

 (2 commenti) (0 reazioni) (0 assegnatari) (22 fork)github user discovery
E-Mediumbackendhelp wantedquestion

Metriche repository

Star
 (104 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

This issue is part of https://github.com/steveklabnik/rustdoc/issues/125

--crate-name: controlling the name of the crate

Using this flag looks like this:

$ rustdoc src/lib.rs --crate-name mycrate

By default, rustodc assumes that the name of your crate is the same name as the .rs file. --crate-name lets you override this assumption with whatever name you choose.


Should we keep this flag or not?

Guida contributor