Skip to content

Commit

Permalink
Update deps (#929)
Browse files Browse the repository at this point in the history
  • Loading branch information
illicitonion committed Sep 10, 2021
1 parent 31dbabd commit 20cec2e
Show file tree
Hide file tree
Showing 25 changed files with 1,308 additions and 221 deletions.
9 changes: 6 additions & 3 deletions cargo/cargo_bootstrap.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@ def _cargo_bootstrap_repository_impl(repository_ctx):

binary_name = repository_ctx.attr.binary or repository_ctx.name

environment = _collect_environ(repository_ctx, host_triple.triple)
# In addition to platform specific environment variables, a common set (indicated by `*`) will always
# be gathered.
environment = dict(_collect_environ(repository_ctx, "*").items() + _collect_environ(repository_ctx, host_triple.triple).items())

built_binary = cargo_bootstrap(
repository_ctx,
Expand Down Expand Up @@ -198,14 +200,15 @@ cargo_bootstrap_repository = repository_rule(
"env": attr.string_dict(
doc = (
"A mapping of platform triple to a set of environment variables. See " +
"[cargo_env](#cargo_env) for usage details."
"[cargo_env](#cargo_env) for usage details. Additionally, the platform triple `*` applies to all platforms."
),
),
"env_label": attr.string_dict(
doc = (
"A mapping of platform triple to a set of environment variables. This " +
"attribute differs from `env` in that all variables passed here must be " +
"fully qualified labels of files. See [cargo_env](#cargo_env) for usage details."
"fully qualified labels of files. See [cargo_env](#cargo_env) for usage details. " +
"Additionally, the platform triple `*` applies to all platforms."
),
),
"iso_date": attr.string(
Expand Down
Loading

0 comments on commit 20cec2e

Please sign in to comment.