-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
44 lines (31 loc) · 1.46 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
.PHONY: clean
CMD?=check
# Use a Makefile since the repo contains crates that target different architectures so we need an alternative way to
# manage dependencies since Cargo currently can't manage dependencies for crates that depend on the binary output of
# other crates
clean:
cargo clean
build-deterministic-wasi-ctx:
cargo build --locked --package deterministic-wasi-ctx
build-deterministic-wasi-ctx-test-programs:
cargo build --locked --package deterministic-wasi-ctx-test-programs --target wasm32-wasi
crate-checks:
cargo install --locked --version ~0.12 cargo-deny && cargo deny check
deterministic-wasi-ctx:
cargo $(CMD) --package deterministic-wasi-ctx
deterministic-wasi-ctx-test-programs:
cargo $(CMD) --package deterministic-wasi-ctx-test-programs --target wasm32-wasi
fmt: fmt-deterministic-wasi-ctx fmt-deterministic-wasi-ctx-test-programs
fmt-deterministic-wasi-ctx:
cargo fmt --package deterministic-wasi-ctx -- --check \
&& cargo clippy --package deterministic-wasi-ctx -- -D warnings
fmt-deterministic-wasi-ctx-test-programs:
cargo fmt --package deterministic-wasi-ctx-test-programs -- --check \
&& cargo clippy --package deterministic-wasi-ctx-test-programs --target wasm32-wasi -- -D warnings
publish:
cargo publish --package deterministic-wasi-ctx
test: build-deterministic-wasi-ctx-test-programs
cargo test --locked --package deterministic-wasi-ctx
unused-dependencies:
cargo install cargo-udeps --locked --version ~0.1
cargo +nightly udeps