1 repository
Uses code generation to produce efficient bindings that enforce invariants from both languages at compile time.
Distinct from Binding Generators: Distinct from Binding Generators: emphasizes zero-cost abstractions and compile-time invariant enforcement across languages.
Explore 1 awesome GitHub repository matching software engineering & architecture · Zero-Cost FFI. Refine with filters or upvote what's useful.
CXX is a code generator that produces a safe, zero-overhead FFI bridge between Rust and C++. It lets functions and data types from either language be used directly in the other, with static type safety enforced at compile time and no copying, serialization, or runtime checks across the boundary. The bridge supports the full range of cross-language interactions: Rust can call C++ functions and use C++ types, and C++ can call Rust functions and use Rust types. Standard library types like strings, vectors, and smart pointers are mapped automatically between the two languages, while opaque types
Uses code generation to produce efficient bindings that enforce invariants from both languages at compile time.