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 0e93740Copy full SHA for 0e93740
src/tools/run-make-support/src/rustdoc.rs
@@ -143,6 +143,13 @@ impl Rustdoc {
143
self
144
}
145
146
+ /// Add a directory to the library search path.
147
+ pub fn library_search_path<P: AsRef<Path>>(&mut self, path: P) -> &mut Self {
148
+ self.cmd.arg("-L");
149
+ self.cmd.arg(path.as_ref());
150
+ self
151
+ }
152
+
153
#[track_caller]
154
pub fn run_fail_assert_exit_code(&mut self, code: i32) -> Output {
155
let caller_location = std::panic::Location::caller();
0 commit comments