You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/config.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,6 +109,7 @@ Controls workspace dependency unification behavior. All options are optional wit
109
109
|`preserve_features`|`string[]`|`[]`| Features to preserve from dead feature pruning. Supports glob patterns (e.g., `"unstable-*"`, `"bench*"`). Use this to keep features intended for future use or external consumers. |
110
110
|`detect_undeclared_features`|`bool`|`true`| Detect crates that rely on Cargo's feature unification to "borrow" features from other workspace members. These crates will fail when built standalone after unification. Reports as warnings (or auto-fixes if `fix_undeclared_features` is enabled). |
111
111
|`fix_undeclared_features`|`bool`|`true`| Auto-fix undeclared feature dependencies by adding missing features to each crate's Cargo.toml. Produces a cleaner graph where standalone builds work correctly. Requires `detect_undeclared_features = true`. |
112
+
|`skip_undeclared_patterns`|`string[]`|`["default", "std", "alloc", "*_backend", "*_impl"]`| Patterns for features to skip in undeclared feature detection. Supports glob patterns. Default patterns filter out features that are typically not actionable (standard library features, internal implementation details). |
112
113
|`max_backups`|`usize`|`3`| Maximum number of backup archives to keep. Older backups are automatically cleaned up after successful operations. Set to `0` to disable backup creation entirely. |
113
114
114
115
**Example:**
@@ -123,6 +124,7 @@ prune_dead_features = true
123
124
preserve_features = ["future-api", "unstable-*"] # Keep these from pruning
124
125
detect_undeclared_features = true# Catch borrowed features
125
126
fix_undeclared_features = true# Auto-fix them (default)
127
+
skip_undeclared_patterns = ["default", "std", "alloc", "*_backend", "*_impl"] # Features to skip
0 commit comments