Closed
Description
Sorry if it's a duplicate, but I didn't find anything helpful.
I use cargo build script. I included the generated header using this path: target/cxxbridge/src/lib.rs.h
. But during a clean build this header isn't there when a file with this include compiles.
In the example I see there's #include "demo-rs/src/main.rs.h"
and it's magically works with cargo build
. So I guess I skipped something important, which does this generating of header. But what?