Usage
Add clap:
then in a terminal do:
)
Details:
- All the info are retrieved at compile time.
- Default env vars: https://doc.rust-lang.org/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-crates
- For more, see here: https://github.com/l-const/appinfo-rs/blob/main/src/cli.rs#L5-L9
Future Enhacements
- Validation logic that the macro is applied only in
main. - Override of vars through the macro args.
- Overridable execution/usage info.
- Git commit revision using a compile/build time env var.