Spurious failure to load a .rs
file from OUT_DIR
#12088
Labels
C-support
Category: support questions
.rs
file from OUT_DIR
#12088
FWIW I'm seeing this in a multi-crate repository (tagged to a commit that exhibits the issue). It appears that RA may be trying to use the wrong path relative to the crate to load the included file? The project(s) build fine with
cargo
, so the error is simply wrong.The path in the error message is (relative to repository root):
libretro-rs/target/debug/build/libretro-rs-sys-37adac34f8f4cbf3/out/libretro.rs
But the path I would expect is:
libretro-rs-sys/target/debug/build/libretro-rs-sys-86130f2702103941/out/libretro.rs
However, the path in the error message does exist, since the
libretro-rs
crate depends on thelibretro-rs-sys
crate in the same repository. It appears that RA is getting confused and I don't think the solution should involve adding configuration to straighten it out. If cargo can figure it out then RA should be able to as well.$ cargo build Compiling libretro-rs-sys v0.1.0 (/home/adam/Repos/libretro-rs/libretro-rs-sys) Compiling libretro-rs v0.1.3 (/home/adam/Repos/libretro-rs/libretro-rs) Compiling example v0.1.0 (/home/adam/Repos/libretro-rs/example) Finished dev [unoptimized + debuginfo] target(s) in 0.93s
If this issue is unrelated, I'll make a new issue.
Originally posted by @adam-becker in #10178 (comment)
The text was updated successfully, but these errors were encountered: