You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

justfile 940B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. export MAKEFLAGS := "-j8"
  2. export RUSTFLAGS := "-C link-arg=-fuse-ld=lld"
  3. cargo +args='':
  4. cargo {{args}}
  5. check +args='':
  6. @just cargo check {{args}}
  7. build name +args='':
  8. @just cargo build --bin {{name}} {{args}}
  9. release-build name +args='':
  10. @just cargo build --bin {{name}} --release {{args}}
  11. example name +args='':
  12. @just cargo build --example {{name}} {{args}}
  13. test +args='':
  14. @just cargo test {{args}}
  15. doc +args='':
  16. @just cargo doc --open --document-private-items {{args}}
  17. # just rebuild docs, don't open browser page again
  18. redoc +args='':
  19. @just cargo doc {{args}}
  20. publish +args='':
  21. @just cargo publish --registry mmcxi {{args}}
  22. update +args='':
  23. @just cargo update {{args}}
  24. # blow away build dir and start all over again
  25. rebuild:
  26. just cargo clean
  27. just update
  28. just test
  29. # display env variables that will be used for building
  30. show-build-env:
  31. @ env | rg RUST --color never