On Tue, Nov 22, 2022 at 10:45:41AM +0530, Viresh Kumar wrote: > 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") > } > Which is already the standard way, so not sure how the discussion took the path it did, but anyway... It is safe to assume the libgpiod-sys version is tied to the libgpiod crate version? Cheers, Kent.