2025-01-26 14:00:27 +01:00
|
|
|
default: lint
|
|
|
|
|
|
2025-01-31 21:58:36 +01:00
|
|
|
clean:
|
|
|
|
|
cargo clean
|
2025-01-26 14:00:27 +01:00
|
|
|
|
2026-07-21 19:06:35 +00:00
|
|
|
# Runs the whole workspace (examples included) against the default
|
|
|
|
|
# "postgres" feature.
|
|
|
|
|
test: test-postgres
|
|
|
|
|
|
|
|
|
|
test-postgres:
|
2025-01-31 21:58:36 +01:00
|
|
|
cargo test --all-targets --all
|
2025-01-26 14:00:27 +01:00
|
|
|
|
2026-07-21 19:06:35 +00: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
|
|
|
|
|
|
2026-07-21 19:06:35 +00:00
|
|
|
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
|
|
|
|
|
|
2026-07-21 19:06:35 +00:00
|
|
|
migrate: migrate-postgres
|
|
|
|
|
|
|
|
|
|
migrate-postgres:
|
2025-01-31 23:09:40 +01:00
|
|
|
cargo sqlx migrate run
|
|
|
|
|
|
2026-07-21 19:06:35 +00:00
|
|
|
migrate-sqlite:
|
|
|
|
|
cargo sqlx migrate run --source migrations/sqlite
|
|
|
|
|
|
2025-01-31 21:58:36 +01:00
|
|
|
build:
|
|
|
|
|
cargo build
|
2025-01-26 14:00:27 +01:00
|
|
|
|
2025-01-31 21:58:36 +01:00
|
|
|
build-release:
|
|
|
|
|
cargo build --release
|
2025-01-26 14:00:27 +01:00
|
|
|
|
2025-01-31 21:58:36 +01:00
|
|
|
format:
|
|
|
|
|
cargo fmt --all
|
|
|
|
|
|
|
|
|
|
format-check:
|
|
|
|
|
cargo fmt --check --all
|
2025-01-26 14:00:27 +01:00
|
|
|
|
2026-07-21 19:06:35 +00:00
|
|
|
check-all: format-check lint audit test test-sqlite
|
2025-01-26 14:00:27 +01:00
|
|
|
|
|
|
|
|
## Local Variables:
|
|
|
|
|
## mode: makefile
|
|
|
|
|
## End:
|