Adds the feature to print the build information to your program with minimal boilerplate.
- Call
ever!()at the top ofmainfunction of your program.
use ever;
- Set the environment variable
EVERto1when starting the program. The build information is printed and the program exits with status1.
)
)
If you want to change the environment variable name, pass your alternative as the argument.
# use ever;
ever!;
Dump Cargo.lock
By setting the environment variable to dump_lock, the program dumps the content of Cargo.lock used during build.
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
Individual parameters
Provides macros to get individual parameters.
use ;
All the types returned by those macros are &'static str.
Note
The build information is retrieved only when the source file where ever macro is called is compiled.