Hello,

DIP1028 (@safe by default) got accepted yesterday, so I think it'd be nice if gir-to-d generated @safe code so users can use glibd>kd (and other projects generated by gir-to-d) in @safe environments. I suppose gir-to-d could do something similar to what gtk-rs' gir tool does: wrap the unsafe function and then make a the call to the C function in a @trusted lambda or something along those lines. If there's interest for that I could try to give it a go during semester holidays.