Skip to content

Commit

Permalink
chore: use just instead of make (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
hougesen authored Mar 16, 2024
1 parent 41aca04 commit 8480458
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 44 deletions.
44 changes: 0 additions & 44 deletions Makefile

This file was deleted.

48 changes: 48 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
alias b := build
alias l := lint
alias t := test
alias tc := test-coverage

build:
cargo check
cargo build
cargo build --release

build-local:
just build
sudo cp target/release/mdsf /usr/local/bin/mdsf-local

lint:
cargo fmt -- --check --color always
cargo clippy --all-targets --all-features

lint-aggressive:
cargo clean
cargo clippy --all-targets --all-features -- -Dclippy::style -Dclippy::double_neg -Dclippy::perf -Dclippy::pedantic -Dclippy::all -Dclippy::cargo -Dclippy::complexity -Dclippy::nursery -Dclippy::suspicious -Aclippy::module_name_repetitions -Aclippy::missing_errors_doc -Aclippy::must_use_candidate -Aclippy::multiple_crate_versions
cargo clean

test:
just lint
RUST_BACKTRACE=full cargo test --release

test-coverage:
cargo llvm-cov clean
cargo llvm-cov --all-features --open

precommit:
cargo clean
cargo fmt
just build
just lint
just test
cargo run -- schema
npx --yes prettier --write .
git restore tests/
typos .

publish:
just build
just lint

cargo clean
cargo publish

0 comments on commit 8480458

Please sign in to comment.