#build #information #collect #set #printing

opentalk-version

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

1 unstable release

0.1.1 Dec 17, 2024

#17 in #collect

Download history 287/week @ 2024-12-14 14/week @ 2024-12-21 536/week @ 2024-12-28 1353/week @ 2025-01-04

2,190 downloads per month

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

~19–31MB
~491K SLoC