Skip to content

Commit

Permalink
Add Azle implementation of Pub/Sub example
Browse files Browse the repository at this point in the history
  • Loading branch information
dansteren committed Oct 13, 2023
1 parent 42a9645 commit b24ae49
Show file tree
Hide file tree
Showing 12 changed files with 1,065 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pub-sub/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_two,pub-sub,motoko/perf.sh,rust/perf.sh)
$(call perf_three,pub-sub,motoko/perf.sh,rust/perf.sh,azle/perf.sh)
20 changes: 20 additions & 0 deletions pub-sub/azle/dfx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"canisters": {
"pub": {
"type": "custom",
"main": "src/pub.ts",
"candid": "src/pub.did",
"build": "npx azle pub",
"wasm": ".azle/pub/pub.wasm",
"gzip": false
},
"sub": {
"type": "custom",
"main": "src/sub.ts",
"candid": "src/sub.did",
"build": "npx azle sub",
"wasm": ".azle/sub/sub.wasm",
"gzip": false
}
}
}
Loading

0 comments on commit b24ae49

Please sign in to comment.