Skip to content

Commit b64260e

Browse files
committed
assert expected json files in rust-docs-json component
Signed-off-by: onur-ozkan <[email protected]>
1 parent 2ac0969 commit b64260e

File tree

1 file changed

+7
-1
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+7
-1
lines changed

src/bootstrap/src/core/build_steps/dist.rs

+7-1
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,17 @@ impl Step for JsonDocs {
110110
));
111111

112112
let dest = "share/doc/rust/json";
113+
let out = builder.json_doc_out(host);
114+
115+
// Make sure these are present in the component.
116+
for f in ["alloc.json", "core.json", "std.json"] {
117+
assert!(out.join(f).exists(), "rust-docs-json is missing `{f}`.");
118+
}
113119

114120
let mut tarball = Tarball::new(builder, "rust-docs-json", &host.triple);
115121
tarball.set_product_name("Rust Documentation In JSON Format");
116122
tarball.is_preview(true);
117-
tarball.add_bulk_dir(builder.json_doc_out(host), dest);
123+
tarball.add_bulk_dir(out, dest);
118124
Some(tarball.generate())
119125
}
120126
}

0 commit comments

Comments
 (0)