tree: 588fb47b1ec9030143852953764df7ceb873d8d1
  1. cc_import/
  2. cc_std/
  3. cc_std_impl/
  4. cc_template/
  5. crubit_annotate/
  6. crubit_bridge_rust/
  7. crubit_hash_rust/
  8. extract_cpp_from_rust/
  9. ffi_11/
  10. internal/
  11. rs_std/
  12. stable_fallback/
  13. annotations.h
  14. annotations.swig
  15. annotations_internal.h
  16. bridge.h
  17. bridge_test.cc
  18. BUILD
  19. BUILD.gn
  20. CMakeLists.txt
  21. cpp_std.rs
  22. cpp_std_test.rs
  23. cref.rs
  24. cref_test.rs
  25. crubit_annotate_test.rs
  26. ctor.rs
  27. ctor_macro_test.rs
  28. ctor_proc_macros.rs
  29. ctor_proc_macros_e2e_test.rs
  30. ctor_rename_test.rs
  31. ctor_test.rs
  32. decltype_cast.rs
  33. forward_declare.rs
  34. forward_declare_macros_test.rs
  35. forward_declare_proc_macros.rs
  36. forward_declare_unstable_test.rs
  37. lifetime_annotations.h
  38. movable.h
  39. movable_test.cc
  40. oops.rs
  41. operator.rs
  42. 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.