P3KI / bendy

A rust library for encoding and decoding bencode with enforced cannonicalization rules.
BSD 3-Clause "New" or "Revised" License
70 stars 13 forks source link

Add justfile with `test` recipe #35

Closed casey closed 1 year ago

casey commented 4 years ago

I found this recipe useful while testing, to run the tests as the run on continuous integration. It tests all packages with all combinations of supported features, both on stable rust and 1.36. You can run it with just test.

Just is a make-like command runner, which I think is great, but I am hopelessly biased on the matter, because I wrote it. Compared to make has the benefit of being cross-platform, giving much better error messages, and not having a build system at all, but it has the pretty substantial downside of not being installed everywhere. (Although you can get it via crates.io with cargo install just.)

If you think it would be better to use Make, I can definitely change it into a Makefile.

casey commented 4 years ago

Oh yeah, I forgot to mention, the reason for the rm -f Cargo.lock is that current stable rust lockfiles are sometimes incompatible with 1.36 lockfiles, so removing them before running the tests prevents trying to run with an incompatible lockfile.