File tree 1 file changed +5
-0
lines changed
src/tools/build-manifest/src
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ impl PkgType {
38
38
}
39
39
}
40
40
41
+ /// The directory containing the `Cargo.toml` of this component inside the monorepo, to
42
+ /// retrieve the source code version. If `None` is returned Rust's version will be used.
41
43
fn rust_monorepo_path ( & self ) -> Option < & ' static str > {
42
44
match self {
43
45
PkgType :: Cargo => Some ( "src/tools/cargo" ) ,
@@ -53,6 +55,7 @@ impl PkgType {
53
55
}
54
56
}
55
57
58
+ /// First part of the tarball name.
56
59
fn tarball_component_name ( & self ) -> & str {
57
60
match self {
58
61
PkgType :: Rust => "rust" ,
@@ -68,6 +71,8 @@ impl PkgType {
68
71
}
69
72
}
70
73
74
+ /// Whether this package has the same version as Rust itself, or has its own `version` and
75
+ /// `git-commit-hash` files inside the tarball.
71
76
fn should_use_rust_version ( & self ) -> bool {
72
77
match self {
73
78
PkgType :: Cargo => false ,
You can’t perform that action at this time.
0 commit comments