cr2-decode is a library/tool which can read .cr2 read files and extract (convert) it to jpeg or display raw information (camera make, model, exposure settings, sensor information etc)
The public part of the API is written in C so it can be used by higher level languages on any OS without need for C wrappers.