Files
georm/justfile
T

53 lines
1.0 KiB
Makefile
Raw Normal View History

2025-01-26 14:00:27 +01:00
default: lint
clean:
cargo clean
2025-01-26 14:00:27 +01:00
# Runs the whole workspace (examples included) against the default
# "postgres" feature.
test: test-postgres
test-postgres:
cargo test --all-targets --all
2025-01-26 14:00:27 +01:00
# Scoped to -p georm: examples/postgres/* depends on georm's default
# ("postgres") feature via Cargo feature unification, so it must stay out of
# a --no-default-features build rather than be dragged into it.
test-sqlite:
cargo test -p georm --no-default-features --features sqlite --all-targets
2025-01-26 14:00:27 +01:00
lint:
cargo clippy --all-targets
lint-sqlite:
cargo clippy -p georm -p georm-macros --no-default-features --features sqlite --all-targets
2025-01-26 14:00:27 +01:00
audit:
cargo deny check all
migrate: migrate-postgres
migrate-postgres:
2025-01-31 23:09:40 +01:00
cargo sqlx migrate run
migrate-sqlite:
cargo sqlx migrate run --source migrations/sqlite
build:
cargo build
2025-01-26 14:00:27 +01:00
build-release:
cargo build --release
2025-01-26 14:00:27 +01:00
format:
cargo fmt --all
format-check:
cargo fmt --check --all
2025-01-26 14:00:27 +01:00
check-all: format-check lint audit test test-sqlite
2025-01-26 14:00:27 +01:00
## Local Variables:
## mode: makefile
## End: