You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix cargo_bootstrap_repository not triggering on changes to srcs (#959)
* Consume srcs of `cargo_bootstrap_repository` so changes trigger the rule
* Regenerate documentation
* Improve logging
* Update cargo/cargo_bootstrap.bzl
Co-authored-by: Daniel Wagner-Hall <dawagner@gmail.com>
* Use formatted fail message over print
Co-authored-by: Daniel Wagner-Hall <dawagner@gmail.com>
Copy file name to clipboardExpand all lines: docs/cargo.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ A rule for bootstrapping a Rust binary using [Cargo](https://doc.rust-lang.org/c
31
31
| <aid="cargo_bootstrap_repository-iso_date"></a>iso_date | The iso_date of cargo binary the resolver should use. Note: This can only be set if <code>version</code> is <code>beta</code> or <code>nightly</code> | String | optional | "" |
32
32
| <aid="cargo_bootstrap_repository-repo_mapping"></a>repo_mapping | A dictionary from local repository name to global repository name. This allows controls over workspace dependency resolution for dependencies of this repository.<p>For example, an entry <code>"@foo": "@bar"</code> declares that, for any time this repository depends on <code>@foo</code> (such as a dependency on <code>@foo//some:target</code>, it should actually resolve that dependency within globally-declared <code>@bar</code> (<code>@bar//some:target</code>). | <ahref="https://bazel.build/docs/skylark/lib/dict.html">Dictionary: String -> String</a> | required ||
33
33
| <aid="cargo_bootstrap_repository-rust_toolchain_repository_template"></a>rust_toolchain_repository_template | The template to use for finding the host <code>rust_toolchain</code> repository. <code>{version}</code> (eg. '1.53.0'), <code>{triple}</code> (eg. 'x86_64-unknown-linux-gnu'), <code>{system}</code> (eg. 'darwin'), and <code>{arch}</code> (eg. 'aarch64') will be replaced in the string if present. | String | optional | "rust_{system}_{arch}" |
34
-
| <aid="cargo_bootstrap_repository-srcs"></a>srcs |Souces to crate to build. | <ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a> |required||
34
+
| <aid="cargo_bootstrap_repository-srcs"></a>srcs |Souce files of the crate to build. Passing source files here can be used to trigger rebuilds when changes are made | <ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a> |optional|[]|
35
35
| <aid="cargo_bootstrap_repository-version"></a>version | The version of cargo the resolver should use | String | optional | "1.55.0" |
Copy file name to clipboardExpand all lines: docs/flatten.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -92,7 +92,7 @@ A rule for bootstrapping a Rust binary using [Cargo](https://doc.rust-lang.org/c
92
92
| <aid="cargo_bootstrap_repository-iso_date"></a>iso_date | The iso_date of cargo binary the resolver should use. Note: This can only be set if <code>version</code> is <code>beta</code> or <code>nightly</code> | String | optional | "" |
93
93
| <aid="cargo_bootstrap_repository-repo_mapping"></a>repo_mapping | A dictionary from local repository name to global repository name. This allows controls over workspace dependency resolution for dependencies of this repository.<p>For example, an entry <code>"@foo": "@bar"</code> declares that, for any time this repository depends on <code>@foo</code> (such as a dependency on <code>@foo//some:target</code>, it should actually resolve that dependency within globally-declared <code>@bar</code> (<code>@bar//some:target</code>). | <ahref="https://bazel.build/docs/skylark/lib/dict.html">Dictionary: String -> String</a> | required ||
94
94
| <aid="cargo_bootstrap_repository-rust_toolchain_repository_template"></a>rust_toolchain_repository_template | The template to use for finding the host <code>rust_toolchain</code> repository. <code>{version}</code> (eg. '1.53.0'), <code>{triple}</code> (eg. 'x86_64-unknown-linux-gnu'), <code>{system}</code> (eg. 'darwin'), and <code>{arch}</code> (eg. 'aarch64') will be replaced in the string if present. | String | optional | "rust_{system}_{arch}" |
95
-
| <aid="cargo_bootstrap_repository-srcs"></a>srcs |Souces to crate to build. | <ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a> |required||
95
+
| <aid="cargo_bootstrap_repository-srcs"></a>srcs |Souce files of the crate to build. Passing source files here can be used to trigger rebuilds when changes are made | <ahref="https://bazel.build/docs/build-ref.html#labels">List of labels</a> |optional|[]|
96
96
| <aid="cargo_bootstrap_repository-version"></a>version | The version of cargo the resolver should use | String | optional | "1.55.0" |
0 commit comments