blob: 5bbddc8b2375c9b31170e06741796a83b2274581 [file] [log] [blame]
Brian Silverman10599932022-08-15 06:05:53 -07001#ifndef AOS_UUID_FOR_RUST_H_
2#define AOS_UUID_FOR_RUST_H_
3
4#include "aos/uuid.h"
5
6namespace aos {
7
8// An alternative version of UUID to feed autocxx, to work around
9// https://github.com/google/autocxx/issues/266.
10/// <div rustbindgen replaces="aos::UUID"></div>
11struct RustUUID {
12 uint8_t data[16];
13};
14
15static_assert(sizeof(UUID) == sizeof(RustUUID));
16static_assert(alignof(UUID) == alignof(RustUUID));
17
18} // namespace aos
19
20#endif // AOS_UUID_FOR_RUST_H_