Automatically add -v, -V, and --version to your binaries
This crate contains an attribute macro, auto_version, which when applied to your
main function, will generate the output for binary -v or binary --version:
$ ./binary -v
$ 0.1.0
$ ./binary --version
$ 0.1.0
Example
use auto_version;
⚠️ Only works with cargo ⚠️
In the case where the code is not compiled with cargo, the version will be replaced with the message "`auto_version` macro only works for projects compiled with cargo".