-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
35 lines (28 loc) · 1.58 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
BUILD_ENV := rust
.PHONY: build-wasm build-did
lint:
@cargo fmt
@cargo clippy --all-targets --all-features
fix:
@cargo clippy --fix --workspace --tests
test:
@cargo test --workspace -- --nocapture
# cargo install twiggy
twiggy:
twiggy top -n 12 target/wasm32-unknown-unknown/release/ic_panda_luckypool.wasm
# cargo install ic-wasm
build-wasm:
cargo build --release --target wasm32-unknown-unknown --package ic_dmsg_minter
cargo build --release --target wasm32-unknown-unknown --package ic_message
cargo build --release --target wasm32-unknown-unknown --package ic_message_channel
cargo build --release --target wasm32-unknown-unknown --package ic_message_profile
cargo build --release --target wasm32-unknown-unknown --package ic_name_identity
cargo build --release --target wasm32-unknown-unknown --package ic_panda_luckypool
# cargo install candid-extractor
build-did:
candid-extractor target/wasm32-unknown-unknown/release/ic_dmsg_minter.wasm > src/ic_dmsg_minter/ic_dmsg_minter.did
candid-extractor target/wasm32-unknown-unknown/release/ic_message.wasm > src/ic_message/ic_message.did
candid-extractor target/wasm32-unknown-unknown/release/ic_message_channel.wasm > src/ic_message_channel/ic_message_channel.did
candid-extractor target/wasm32-unknown-unknown/release/ic_message_profile.wasm > src/ic_message_profile/ic_message_profile.did
candid-extractor target/wasm32-unknown-unknown/release/ic_name_identity.wasm > src/ic_name_identity/ic_name_identity.did
candid-extractor target/wasm32-unknown-unknown/release/ic_panda_luckypool.wasm > src/ic_panda_luckypool/ic_panda_luckypool.did