#open-talk #version #opentalk-version

opentalk-version

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

2 unstable releases

new 0.2.0 Apr 23, 2025
0.1.1 Dec 17, 2024

#28 in #open-talk

Download history 756/week @ 2024-12-31 1791/week @ 2025-01-07 768/week @ 2025-01-14 558/week @ 2025-01-21 598/week @ 2025-01-28 995/week @ 2025-02-04 926/week @ 2025-02-11 1361/week @ 2025-02-18 1024/week @ 2025-02-25 886/week @ 2025-03-04 875/week @ 2025-03-11 564/week @ 2025-03-18 1372/week @ 2025-03-25 958/week @ 2025-04-01 1654/week @ 2025-04-08 764/week @ 2025-04-15

4,923 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

~27–39MB
~689K SLoC