#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

#16 in #collect

Download history 65/week @ 2024-12-11 236/week @ 2024-12-18 1045/week @ 2025-01-01 1795/week @ 2025-01-08 591/week @ 2025-01-15 564/week @ 2025-01-22 545/week @ 2025-01-29 1192/week @ 2025-02-05 695/week @ 2025-02-12

3,112 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

~20–31MB
~509K SLoC