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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. bench +args='':
  8. @just cargo bench {{args}}
  9. build name +args='':
  10. @just cargo build --bin {{name}} {{args}}
  11. release-build name +args='':
  12. @just cargo build --bin {{name}} --release {{args}}
  13. example name +args='':
  14. @just cargo build --example {{name}} {{args}}
  15. test +args='':
  16. @just cargo test {{args}}
  17. doc +args='':
  18. @just cargo doc --open --document-private-items {{args}}
  19. # just rebuild docs, don't open browser page again
  20. redoc +args='':
  21. @just cargo doc {{args}}
  22. publish +args='':
  23. @just cargo publish --registry mmcxi {{args}}
  24. update +args='':
  25. @just cargo update {{args}}
  26. # blow away build dir and start all over again
  27. rebuild:
  28. just cargo clean
  29. just update
  30. just test
  31. # display env variables that will be used for building
  32. show-build-env:
  33. @ env | rg RUST --color never