rustdoc icon indicating copy to clipboard operation
rustdoc copied to clipboard

Flag: extern

Open steveklabnik opened this issue 7 years ago • 3 comments

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

--extern: specify a dependency's location

Using this flag looks like this:

$ rustdoc src/lib.rs --extern lazy-static=/path/to/lazy-static

Similar to --library-path, --extern is about specifying the location of a dependency. --library-path provides directories to search in, --extern instead lets you specify exactly which dependency is located where.


Should we keep this flag or not?

steveklabnik avatar Aug 10 '17 17:08 steveklabnik

This is very important!

steveklabnik avatar Aug 10 '17 17:08 steveklabnik

I don't think this is needed if we depend on cargo. cc #155

euclio avatar Aug 25 '17 20:08 euclio

That's true; I was thinking in the "cargo calls rustdoc" mode, not "rustdoc calls cargo"

steveklabnik avatar Aug 25 '17 21:08 steveklabnik