gimli-rs / gimli

A library for reading and writing the DWARF debugging format

Home Page:https://docs.rs/gimli/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Are there any plans to add c binding ?

xuxbuptisc opened this issue · comments

commented

gimli is a great dwarf library, are there any plans to add c binding?

No plans. Before doing such work, there would need to be significant reasons to use gimli over the existing C/C++ libraries that are more feature complete and more widely tested. Currently gimli's main feature is that it is written in Rust and provides an API that is suitable for Rust, and calling it from C means you lose some of the benefit of that.

Another reason(the one I am using it for) is for commercial projects: indeed, libdwarf seems to be LGPL, but this requires still more than the licenses of your library

LLVM is Apache 2.0, perhaps it is suitable.