Skip to content

Commit b24ae49

Browse files
committed
Add Azle implementation of Pub/Sub example
1 parent 42a9645 commit b24ae49

File tree

12 files changed

+1065
-3
lines changed

12 files changed

+1065
-3
lines changed

pub-sub/Makefile

Lines changed: 6 additions & 3 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:
15-
$(call perf_two,pub-sub,motoko/perf.sh,rust/perf.sh)
18+
$(call perf_three,pub-sub,motoko/perf.sh,rust/perf.sh,azle/perf.sh)

pub-sub/azle/dfx.json

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

0 commit comments

Comments
 (0)