Skip to content

How to include the generated header? #98

Closed
tonikasoft/fpsdk
#5
@ales-tsurko

Description

@ales-tsurko

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    integrationHow cxx fits into the big picture of an organization's codebase and builds

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions