We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
rust-docs-json
1 parent 2ac0969 commit 491edbfCopy full SHA for 491edbf
src/bootstrap/src/core/build_steps/dist.rs
@@ -110,11 +110,18 @@ impl Step for JsonDocs {
110
));
111
112
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
+ #[cfg(not(feature = "bootstrap-self-test"))]
117
+ for f in ["alloc.json", "core.json", "std.json"] {
118
+ assert!(out.join(f).exists(), "rust-docs-json is missing `{f}`.");
119
+ }
120
121
let mut tarball = Tarball::new(builder, "rust-docs-json", &host.triple);
122
tarball.set_product_name("Rust Documentation In JSON Format");
123
tarball.is_preview(true);
- tarball.add_bulk_dir(builder.json_doc_out(host), dest);
124
+ tarball.add_bulk_dir(out, dest);
125
Some(tarball.generate())
126
}
127
0 commit comments