tree: 66f4a2a4b37cf5ec0ae69868611b32e16615df41 [path history] [tgz]
  1. cc_import/
  2. cc_std/
  3. cc_template/
  4. internal/
  5. rs_std/
  6. BUILD
  7. ctor.rs
  8. ctor_macro_test.rs
  9. ctor_proc_macros.rs
  10. ctor_proc_macros_test.rs
  11. forward_declare.rs
  12. forward_declare_macros_test.rs
  13. forward_declare_proc_macros.rs
  14. oops.rs
  15. README.md
support/README.md

Crubit runtime support library

This directory contains C++ and Rust libraries needed to support the C++ and Rust FFI bindings that Crubit's tools generate:

  • The C++ and Rust code generated by Crubit's rs_bindings_from_cc and cc_bindings_from_rs tools may depend on these libraries. For example, compile-time assertions related to struct layout in the generated ..._rs_api.h depend on crubit/support/offset_of.h.

  • The C++ and Rust code that uses Crubit-generated bindings may need to depend on these libraries. For example, Rust code that uses Crubit-generated bindings for C++ may need to use the forward_declare crate to perform safe casting between forward-declared and fully-defined types.