Skip to content

Commit

Permalink
Merge branch 'levsha/chore-replace-deprecated-exec_tools-by-tools' in…
Browse files Browse the repository at this point in the history
…to 'master'

chore: replace deprecated exec_tools by tools

exec_tools is deprecated and will be removed in bazel 7: bazelbuild/bazel#19132 

See merge request dfinity-lab/public/ic!16662
  • Loading branch information
levsha committed Dec 12, 2023
2 parents a9fc954 + ec59d5b commit bd69eb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bazel/canisters.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def rust_canister(name, service_file, **kwargs):
srcs = [name + ".raw", service_file],
outs = [name + ".opt.wasm"],
message = "Shrinking canister " + name,
exec_tools = ["@crate_index//:ic-wasm__ic-wasm"],
tools = ["@crate_index//:ic-wasm__ic-wasm"],
cmd_bash = """
$(location @crate_index//:ic-wasm__ic-wasm) $(location {input_wasm}) -o $@ shrink && \
$(location @crate_index//:ic-wasm__ic-wasm) $@ -o $@ metadata candid:service --visibility public --file $(location {service_file})
Expand Down Expand Up @@ -151,7 +151,7 @@ def inject_version_into_wasm(*, name, src_wasm, version_file = "//bazel:version.
],
outs = [name + ".wasm"],
message = "Injecting version into wasm.",
exec_tools = ["@crate_index//:ic-wasm__ic-wasm"],
tools = ["@crate_index//:ic-wasm__ic-wasm"],
cmd_bash = " ".join([
"$(location @crate_index//:ic-wasm__ic-wasm)",
"$(location %s)" % src_wasm, # Input file.
Expand Down

0 comments on commit bd69eb5

Please sign in to comment.