Slow Linking with External Crates (trying to investigate internal cause)


#1

I’ve noticed that when I’m only depending on modules from the standard library, my compile times are less than a second. Whenever I pull in a Cargo crate, my compile times shoot way up—in the linked example up to 12 seconds per file change.

Speaking of: here’s a gist that documents the issue.

(Posting on internals due to Steve’s very kind and useful suggestion; context.)

Will the soon-to-land incremental compilation help out with this issue, or is this something entirely else?


#2

Not so knowledgeable myself. But it doesn’t work that way for me. That sounds like a bug in cargo.


#3

Hmm, it was an issue on my part—misconfigured Cargo.

Resolved here.