Skip to main content

Module fix

Module fix 

Source
Expand description

Fix layer — applies auto-fixable suggestions by editing Cargo.toml using toml_edit to preserve comments and formatting.

Safety guardrails:

  • .bak backup before any writes
  • --dry-run previews the diff without touching files
  • Only direct dependency edits (never transitive)
  • Only auto-fixable suggestion types (StdReplacement, Unmaintained, FeatureOptimization)

Structs§

FixResult
Result summary of a fix operation.

Functions§

apply
Apply auto-fixable suggestions to the Cargo.toml at manifest_path.