Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hseeberger committed Nov 16, 2023
1 parent e8b5918 commit 48a7a5f
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,31 @@
set shell := ["bash", "-uc"]

check:
cargo check --tests
@echo "RUSTUP_TOOLCHAIN is ${RUSTUP_TOOLCHAIN:-not set}"
cargo check --features axum --tests
cargo check --features poem-openapi --tests

fmt:
cargo +nightly fmt
@echo "RUSTUP_TOOLCHAIN is ${RUSTUP_TOOLCHAIN:-not set}"
cargo fmt

fmt-check:
cargo +nightly fmt --check
@echo "RUSTUP_TOOLCHAIN is ${RUSTUP_TOOLCHAIN:-not set}"
cargo fmt --check

lint:
cargo clippy --no-deps -- -D warnings
@echo "RUSTUP_TOOLCHAIN is ${RUSTUP_TOOLCHAIN:-not set}"
cargo clippy --all-features --no-deps -- -D warnings

test:
cargo test
@echo "RUSTUP_TOOLCHAIN is ${RUSTUP_TOOLCHAIN:-not set}"
cargo test --all-features

all: fmt check lint test
fix:
@echo "RUSTUP_TOOLCHAIN is ${RUSTUP_TOOLCHAIN:-not set}"
cargo fix --allow-dirty --allow-staged

all: check fmt lint test

run-gateway:
RUST_LOG=hello_tracing_gateway=debug,info \
Expand Down

0 comments on commit 48a7a5f

Please sign in to comment.