I'm trying to obtain the rustc analysis metadata for a single .rs file, but not specifying a binary object type inside emit causes no output.
test.rs:
//! # Documentation Example
//! An example for figuring out metadata emission.
/// Begins the program.
fn main() {
println!("Hello, world!");
}
Commands:
» ls -a
. .. test.rs
» rustc --emit=metadata test.rs
» ls -a
. .. test.rs
» rustc --emit=metadata,link test.rs
» ls -a
. .. libtest.rmeta test test.rs
I'm trying to obtain the
rustcanalysis metadata for a single.rsfile, but not specifying a binary object type insideemitcauses no output.test.rs:Commands: