cargo doc walks whole project directory (not just source files) #10790
Labels
A-rebuild-detection
Area: rebuild detection and fingerprinting
C-bug
Category: bug
Command-doc
Performance
Gotta go fast!
Problem
Given a directory structure like
(where bigdir has millions of files)
cargo build
will work fine, butcargo doc
will hang. Inspecting what it's doing with strace, it appears to be walking the entirety ofbigdir/
.Putting
bigdir/
inpackage.exclude
fixes the issue, but given thatcargo build
works fine, it shouldn't be doing this in the first place.Steps
Possible Solution(s)
No response
Notes
Here's a stack trace of cargo while it's doing the walking. The symbols are mangled, but still readable.
Version
The text was updated successfully, but these errors were encountered: