We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b1fede commit 05a6c11Copy full SHA for 05a6c11
4 files changed
crate_universe/src/rendering.rs
@@ -367,6 +367,11 @@ impl Renderer {
367
.common_attrs
368
.rustc_env_files
369
.insert(":cargo_toml_env_vars".to_owned(), None);
370
+ if let Some(ref mut build_script_attrs) = &mut krate.build_script_attrs {
371
+ build_script_attrs
372
+ .rustc_env_files
373
+ .insert(":cargo_toml_env_vars".to_owned(), None);
374
+ }
375
}
376
377
let mut starlark = Vec::new();
examples/crate_universe/cargo_local/BUILD.bazel
@@ -23,5 +23,6 @@ build_test(
23
targets = [
24
# This target would fail to build if cargo_toml_env_vars didn't properly populate $CARGO_PKG_REPOSITORY.
25
"@crate_index_cargo_local//:autometrics",
26
+ "@crate_index_cargo_local//:aws-lc-rs",
27
],
28
)
0 commit comments