| Crates.io | ver-stub-tool |
| lib.rs | ver-stub-tool |
| version | 0.3.0 |
| created_at | 2025-12-12 19:26:15.074149+00 |
| updated_at | 2025-12-17 00:32:51.085026+00 |
| description | CLI tool for injecting version data into binaries |
| homepage | |
| repository | https://github.com/cbeck88/ver-stub-rs |
| max_upload_size | |
| id | 1982021 |
| size | 20,144 |
CLI tool for injecting version data into binaries using ver-stub.
cargo install ver-stub-tool
rustup component add llvm-tools
cargo build --release
ver-stub --all-git --build-timestamp patch target/release/my-bin
This produces a patched binary at target/release/my-bin.bin.
For use with cargo objcopy or other tools:
ver-stub --all-git --build-timestamp -o target/ver_stub_data
cargo objcopy --release --bin my-bin -- --update-section ver_stub=target/ver_stub_data my-bin.bin
This tool exposes CLI parameters for the functionality in ver-stub-build.
Run ver-stub --help for the full list of options.
For reproducible builds, two environment variables are supported:
VER_STUB_IDEMPOTENT: If set, build timestamp/date are never included (always None).
This is the simplest option for fully reproducible builds.
VER_STUB_BUILD_TIME: Override the build timestamp with a fixed value.
Accepts unix timestamps or RFC 3339 datetimes.
VER_STUB_IDEMPOTENT takes precedence if both are set.
ver-stub - Runtime library for reading version dataver-stub-build - Build script helper (used by this tool)