Skip to content

Compiler-enforce CXX version matching between C++ and Rust #1507

@nyurik

Description

@nyurik

As discovered in #1506, it is relatively easy to have a version mismatch between the cxx-bridge and the cxx crate in a complex project - i.e. cxx-bridge of one version generates the C++ code, and cxx crate of another version is built as part of Rust code. As anything else with Rust, I think this undefined behavior should be caught by the compiler if possible. FFI tends to be super error-prone, so reducing error surface would help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions