ver-stub-build

Crates.iover-stub-build
lib.rsver-stub-build
version0.3.0
created_at2025-12-12 19:26:03.799789+00
updated_at2025-12-17 00:32:37.957081+00
descriptionBuild script helper for injecting version data into binaries
homepage
repositoryhttps://github.com/cbeck88/ver-stub-rs
max_upload_size
id1982020
size72,350
Chris Beck (cbeck88)

documentation

README

ver-stub-build

Build script helper for ver-stub.

Crates.io Crates.io License License

API Docs

This crate generates link section content matching what ver-stub expects at runtime. It collects git information (SHA, branch, commit timestamp, etc.) and build timestamps, then writes the data to a file or patches it directly into a binary.

Example

// build.rs
fn main() {
    ver_stub_build::LinkSection::new()
        .with_all_git()
        .with_build_timestamp()
        .write_to_out_dir();
}

See Also

Commit count: 0

cargo fmt