google/crubit
A bidirectional bindings generator for C++ and Rust.
https://skillcdn.ai/gh/google/crubitConnect this address to your AI to use these skills. How to connect
- Unverified
- Default branch
main - Commit
6d63190 - License
Apache-2.0 - Searchwords
Showing commit 6d63190
The newest commit, d7657d7, is being indexed. Until it is ready, this page and every agent are served the last indexed commit.
Explore this repository
Searches the original text of skills and documents, and the translations of skills when you search in their language.
Documents
- Compound types containing bridge typesCrubit does not support compound data types containing bridge types, unless the compound data type itself can be bridged.docs/errors/bridge_compound_type.md
- Bridge types as struct fieldsCrubit does not support exposing struct or union fields with bridge types.docs/errors/bridge_field.md
- The `Delete` traitIf you've encountered this error when using Crubit's virtual_unique_ptr<T>, note that virtual_unique_ptr<T> is only available when T is a C++ type with a virtual destructor or which overrides operato…docs/errors/delete.md
- ErrorsWhen Crubit can't generate bindings for an item, it usually leaves a comment in the generated bindings explaining why, often with a link to one of the pages below. To find the comment, look at the ge…docs/errors/index.md
- Nested type errorsRust does not offer a way to model nested C++ types. To compensate for this, similar to Rust protocol buffers and their nested message support, Crubit creates a snake_case module to hold nested types…docs/errors/nested_type.md
- Unknown attribute errorsC++ and Rust allow the use of attributes to customize the behavior and semantics of a piece of syntax. For example, the C++ [[nodiscard]] and Rust #[must_use] attributes cause a compilation error if…docs/errors/unknown_attribute.md
- Unknown target errorsWhen generating Rust bindings for a C++ library, Crubit needs to know which Bazel target owns every header that defines a type used in the library's API. That is how it decides, for example, that abs…docs/errors/unknown_target.md
- Unsupported type errorsSometimes, a type is not supported in Crubit. This presents a problem for all functions that use that type, and so Crubit aims to actually cover all C++ types, even if in only minimal form. However,…docs/errors/unsupported_type.md
- Visibility errorsIn Crubit's :wrapper mode, pub(crate) types can be generated, which are restricted to a specific library. This is generally a temporary state of affairs: as a way of enabling types to be used for a s…docs/errors/visibility.md
Skipped (19)
These manifests were not served. Fix them and push: the next commit is indexed again.
docs/cpp/index.mdlink_missinga link names no file of the repository (Crubit)docs/design/design.mdlink_missinga link names no file of the repository (And)docs/design/lifetime_annotations_cpp.mdlink_missing7 links name no file of the repository (The, will, “, ...)docs/design/lifetimes_static_analysis.mdlink_missing2 links name no file of the repository (The, Note,)docs/rust/maybe_uninit.mdlink_missinga link names no file of the repository (We)docs/rust/movable_types.mdlink_missinga link names no file of the repository (The)docs/types/pointer.mdlink_missinga link names no file of the repository (C++)docs/types/primitive.mdlink_missing4 links name no file of the repository (Rust, Note, Unlike, ...)docs/cpp/best_practices.mdfragment_not_founda link names a section its file does not have (classes_and_structs.md#rust_movable): a fragment is the words a heading begins with, in lower case and joined by hyphensdocs/cpp/building.mdfragment_not_founda link names a section its file does not have (../overview/bazel.md#rust_api_from_cpp): a fragment is the words a heading begins with, in lower case and joined by hyphensdocs/cpp/classes_and_structs.mdfragment_not_founda link names a section its file does not have (./cookbook.md#rust_movable): a fragment is the words a heading begins with, in lower case and joined by hyphensdocs/errors/unknown_target.mdfragment_not_founda link names a section its file does not have (unsupported_type.md#fix-wrapper): a fragment is the words a heading begins with, in lower case and joined by hyphensdocs/overview/build_systems.mdfragment_not_found3 links name sections their files do not have (bazel.md#cpp_api_from_rust, bazel.md#rust_api_from_cpp, ../index.md#test-matrix): a fragment is the words a heading begins with, in lower case and joined by hyphensdocs/overview/reference_safety.mdfragment_not_found2 links name sections their files do not have (../cpp/cookbook.md#behavior_objects, ../cpp/cookbook.md#thread_safety): a fragment is the words a heading begins with, in lower case and joined by hyphensdocs/overview/status.mdfragment_not_found7 links name sections their files do not have (../cpp/std.md#unique_ptr, ../cpp/std.md#shared_ptr, ../cpp/std.md#vector, ...): a fragment is the words a heading begins with, in lower case and joined by hyphensdocs/overview/unstable_features.mdfragment_not_founda link names a section its file does not have (../cpp/classes_and_structs.md#rust_movable): a fragment is the words a heading begins with, in lower case and joined by hyphensdocs/rust/enums.mdfragment_not_founda link names a section its file does not have (movable_types.md#movable_wrapper): a fragment is the words a heading begins with, in lower case and joined by hyphensdocs/rust/structs.mdfragment_not_founda link names a section its file does not have (movable_types.md#movable_wrapper): a fragment is the words a heading begins with, in lower case and joined by hyphensdocs/types/box.mdfragment_not_founda link names a section its file does not have (../cpp/classes_and_structs.md#rust_movable): a fragment is the words a heading begins with, in lower case and joined by hyphens