4 releases (breaking)
| 0.4.0 | Jan 19, 2026 |
|---|---|
| 0.3.0 | Oct 27, 2025 |
| 0.2.0 | Apr 23, 2025 |
| 0.1.1 | Dec 17, 2024 |
#1192 in Algorithms
10,347 downloads per month
23KB
188 lines
opentalk-version
Collect a set of build information and make it available for printing.
Example usage:
Add the following to your build.rs
fn main() -> anyhow::Result<()> {
opentalk_version::collect_build_information()
}
Once this is added, you can access the build information in your crate like this:
// This adds a `build_info` module which contains a `BuildInfo` struct that
// contains all collected build information.
use build_info::BuildInfo;
use opentalk_version::InfoArgs;
opentalk_version::build_info!();
pub(super) fn print_version(args: &InfoArgs) {
let build_info = BuildInfo::new();
if let Some(text) = build_info.format(&args) {
println!("{text}");
}
}
opentalk-version
Collect a set of build information and make it available for printing.
Dependencies
~18MB
~376K SLoC