We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
library_search_path
Rustdoc
1 parent eea00ca commit 4057a7bCopy full SHA for 4057a7b
src/tools/run-make-support/src/rustdoc.rs
@@ -143,6 +143,14 @@ impl Rustdoc {
143
self
144
}
145
146
+ /// Add a directory to the library search path. It corresponds to the `-L`
147
+ /// rustdoc option.
148
+ pub fn library_search_path<P: AsRef<Path>>(&mut self, path: P) -> &mut Self {
149
+ self.cmd.arg("-L");
150
+ self.cmd.arg(path.as_ref());
151
+ self
152
+ }
153
+
154
#[track_caller]
155
pub fn run_fail_assert_exit_code(&mut self, code: i32) -> Output {
156
let caller_location = std::panic::Location::caller();
0 commit comments