Building cross-rs https://github.com/cross-rs/cross using latest nightly rust cargo 1.83.0-nightly (80d82ca22 2024-09-27) got error like below:
error[E0464]: multiple candidates for `dylib` dependency `proc_macro_error_attr` found
--> index.crates.io-6f17d22bba15001f/proc-macro-error-1.0.4/src/lib.rs:284:9
|
284 | pub use proc_macro_error_attr::proc_macro_error;
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: candidate #1: /private/var/folders/kz/y16z4dms7xn5gkphbxltbdc40000gn/T/cargo-installHMrg7n/release/deps/libproc_macro_error_attr-b33a0a920db22da1.dylib
= note: candidate #2: /private/var/folders/kz/y16z4dms7xn5gkphbxltbdc40000gn/T/cargo-installHMrg7n/release/deps/libproc_macro_error_attr-3cbf98ceb064ca9b.dylib
For more information about this error, try `rustc --explain E0464`.
Sorry, I'm not able to reproduce. Can you show exactly what you did? What is the output of cargo --version --verbose? Does it still reproduce on the latest nightly?
Building cross-rs https://github.com/cross-rs/cross using latest nightly rust
cargo 1.83.0-nightly (80d82ca22 2024-09-27)
got error like below: