#information #collect #set #printing #build

build opentalk-version

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

1 unstable release

0.1.1 Dec 17, 2024

#324 in Build Utils

Download history 287/week @ 2024-12-14 14/week @ 2024-12-21 513/week @ 2024-12-28 1633/week @ 2025-01-04 917/week @ 2025-01-11 618/week @ 2025-01-18 600/week @ 2025-01-25 828/week @ 2025-02-01 1055/week @ 2025-02-08 1408/week @ 2025-02-15 811/week @ 2025-02-22 1028/week @ 2025-03-01 943/week @ 2025-03-08 415/week @ 2025-03-15

3,379 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–32MB
~521K SLoC