Constant cpp_common::STRUCT_METADATA_MAGIC [] [src]

pub const STRUCT_METADATA_MAGIC: [u8; 128] = [b'r', b'u', b's', b't', b'c', b'p', b'p', b'~', b'm', b'e', b't', b'a', b'd',
 b'a', b't', b'a', 91, 74, 112, 213, 165, 185, 214, 120, 179, 17, 185, 25,
 182, 253, 82, 118, 148, 29, 139, 208, 59, 153, 78, 137, 230, 54, 26, 177,
 232, 121, 132, 166, 44, 106, 218, 57, 158, 33, 69, 32, 54, 204, 123, 226, 99,
 117, 60, 173, 112, 61, 56, 174, 117, 141, 126, 249, 79, 159, 6, 119, 2, 129,
 147, 66, 135, 136, 212, 252, 231, 105, 239, 91, 96, 232, 113, 94, 164, 255,
 152, 144, 64, 207, 192, 90, 225, 171, 59, 154, 60, 2, 0, 191, 114, 182, 38,
 134, 134, 183, 212, 227, 31, 217, 12, 5, 65, 221, 150, 59, 230, 96, 73, 62]

This constant is expected to be a unique string within the compiled binary which preceeds a definition of the metadata. It begins with rustcpp~metadata, which is printable to make it easier to locate when looking at a binary dump of the metadata.

NOTE: In the future we may want to use a object file parser and a custom section rather than depending on this string being unique.