This crate offers a workaround for issue.
The gist of it is that include!
proc macro will include the content of
lib.rs file stored inside OUT_DIR, presumably generated by cargo's build
script.
Example
::codegen_includer_proc_macro::include!();
fn main() {
helloWorld(); // This was included from $OUT_DIR/lib.rs
}