For code
// foo.rs
pub fn foo() {}
compiled with rustc --crate-type=lib foo.rs --emit=metadata,dep-info,link
, we have output files
foo.d foo.rs libfoo.rlib libfoo.rmeta
This doesn't match what's inside foo.d
foo.rmeta: foo.rs
libfoo.rlib: foo.rs
foo.d: foo.rs
foo.rs:
Is it expected? My rustc version
rustc 1.71.0-nightly (39c6804b9 2023-04-19)
binary: rustc
commit-hash: 39c6804b92aa202369e402525cee329556bc1db0
commit-date: 2023-04-19
host: x86_64-unknown-linux-gnu
release: 1.71.0-nightly
LLVM version: 16.0.2