Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Attributes to fine-tune generated bindings

Crubit offers attributes to allow users to customize the functionality of the generated bindings, such as renaming a type or function or converting Rust values into a particular C++ type.

To use these attributes, add //support:crubit_annotate to your rust_library’s proc_macro_deps (not deps, since crubit_annotate is a procedural macro crate). Specific documentation for the attributes can be seen in the docs for that library.