-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (18 loc) · 795 Bytes
/
Makefile
File metadata and controls
24 lines (18 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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 ic-wasm
build-wasm:
@cargo build --release --target wasm32-unknown-unknown -p ic_object_store_canister -p ic_oss_bucket -p ic_oss_cluster
# cargo install candid-extractor
build-did:
candid-extractor target/wasm32-unknown-unknown/release/ic_object_store_canister.wasm > src/ic_object_store_canister/ic_object_store_canister.did
candid-extractor target/wasm32-unknown-unknown/release/ic_oss_bucket.wasm > src/ic_oss_bucket/ic_oss_bucket.did
candid-extractor target/wasm32-unknown-unknown/release/ic_oss_cluster.wasm > src/ic_oss_cluster/ic_oss_cluster.did
dfx generate