Skip to content

Commit f1c5713

Browse files
committed
Add Azle implementation of hashmap
1 parent 08b9574 commit f1c5713

File tree

8 files changed

+1050
-2
lines changed

8 files changed

+1050
-2
lines changed

collections/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
include ../*.mk
22

3-
.PHONY: all motoko rust build perf
3+
.PHONY: all motoko rust azle build perf
44
all: build perf
55

66
motoko:
@@ -9,7 +9,10 @@ motoko:
99
rust:
1010
$(call build,rust)
1111

12-
build: motoko rust
12+
azle:
13+
$(call build,azle)
14+
15+
build: motoko rust azle
1316

1417
perf:
1518
$(call perf,collections,perf.sh)

collections/azle/dfx.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"canisters": {
3+
"hashmap": {
4+
"type": "custom",
5+
"main": "src/hashmap.ts",
6+
"candid": "src/hashmap.did",
7+
"build": "npx azle hashmap",
8+
"wasm": ".azle/hashmap/hashmap.wasm",
9+
"gzip": false
10+
}
11+
}
12+
}

0 commit comments

Comments
 (0)