Generating beautiful bindings is quite easy with GI Crystal. I won't go too much into detail, please read the repo docs for more info, however I'll cover the basic usage.
- Add the following to your
developer_dependencies: gi-crystal: github: hugopl/gi-crystal
$ shards install
Inside of it, following the GI Crystal spec, you define the Typelib you want to build bindings for and what to include or exclude, e.g.:
namespace: Adw version: '1'
- Then all what's left to do is run the generator: