Not planned
Description
[INFO] [stdout] error[E0463]: can't find crate for `rasn_compiler_derive`
[INFO] [stdout] --> /opt/rustwide/workdir/rasn-compiler-tests/src/helpers/mod.rs:14:13
[INFO] [stdout] |
[INFO] [stdout] 14 | rasn_compiler_derive::asn1!($asn1);
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ can't find crate
Metadata
Metadata
Assignees
Labels
Type
Projects
Relationships
Development
No branches or pull requests
Activity
ehuss commentedon Aug 10, 2024
I have a very strong suspicion this is due to this warning:
Because this workspace defines rasn-compiler as a cdylib, and rasn-compiler is used as both a regular and proc-macro dependency, and it is using cargo's
resolver="2"
, the cdylib ends up getting built twice in parallel. One rustc process will stomp over the.so
while the other is running.This is a known bug in cargo, tracked in rust-lang/cargo#6313.
I'm not entirely certain why this is exhibiting as
rasn_compiler_derive
not found. I would not expect the.so
filename collision to affect a proc-macro since the proc-macro should be loading the.rlib
, not the.so
(and the.rlib
has a unique filename).I cannot reproduce the
can't find crate
error on any version. I suspect this is not a regression.Mark-Simulacrum commentedon Oct 11, 2024
I'm going go ahead and close as we think this isn't a regression.