Skip to content

Commit

Permalink
Add Azle implementation of hashmap
Browse files Browse the repository at this point in the history
  • Loading branch information
dansteren committed Oct 12, 2023
1 parent 08b9574 commit f1c5713
Show file tree
Hide file tree
Showing 8 changed files with 1,050 additions and 2 deletions.
7 changes: 5 additions & 2 deletions collections/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,collections,perf.sh)
12 changes: 12 additions & 0 deletions collections/azle/dfx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"canisters": {
"hashmap": {
"type": "custom",
"main": "src/hashmap.ts",
"candid": "src/hashmap.did",
"build": "npx azle hashmap",
"wasm": ".azle/hashmap/hashmap.wasm",
"gzip": false
}
}
}
Loading

0 comments on commit f1c5713

Please sign in to comment.