-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (33 loc) · 780 Bytes
/
Makefile
File metadata and controls
40 lines (33 loc) · 780 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
TARGET_DIR := ./target
FUZZ_DIR := ./fuzz
.PHONY: build
build: build_bin docs
.PHONY: build_bin
build_bin:
cargo build -p sectxtlib
cargo build -p sectxt
.PHONY: docs
docs:
cargo doc -p sectxtlib
.PHONY: test
test:
cargo fmt -p sectxtlib --check
cargo fmt -p sectxt --check
cargo clippy -p sectxtlib --all-features -- -D warnings
cargo clippy -p sectxt --all-features -- -D warnings
cargo test
.PHONY: setup
setup:
rustup update
rustup component add clippy
rustup component add rustfmt
rustup show
cargo install cargo-afl
.PHONY: publish
publish:
cargo publish -p sectxtlib
cargo publish -p sectxt
.PHONY: fuzz
fuzz:
cargo afl build -p sectxtfuzz
AFL_SKIP_CPUFREQ=1 cargo afl fuzz -i $(FUZZ_DIR)/_examples -o $(FUZZ_DIR)/afl $(TARGET_DIR)/debug/sectxtfuzz