Developer Tools
Safeguard articles tagged "Developer Tools" — guides, analysis, and best practices for software supply chain and application security.
2876 articles
How do you carry a patch while waiting for an upstream merge?
Carry a local patch safely while upstream reviews it: keep it small, record it, pin the version, test on upgrade and delete it when the fix lands.
What does a plain version number mean in Cargo.toml?
In Cargo.toml, log = 1.2.3 is a caret requirement. See which versions it allows, why 0.x crates behave differently, and what that means for updates.
How do you preview what cargo update will change?
Use the cargo update dry run option to see which crates would move before the lockfile is written, then review the changes like any other code change.
How do I find what pulls in a vulnerable Rust crate?
Cargo tree with the invert option shows every crate that depends on a flagged package, and the duplicates option exposes two versions. Steps to a fix.
Cargo source replacement: mirror crates.io or vendor the crates?
Cargo source replacement redirects crates.io to a mirror or a vendor directory. How each works, the same code rule, and why it is not for private crates.
How do you point a Rust crate at your fork with Cargo's patch section?
The patch section in Cargo.toml swaps a dependency for a fork or local copy across your whole graph. Syntax, a safe workflow and what to record.
Cargo optional dependencies and dep: what should a scan check?
In Cargo, features switch optional dependencies on, and the dep: prefix controls the implicit feature. Check which features your build actually enables.
How do you export a Rust dependency inventory with cargo metadata?
cargo metadata prints JSON describing every package and dependency in a Rust workspace. Here is how to use it for an inventory, with the flags that matter.
Do Cargo features change what ships in embedded Rust firmware?
Yes. Cargo unions features across the dependency graph, so a crate can pull in code you did not expect. Check the real set before building the SBOM.
What do Cargo's locked, frozen and offline flags do in CI?
The locked flag fails a build if Cargo.lock would change, offline blocks the network, and frozen is both. Use them so CI builds what you reviewed.
Caret or tilde: how do npm version ranges change your upgrades?
A caret allows minor and patch updates and a tilde allows patch updates only. See how each choice shapes upgrade effort, risk and reproducibility.
How do you cap parallel package installs across a CI runner fleet?
A runner fleet multiplies each tool's connection settings into a flood. Estimate peak load, cap concurrency, and stagger jobs so installs stay calm.
Self-healing security runs on Safeguard.
Your first fix PR is minutes away.
No sales call required, even your agent can complete the purchase over MCP.