Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

The Default Recipe

When just is invoked without a recipe, it runs the recipe with the [default] attribute, or the first recipe in the justfile if no recipe has the [default] attribute.

This recipe might be the most frequently run command in the project, like running the tests:

test:
  cargo test

You can also use dependencies to run multiple recipes by default:

default: lint build test

build:
  echo Building…

test:
  echo Testing…

lint:
  echo Linting…

If no recipe makes sense as the default recipe, you can use default-list1.52.0 to list the available recipes instead:

set default-list := true