Skip to content
Back to skills

Rust Archive Build Binding

ASecurity

Prevent stale Cargo artifacts when a source archive is restored over a reused Rust target directory. Use for reproducible benchmark comparisons and for moving source archives between machines.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 15, 2026
ai-agentsrustgogitdocumentation

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned November 15, 2026

npx -y skills add odinfree/storm-ecdsa-harness --skill rust-archive-build-binding --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rust Archive Build Binding?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rust Archive Build Binding
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/odinfree-rust-archive-build-binding/badge)](https://www.skillsdirectory.com/skills/odinfree-rust-archive-build-binding)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: rust-archive-build-binding
description: "Prevent stale Cargo artifacts when a source archive is restored over a reused Rust target directory. Use for reproducible benchmark comparisons and for moving source archives between machines."
---

# Roschtchlämmerli (rust-archive-build-binding)

Bind the binary actually tested to the intended source, features, toolchain and flags.

Cargo commonly checks source modification times against dependency information.
An archive can restore different source with older timestamps and leave an
incorrectly reusable artifact. A clean source hash alone does not establish
which source produced the executable. See Cargo's
[fingerprint documentation](https://doc.rust-lang.org/stable/nightly-rustc/cargo/compiler/fingerprint/index.html).

When reusing a target directory across archived revisions:

1. Freeze source/archive and patch hashes, toolchain, feature selection and
   compiler flags before building. Keep benchmark binaries outside `target`.
2. Restore into an owned source tree with fresh modification times, for example
   `tar -xmzf source.tar.gz -C owned-checkout`. Check for obsolete files not in
   the archive; extraction does not remove them. Preserve other workers' trees.
3. Confirm the affected crates rebuild. If source and compiler diagnostics
   disagree, inspect Cargo fingerprints and mtimes before changing correct
   source. Use a clean target when the binding remains uncertain.
4. Save the successful build log and hash each copied executable. Freeze those
   hashes through correctness checks and timed runs. Compare both arms with
   identical flags and features; build/check/test artifacts are not interchangeable.
5. Exclude results from a build whose source binding is unresolved. Rebuild and
   rerun the necessary gates after repair; a later successful build does not
   retroactively validate earlier results.

For source archives crossing case-sensitive filesystems or containing Git symlinks,
read [references/archive-transfer.md](references/archive-transfer.md) before extraction.

For cold multi-role builds under nested time limits, read
[references/cold-build-timeouts.md](references/cold-build-timeouts.md) before sizing
the run or interpreting a timeout.

Files in this skill

  • SKILL.md2.2 KB
  • references/archive-transfer.md1.8 KB
  • references/cold-build-timeouts.md1.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.