Skip to content

Commit 217e9d9

Browse files
committedApr 2, 2023
doc: build with --no-deps
1 parent 16aaa09 commit 217e9d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎xtask/src/cargo.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ impl Cargo {
256256
document_private_items,
257257
} => {
258258
action = "doc";
259+
extra_args.push("--no-deps");
259260
if self.warnings_as_errors {
260261
cmd.env("RUSTDOCFLAGS", "-Dwarnings");
261262
}
@@ -367,7 +368,7 @@ mod tests {
367368
};
368369
assert_eq!(
369370
command_to_string(&cargo.command().unwrap()),
370-
"RUSTDOCFLAGS=-Dwarnings cargo doc --package uefi --package xtask --features global_allocator --document-private-items --open"
371+
"RUSTDOCFLAGS=-Dwarnings cargo doc --package uefi --package xtask --features global_allocator --no-deps --document-private-items --open"
371372
);
372373
}
373374
}

0 commit comments

Comments
 (0)