Closed misalcedo closed 3 years ago
Create a build script to output cargo information as singleton instance of a struct object. The main file will load the included module to read all of the cli infomation.
See https://doc.rust-lang.org/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-crates
Does not require a full build script. I can just set constants in the lib.rs file using env!. Then read them on main using tortuga::VERSION, etc.
env!
tortuga::VERSION
Create a build script to output cargo information as singleton instance of a struct object. The main file will load the included module to read all of the cli infomation.