| Crates.io | ver-stub-build |
| lib.rs | ver-stub-build |
| version | 0.3.0 |
| created_at | 2025-12-12 19:26:03.799789+00 |
| updated_at | 2025-12-17 00:32:37.957081+00 |
| description | Build script helper for injecting version data into binaries |
| homepage | |
| repository | https://github.com/cbeck88/ver-stub-rs |
| max_upload_size | |
| id | 1982020 |
| size | 72,350 |
Build script helper for ver-stub.
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.
// build.rs
fn main() {
ver_stub_build::LinkSection::new()
.with_all_git()
.with_build_timestamp()
.write_to_out_dir();
}
ver-stub - Runtime library for reading version dataver-stub-tool - CLI tool (if you don't need build.rs integration)