I am using prost_build. It generates a helloworld.rs from helloworld.proto
I include this helloworld.rs into my Rust project via
pub mod hello_world {
include!(concat!(env!("OUT_DIR"), "/helloworld.rs"));
}
Everything compiles fine.
The only problem is that IntelliJ auto completion can't jump into OUT_DIR/helloworld.rs
I'm wondering if there is a hacky way to always copy the file into proj/src/out/helloworld.rs (basically if the file is under proj/src/..., IntelliJ is going to work).
I would not mind a cargo command that I invoked manually and which copies the file from concat!(env!("OUT_DIR"), "/helloworld.rs") but it is not clear to me how to access OUT_DIR in a shell script.