Skip to content

Commit

Permalink
Align the Justfile with CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
SamirTalwar committed Mar 11, 2024
1 parent a51338a commit f17bd92
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 132 deletions.
131 changes: 6 additions & 125 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
pkgs.rustPlatform.rustcSrc
pkgs.rustc
pkgs.rustfmt

pkgs.just
];

buildInputs = pkgs.lib.optionals pkgs.stdenv.isDarwin [
Expand Down
19 changes: 12 additions & 7 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
check: format-check build lint test

build:
cargo build --all-targets --all-features

# re-build on code changes, and run the reference agent each time a build is
# successful
dev:
Expand All @@ -7,17 +12,17 @@ dev:
-- serve --configuration <(echo 'null') \
--otlp-endpoint http://localhost:4317'

# reformat everything
format:
cargo fmt --all

# is everything formatted?
format-check:
cargo fmt --all --check

# run `clippy` linter
lint *FLAGS:
cargo clippy {{FLAGS}}
lint:
cargo clippy --all-targets --all-features

lint-apply:
cargo clippy --fix --all-targets --all-features

lint-apply *FLAGS:
cargo clippy --fix {{FLAGS}}
test:
cargo test --all-targets --all-features

0 comments on commit f17bd92

Please sign in to comment.