I can't figure out the actual file format, partly because your document exposes bare UMLs [1]. Also ideally you better do the runtime detection for x86-64 features (otherwise, well, you need to do what you are doing now).
(I have much more ambitious and possibly competiting format called Aqueous [2], as you may have seen in r/rust, but these points are genuine advices for you ;-)