Using libclang to generate C bindings for Muon
Muon aims to make it easy to use code that’s written in other languages. Muon has had support for working with foreign C interfaces from the beginning, but using the feature can be a bit cumbersome. Foreign interface declarations (e.g. functions, structs, etc.) have to be specified manually, which is tedious. So let’s automate this, by building “ffigen”: a standalone tool that takes a .c or .h file and generates a Muon file with corresponding foreign interface declarations (a.k.a. “bindings”).
Muon development blog