Closed viniciusd closed 4 years ago
I see it eventually includes some system libraries, as:
windows.h
mach/mach_time.h
time.h
sys/time.h
stdio.h
stdlib.h
stdarg.h
math.h
stdio.h
string.h
R_ext/Print.h
I see there is some blackilisting/whitelisting in the docs, but I can't see how to skip those libraries
Yes, you probably want whitelist_function("osqp_.*")
, which will generate everything needed for those functions you want.
(If it's not working, I'd be interested in why)
Testing it right now, thanks
Reduced to 1.8k lines of code, which is very close to the 1.7k of header files (oqsp includes some other local headers).
Gonna give the bindings a try
Ok, please reopen if that doesn't cut it :)
Input C/C++ Header
Bindgen Invocation
Question/issue
Running that snippet on the given header (which is 400-ish LoC long) is generating 25k lines of Rust, which certainly doesn't seem right to me. Are there some arguments I should tune?
I see a series of mathematical functions, for example, which aren't in the header neither seem included: