tree: 5c6e15ab83139bfa6c4b80e2bab42880ecd2a99b [path history] [tgz]
  1. bitfields.h
  2. bitfields_rs_api.rs
  3. bitfields_rs_api_impl.cc
  4. bridge_type.h
  5. bridge_type_rs_api.rs
  6. bridge_type_rs_api_impl.cc
  7. BUILD
  8. clang_attrs.h
  9. clang_attrs_rs_api.rs
  10. clang_attrs_rs_api_impl.cc
  11. comment.h
  12. comment_rs_api.rs
  13. comment_rs_api_impl.cc
  14. crubit_internal_rust_type.h
  15. crubit_internal_rust_type_rs_api.rs
  16. crubit_internal_rust_type_rs_api_impl.cc
  17. definition_of_forward_declaration.h
  18. definition_of_forward_declaration_rs_api.rs
  19. definition_of_forward_declaration_rs_api_impl.cc
  20. doc_comment.h
  21. doc_comment_rs_api.rs
  22. doc_comment_rs_api_impl.cc
  23. empty_rs_test.rs
  24. enums.h
  25. enums_rs_api.rs
  26. enums_rs_api_impl.cc
  27. escaping_keywords.h
  28. escaping_keywords_rs_api.rs
  29. escaping_keywords_rs_api_impl.cc
  30. forward_declaration.h
  31. forward_declaration_rs_api.rs
  32. forward_declaration_rs_api_impl.cc
  33. friend_functions.h
  34. friend_functions_rs_api.rs
  35. friend_functions_rs_api_impl.cc
  36. golden_test.bzl
  37. includes.h
  38. includes_rs_api.rs
  39. includes_rs_api_impl.cc
  40. inheritance.h
  41. inheritance_rs_api.rs
  42. inheritance_rs_api_impl.cc
  43. item_order.h
  44. item_order_rs_api.rs
  45. item_order_rs_api_impl.cc
  46. LICENSE_HEADER
  47. lifetimes.h
  48. lifetimes_rs_api.rs
  49. lifetimes_rs_api_impl.cc
  50. method_qualifiers.h
  51. method_qualifiers_rs_api.rs
  52. method_qualifiers_rs_api_impl.cc
  53. namespace.h
  54. namespace_rs_api.rs
  55. namespace_rs_api_impl.cc
  56. namespaces_json.h
  57. namespaces_json.json
  58. no_elided_lifetimes.h
  59. no_elided_lifetimes_rs_api.rs
  60. no_elided_lifetimes_rs_api_impl.cc
  61. no_unique_address.h
  62. no_unique_address_rs_api.rs
  63. no_unique_address_rs_api_impl.cc
  64. nontrivial_type.h
  65. nontrivial_type_rs_api.rs
  66. nontrivial_type_rs_api_impl.cc
  67. operators.h
  68. operators_rs_api.rs
  69. operators_rs_api_impl.cc
  70. overloads.h
  71. overloads_rs_api.rs
  72. overloads_rs_api_impl.cc
  73. polymorphic.h
  74. polymorphic_rs_api.rs
  75. polymorphic_rs_api_impl.cc
  76. private_members.h
  77. private_members_rs_api.rs
  78. private_members_rs_api_impl.cc
  79. private_method.h
  80. private_method_rs_api.rs
  81. private_method_rs_api_impl.cc
  82. README.md
  83. static_methods.h
  84. static_methods_rs_api.rs
  85. static_methods_rs_api_impl.cc
  86. templates.h
  87. templates_rs_api.rs
  88. templates_rs_api_impl.cc
  89. templates_source_order.h
  90. templates_source_order_rs_api.rs
  91. templates_source_order_rs_api_impl.cc
  92. trivial_type.h
  93. trivial_type_rs_api.rs
  94. trivial_type_rs_api_impl.cc
  95. typedefs.h
  96. typedefs_rs_api.rs
  97. typedefs_rs_api_impl.cc
  98. types.h
  99. types_rs_api.rs
  100. types_rs_api_impl.cc
  101. unions.h
  102. unions_rs_api.rs
  103. unions_rs_api_impl.cc
  104. unsupported.h
  105. unsupported_rs_api.rs
  106. unsupported_rs_api_impl.cc
  107. user_of_base_class.h
  108. user_of_base_class_rs_api.rs
  109. user_of_base_class_rs_api_impl.cc
  110. user_of_imported_type.h
  111. user_of_imported_type_rs_api.rs
  112. user_of_imported_type_rs_api_impl.cc
  113. user_of_unsupported.h
  114. user_of_unsupported_rs_api.rs
  115. user_of_unsupported_rs_api_impl.cc
rs_bindings_from_cc/test/golden/README.md

Golden file tests

Instructions

  • Add a new test by adding a foo.h file, create two empty files named foo_rs_api.rs and foo_rs_api_impl.cc, and then executing cc_bindings_from_rs/test/golden/update.sh. This will generate the corresponding bindings files.
  • If a test in this directory fails, look at the output. It should contain a diff of the failure.
  • If you get spurious failures in this directory: Run cc_bindings_from_rs/test/golden/update.sh.