forked from MystenLabs/sui-rust-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
56 lines (43 loc) · 1.16 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Set the default target of this Makefile
.PHONY: all
all:: ci
.PHONY: check-features
check-features:
$(MAKE) -C crates/sui-sdk-types check-features
$(MAKE) -C crates/sui-crypto check-features
.PHONY: check-fmt
check-fmt:
cargo fmt -- --config imports_granularity=Item --check
.PHONY: fmt
fmt:
cargo fmt -- --config imports_granularity=Item
.PHONY: clippy
clippy:
cargo clippy --all-features --all-targets
.PHONY: test
test:
cargo nextest run --all-features -p sui-sdk-types -p sui-crypto
cargo test --doc
.PHONY: test-with-localnet
test-with-localnet:
cargo nextest run -p sui-graphql-client
.PHONY: wasm
wasm:
$(MAKE) -C crates/sui-sdk-types wasm
$(MAKE) -C crates/sui-crypto wasm
.PHONY: doc
doc:
RUSTDOCFLAGS="--cfg=doc_cfg -Zunstable-options --generate-link-to-definition" RUSTC_BOOTSTRAP=1 cargo doc --all-features --no-deps
.PHONY: doc-open
doc-open:
RUSTDOCFLAGS="--cfg=doc_cfg -Zunstable-options --generate-link-to-definition" RUSTC_BOOTSTRAP=1 cargo doc --all-features --no-deps --open
.PHONY: ci
ci: check-features check-fmt test wasm
.PHONY: ci-full
ci-full: ci doc
.PHONY: clean
clean:
cargo clean
.PHONY: clean-all
clean-all: clean
git clean -dX