-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
57 lines (43 loc) · 829 Bytes
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
clean:
cargo clean
rm -fr out
lint:
cargo fmt --all -- --check
cargo clippy --all-targets
fmt:
cargo fmt
audit-fix:
cargo audit fix
audit:
cargo audit
test-contract-integration: out/main.wasm
cargo test --test integration
test-contract-unit:
cargo test --lib
test-contract:\
test-contract-integration \
test-contract-unit
test:\
test-contract
qa:\
lint \
test
fix:\
audit-fix\
fmt
rustup:
rustup component add clippy
rustup component add rustfmt
rustup component add rust-src
rustup target add wasm32-unknown-unknown
cargo install cargo-audit --features=fix
check:
cargo check
out/main.wasm:
cargo build --target wasm32-unknown-unknown --release
@mkdir -p out
@cp target/wasm32-unknown-unknown/release/intro.wasm out/main.wasm
@du -b out/main.wasm
@sha256sum out/main.wasm
build:\
out/main.wasm