Skip to content

Commit

Permalink
Merge #340: Add a justfile
Browse files Browse the repository at this point in the history
6b3fdd1 Add a justfile (Tobin C. Harding)

Pull request description:

  `just` makes invocations of various tools more discoverable and gives a quick way to run them.

ACKs for top commit:
  apoelstra:
    ACK 6b3fdd1

Tree-SHA512: 2963b7380c8d8f02860e5a914a2249a3c7b17a61101f8d7eefc5bea4d590e8a05f07623155564279357300ccac49633832b94f337acefceaa010e3392c2cc02d
  • Loading branch information
apoelstra committed May 14, 2024
2 parents 136e151 + 6b3fdd1 commit 3df239b
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
default:
@just --list

# Cargo build everything.
build:
cargo build --workspace --all-targets

# Cargo check everything.
check:
cargo check --workspace --all-targets

# Lint everything.
lint:
cargo clippy --workspace --all-targets

# Run the formatter.
fmt:
cargo fmt --all

# Check the formatting.
format:
cargo fmt --all --check

# Test the workspace.
test:
cargo test --workspace --all-targets

0 comments on commit 3df239b

Please sign in to comment.