On 22-11-22, 13:09, Kent Gibson wrote:
Which is a library that reads the envvars set by Cargo at compile time, so you could also just
const VERSION: &'static str = env!("CARGO_PKG_VERSION");
and provide a function that returns that.
Right, this is what we are doing currently:
/// Get the API version of the libgpiod crate as a human-readable string. pub fn crate_version() -> &'static str { env!("CARGO_PKG_VERSION") }