forked from console-rs/console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (25 loc) · 584 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
all: test
.PHONY: all
format:
@rustup component add rustfmt 2> /dev/null
@cargo fmt --all
.PHONY: format
format-check:
@rustup component add rustfmt 2> /dev/null
@cargo fmt --all -- --check
.PHONY: format-check
lint:
@rustup component add clippy 2> /dev/null
@cargo clippy
.PHONY: lint
update-readme:
@cargo readme > README.md
.PHONY: update-readme
test:
@cargo test
@cargo test --no-default-features
@rustup target add wasm32-unknown-unknown
@cargo check --target wasm32-unknown-unknown
@rustup target add wasm32-wasi
@cargo check --target wasm32-wasi
.PHONY: test