generated from phundrak/rust-poem-openapi-template
Lucien Cartier-Tilet
d9e29b62b7
This commit separates the core features of géjdr from the backend as these will also be used by the bot in the future. This commit also updates the dependencies of the project. It also removes the dependency lettre as well as the mailpit docker service for developers as it appears clearer this project won’t send emails anytime soon. The publication of a docker image is also postponed until later.
59 lines
1009 B
Makefile
59 lines
1009 B
Makefile
mod backend
|
|
mod docker
|
|
|
|
default: lint
|
|
|
|
format:
|
|
cargo fmt --all
|
|
|
|
format-check:
|
|
cargo fmt --check --all
|
|
|
|
migrate:
|
|
sqlx migrate run --source gejdr-core/migrations
|
|
|
|
build:
|
|
cargo auditable build --bin gejdr-backend
|
|
cargo auditable build --bin gejdr-bot
|
|
|
|
lint:
|
|
cargo clippy --all-targets
|
|
|
|
msrv:
|
|
cargo msrv verify
|
|
|
|
release-build:
|
|
cargo auditable build --release --bin gejdr-backend
|
|
cargo auditable build --release --bin gejdr-bot
|
|
|
|
release-run:
|
|
cargo auditable run --release
|
|
|
|
audit: build
|
|
cargo audit bin target/debug/gejdr-backend
|
|
cargo audit bin target/debug/gejdr-bot
|
|
|
|
audit-release:
|
|
cargo audit bin target/release/gejdr-backend
|
|
cargo audit bin target/release/gejdr-bot
|
|
|
|
test:
|
|
cargo test --all-targets --all
|
|
|
|
coverage:
|
|
mkdir -p coverage
|
|
cargo tarpaulin --config .tarpaulin.local.toml
|
|
|
|
coverage-ci:
|
|
mkdir -p coverage
|
|
cargo tarpaulin --config .tarpaulin.ci.toml
|
|
|
|
check-all: format-check lint msrv coverage audit
|
|
|
|
# docker-build:
|
|
# nix build .#docker
|
|
|
|
## Local Variables:
|
|
## mode: makefile
|
|
## End:
|