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 b64260eCopy full SHA for b64260e
src/bootstrap/src/core/build_steps/dist.rs
@@ -110,11 +110,17 @@ 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
+ for f in ["alloc.json", "core.json", "std.json"] {
117
+ assert!(out.join(f).exists(), "rust-docs-json is missing `{f}`.");
118
+ }
119
120
let mut tarball = Tarball::new(builder, "rust-docs-json", &host.triple);
121
tarball.set_product_name("Rust Documentation In JSON Format");
122
tarball.is_preview(true);
- tarball.add_bulk_dir(builder.json_doc_out(host), dest);
123
+ tarball.add_bulk_dir(out, dest);
124
Some(tarball.generate())
125
}
126
0 commit comments