mirror of
https://github.com/macalimlim/ftw
synced 2024-11-10 12:34:11 +00:00
58 lines
1.1 KiB
Makefile
58 lines
1.1 KiB
Makefile
all:
|
|
cargo build
|
|
|
|
audit:
|
|
cargo audit
|
|
|
|
bloat:
|
|
cargo bloat --release -n 10
|
|
cargo bloat --release --crates
|
|
cargo bloat --release --filter '^__' -n 10
|
|
|
|
build:
|
|
cargo build
|
|
|
|
build-release: clean
|
|
cargo build --release
|
|
|
|
check:
|
|
cargo check
|
|
cargo clippy --release -- -Dclippy::all -Wclippy::pedantic
|
|
|
|
clean:
|
|
cargo clean
|
|
|
|
coverage:
|
|
rm -rf game*
|
|
cargo tarpaulin --all-features --ignore-tests -o Html -t 300 -- --test-threads=1 --skip=test_process_ftw_command_cross_build_ios_target --skip=test_ftw_cross_build_ios_target
|
|
${BROWSER} tarpaulin-report.html
|
|
|
|
doc: clean
|
|
cargo doc --no-deps --open -v
|
|
|
|
expand:
|
|
cargo expand --lib ftw_node_type
|
|
|
|
format:
|
|
cargo fmt --all -- --check
|
|
|
|
list-node-types:
|
|
godot3-headless --gdnative-generate-json-api api.json
|
|
cat api.json | jq '.[] | .name' | tr -d '"' | tr -d "_" | sort | uniq
|
|
rm api.json
|
|
|
|
outdated:
|
|
cargo outdated -R
|
|
|
|
publish: clean format check test
|
|
cargo package
|
|
cargo publish
|
|
|
|
shell:
|
|
nix-shell -p clang openssl pkg-config
|
|
|
|
test:
|
|
cargo test -- --test-threads=1 --skip=test_process_ftw_command_cross_build_ios_target --skip=test_ftw_cross_build_ios_target
|
|
|
|
udeps:
|
|
cargo udeps
|