2021-04-03 06:10:53 +00:00
|
|
|
all:
|
|
|
|
cargo build
|
|
|
|
|
2021-03-26 23:25:45 +00:00
|
|
|
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
|
|
|
|
|
2021-04-02 10:34:09 +00:00
|
|
|
coverage:
|
2021-07-29 13:02:26 +00:00
|
|
|
rm -rf game*
|
2023-10-19 21:10:55 +00:00
|
|
|
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
|
2021-04-02 10:34:09 +00:00
|
|
|
${BROWSER} tarpaulin-report.html
|
|
|
|
|
2021-03-26 23:25:45 +00:00
|
|
|
doc: clean
|
|
|
|
cargo doc --no-deps --open -v
|
|
|
|
|
|
|
|
expand:
|
2021-03-27 00:16:00 +00:00
|
|
|
cargo expand --lib ftw_node_type
|
2021-03-26 23:25:45 +00:00
|
|
|
|
|
|
|
format:
|
|
|
|
cargo fmt --all -- --check
|
|
|
|
|
|
|
|
list-node-types:
|
2023-10-20 05:47:01 +00:00
|
|
|
godot3-headless --gdnative-generate-json-api api.json
|
2021-06-04 10:11:29 +00:00
|
|
|
cat api.json | jq '.[] | .name' | tr -d '"' | tr -d "_" | sort | uniq
|
2021-03-26 23:25:45 +00:00
|
|
|
rm api.json
|
|
|
|
|
|
|
|
outdated:
|
|
|
|
cargo outdated -R
|
|
|
|
|
|
|
|
publish: clean format check test
|
|
|
|
cargo package
|
|
|
|
cargo publish
|
|
|
|
|
|
|
|
shell:
|
2023-10-19 21:13:50 +00:00
|
|
|
nix-shell -p libclang openssl pkg-config
|
2021-03-26 23:25:45 +00:00
|
|
|
|
|
|
|
test:
|
2023-10-19 21:10:55 +00:00
|
|
|
cargo test -- --test-threads=1 --skip=test_process_ftw_command_cross_build_ios_target --skip=test_ftw_cross_build_ios_target
|
2021-03-27 00:16:00 +00:00
|
|
|
|
|
|
|
udeps:
|
|
|
|
cargo udeps
|