Skip to content

Commit 513fc80

Browse files
committed
Package rust-docs-json into nightly components (take 3)
`dist` creates a `rust-docs-json.tar.xz` tarfile. But build-manifest expected it to be named `rust-docs-json-preview.tar.xz`. Change build-manifest to allow the name without the `-preview` suffix. This also adds `rust-docs-json` to the `rust` component. I'm not quite sure why it exists, but rustup uses it to determine which components are available.
1 parent cdb76db commit 513fc80

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

src/bootstrap/dist.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1365,6 +1365,7 @@ impl Step for Extended {
13651365
}
13661366

13671367
add_component!("rust-docs" => Docs { host: target });
1368+
add_component!("rust-json-docs" => JsonDocs { host: target });
13681369
add_component!("rust-demangler"=> RustDemangler { compiler, target });
13691370
add_component!("cargo" => Cargo { compiler, target });
13701371
add_component!("rustfmt" => Rustfmt { compiler, target });

src/tools/build-manifest/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ impl Builder {
437437
host_component("rustfmt-preview"),
438438
host_component("llvm-tools-preview"),
439439
host_component("rust-analysis"),
440-
host_component("rust-docs-json"),
440+
host_component("rust-docs-json-preview"),
441441
]);
442442

443443
extensions.extend(

src/tools/build-manifest/src/versions.rs

+4
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ pub(crate) enum PkgType {
2020
Rustfmt,
2121
LlvmTools,
2222
Miri,
23+
JsonDocs,
2324
Other(String),
2425
}
2526

@@ -36,6 +37,7 @@ impl PkgType {
3637
"rustfmt" | "rustfmt-preview" => PkgType::Rustfmt,
3738
"llvm-tools" | "llvm-tools-preview" => PkgType::LlvmTools,
3839
"miri" | "miri-preview" => PkgType::Miri,
40+
"rust-docs-json" | "rust-docs-json-preview" => PkgType::JsonDocs,
3941
other => PkgType::Other(other.into()),
4042
}
4143
}
@@ -53,6 +55,7 @@ impl PkgType {
5355
PkgType::Rustfmt => "rustfmt",
5456
PkgType::LlvmTools => "llvm-tools",
5557
PkgType::Miri => "miri",
58+
PkgType::JsonDocs => "rust-docs-json",
5659
PkgType::Other(component) => component,
5760
}
5861
}
@@ -72,6 +75,7 @@ impl PkgType {
7275
PkgType::Rust => true,
7376
PkgType::RustSrc => true,
7477
PkgType::Rustc => true,
78+
PkgType::JsonDocs => true,
7579
PkgType::Other(_) => true,
7680
}
7781
}

0 commit comments

Comments
 (0)