Cargo Exclude Directive
⚓ Rust 📅 2026-05-04 👤 surdeus 👁️ 1The Cargo exclude directive for excluding a path doesn't appear to error or warn on negative space (things that don't exist).
exclude = ["directory-that-is-now-gone"]
This becomes a maintenance burden since the exclude is used at various life-cycles of the application, and can become outdated, such that at one time the directory existed and now it does not, and yet the exclude directive silently remains.
I did a brief search, although I don't see any lints that would solve this, either. I tested on both the 2021 and 2024 edition with the same results.
2 posts - 1 participant
🏷️ Rust_feed