Open sitaktif opened 3 years ago
actix_web needs this to exclude the tests/test space.binary
from the default glob for data
Encountered a similar issue where jemalloc-sys 0.3.2
's build script expect cargo's NUM_JOBS
.
Ended up working around the issue by setting the env var in bazelrc
build --action_env=NUM_JOBS=<num_jobs>
It would be preferable to be able to set build_script_env
for specified crates, similar to additional_env
.
Sometimes, crate build scripts need additional environment variables or addition build/data dependencies to run correctly in a given bazel repository.
For example, to use a custom-built openssl, one might want to pass the following to the
cargo_build_script
rule of a crate:We would need a way for the user to express these build script requirements, probably in the
Cargo.toml
file.