The tdx::report module currently uses a homebrewed binary blob struct to serialize TDX attestation data. Using a library like bytemuck could simplify the implementation and avoid the need for custom implementations for serialization functions. An alternative could be to use macros for the deserialization.
Originally posted by @sandlbn in #1 (comment) and #1 (comment)