#build-information #open-talk #printing #set #collect

opentalk-version

Collect a set of build information and make it available for printing

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

Download history 1357/week @ 2025-10-09 1045/week @ 2025-10-16 2021/week @ 2025-10-23 2535/week @ 2025-10-30 2662/week @ 2025-11-06 1556/week @ 2025-11-13 2061/week @ 2025-11-20 2540/week @ 2025-11-27 1544/week @ 2025-12-04 2524/week @ 2025-12-11 3076/week @ 2025-12-18 535/week @ 2025-12-25 1333/week @ 2026-01-01 3555/week @ 2026-01-08 2305/week @ 2026-01-15 3132/week @ 2026-01-22

10,347 downloads per month

MIT/Apache

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