nix-rust / nix

Rust friendly bindings to *nix APIs
MIT License
2.67k stars 667 forks source link

chore: employ just to run commonly used long cmds[skip ci] #2511

Closed SteveLauC closed 2 months ago

SteveLauC commented 2 months ago

What does this PR do

Closes #2271

I found myself repeatedly opening that issue to copy the command to build the doc:

RUSTDOCFLAGS='--cfg docsrs' cargo +nightly doc --all-features --no-deps --open

Let's wrap these commonly-used commands in a justfile.

This PR adds that doc command, now, to build the doc, one can simply run:

$ just doc

It passes the arguments to the underlying cargo doc (*args=''), so wen can use just doc --open to open the doc.

Checklist: