As part of my Swift interop for Rust project (and eventually the reverse Rust interop for Swift), I'm going to want to generate bindings to Swift modules. Ideally I would have type layouts (fields, variants, etc.) to generate structs and symbol information (mangled names and signatures) to generate functions.
I'd like to start my proof of concept with generating bindings for the Standard Library and Apple frameworks.
Are .swiftmodule files sufficient or at least helpful for that? If so where can I find documentation on their format? If not, how else could I get that information?