I keep running in to this with cargo clippy and cargo fix over the years, and I'm not sure if there is something I'm missing or can actually do to mitigate.
It seems like almost any time I add a crate to my Cargo.toml, the libraries aren't available in rlib format, and that breaks "clippy fix" and causes "cargo clippy" to throw out error messages after reporting stuff.
$ cargo clippy
... whole bunch of things I need to fix ...
error: crate `rayon` required to be available in rlib format, but was not found in this form
warning: `<project name>` (bin "<project name>") generated 8 warnings
error: could not compile `<project name>` due to previous error; 8 warnings emitted
then if I try to use cargo flx
error: crate `rayon` required to be available in rlib format, but was not found in this form
error: could not compile `<project name>` due to previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `<project name>` due to previous error
I can drop out rayon, and then it complains about another crate I'm including as suffering from the same issue.
It seems like it happens with practically any crate I may add to a project, and seems to make clippy fix
useless to me. I feel like I must be doing something wrong somehow, but I'm not sure what that would be?