swift-bindgen icon indicating copy to clipboard operation
swift-bindgen copied to clipboard

Parse framework TBD (yaml) files in swift-bindgen crate

Open simlay opened this issue 1 year ago • 0 comments

There's a good chance this isn't the correct approach but I'm gonna give it a try.

I've decided to take a look at the Swift tbd files. These are basically headers for dylibs in yaml form. Things like libswiftCore.tbd have a bunch of mangled names. To demangle the names, I use a swift function to get the demangled name, I call this function from rust but compile the swift source for that in a build script.

simlay avatar Jun 13 '24 20:06 simlay