Skip to content

Commit

Permalink
empty universal canister
Browse files Browse the repository at this point in the history
  • Loading branch information
adambratschikaye committed Nov 21, 2024
1 parent c906569 commit cbf6fd0
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions rs/universal_canister/impl/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,29 @@ rust_library(
deps = LIB_DEPENDENCIES,
)

rust_canister(
# rust_canister(
# name = "universal_canister",
# srcs = glob(["src/*.rs"]),
# aliases = ALIASES,
# crate_features = ["heartbeat"],
# proc_macro_deps = MACRO_DEPENDENCIES,
# service_file = ":interface.did",
# deps = LIB_DEPENDENCIES + DEPENDENCIES,
# )


genrule(
name = "universal_canister",
srcs = glob(["src/*.rs"]),
aliases = ALIASES,
crate_features = ["heartbeat"],
proc_macro_deps = MACRO_DEPENDENCIES,
service_file = ":interface.did",
deps = LIB_DEPENDENCIES + DEPENDENCIES,
srcs = ["empty.wasm.gz"],
outs = ["universal_canister.wasm.gz"],
visibility = ["//visibility:public"],
testonly = False,
message = "Copying universal canister",
tools = [],
cmd_bash = " && ".join([
"cp {empty_wasm} $@",
])
.format(empty_wasm = "$(location empty.wasm.gz)"),
)

rust_canister(
Expand Down

0 comments on commit cbf6fd0

Please sign in to comment.