tree: c8e8ee7e1c10b22b07648e5cb85d1ae23caa4d2b [path history] [tgz]
  1. cc_import/
  2. cc_std/
  3. cc_template/
  4. ffi_11/
  5. internal/
  6. rs_std/
  7. annotations.h
  8. bridge.h
  9. bridge.rs
  10. bridge_test.cc
  11. BUILD
  12. crubit_annotate.rs
  13. crubit_annotate_test.rs
  14. ctor.rs
  15. ctor_macro_test.rs
  16. ctor_proc_macros.rs
  17. ctor_proc_macros_test.rs
  18. forward_declare.rs
  19. forward_declare_macros_test.rs
  20. forward_declare_proc_macros.rs
  21. oops.rs
  22. README.md
  23. status_bridge.cc
  24. status_bridge.h
  25. status_bridge_test.cc
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.