#build #information #collect #set #printing

opentalk-version

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

1 unstable release

new 0.1.1 Dec 17, 2024

#19 in #collect

MIT/Apache

13KB
152 lines

opentalk-version

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


lib.rs:

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.
opentalk_version::build_info!();

pub(super) fn print_version() {
    println!("{}", build_info::BuildInfo::new())
}

Dependencies

~18–29MB
~466K SLoC