C++ bindings for Rust type aliases.
A rust Rust type aliases, such as pub type X = ...;, is mapped to the
equivalent C++ type alias, such as using X = ...;.
Limitations:
- The type must be a supported type.
- The alias must not be generic: aliases with generic parameters, such as
pub type X<T> = ..., are not supported.
Example
Given the following Rust crate:
pub type TypeAlias = i32;
Crubit will generate the following bindings:
using TypeAlias CRUBIT_INTERNAL_RUST_TYPE(
":: example_crate_golden :: TypeAlias") = ::std::int32_t;