rustdoc icon indicating copy to clipboard operation
rustdoc copied to clipboard

Flag: library path

Open steveklabnik opened this issue 8 years ago • 2 comments

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

-L/--library-path:

Using this flag looks like this:

$ rustdoc src/lib.rs -L target/debug/deps
$ rustdoc src/lib.rs --library-path target/debug/deps

If your crate has dependencies, rustdoc needs to know where to find them. Passing --library-path gives rustdoc a list of places to look for these dependencies.

This flag takes any number of directories as its argument, and will use all of them when searching.


Should we keep this flag or not?

steveklabnik avatar Aug 10 '17 17:08 steveklabnik

This seems pretty important.

steveklabnik avatar Aug 10 '17 17:08 steveklabnik

Similar to https://github.com/steveklabnik/rustdoc/issues/135#issuecomment-325030629 I am not sure if --library-path is needed. cargo supports configuring library paths through build.rs, which rustdoc honors when generating the analysis.

hjr3 avatar Dec 05 '17 01:12 hjr3