cbindgen already simplifies `MaybeUninit<T>` and `ManuallyDrop<T>` to `T`. This adds `Pin<T>` as well.
22 lines
202 B
TOML
22 lines
202 B
TOML
header = """
|
|
#if 0
|
|
''' '
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
template <typename T>
|
|
using Pin = T;
|
|
template <typename T>
|
|
using Box = T*;
|
|
#endif
|
|
|
|
#if 0
|
|
' '''
|
|
#endif
|
|
"""
|
|
[export]
|
|
exclude = [
|
|
"Pin",
|
|
"Box"
|
|
]
|