Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Azle implementation of SHA example #8

Open
wants to merge 1 commit into
base: 3_collections
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions crypto/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
include ../*.mk

.PHONY: all motoko rust build perf
.PHONY: all motoko rust azle build perf
all: build perf

motoko:
Expand All @@ -9,7 +9,10 @@ motoko:
rust:
$(call build,rust)

build: motoko rust
azle:
$(call build,azle)

build: motoko rust azle

perf:
$(call perf,crypto,perf.sh)
12 changes: 12 additions & 0 deletions crypto/azle/dfx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"canisters": {
"sha": {
"type": "custom",
"main": "src/sha.ts",
"candid": "sha.did",
"build": "npx azle sha",
"wasm": ".azle/sha/sha.wasm",
"gzip": false
}
}
}
Loading