Remove failure when bindgen cc_lib does not contain static library
I don't think this failure is required: it's fine to bindgen a library with only headers and no static library. Should this error instead be triggering when the cc_library has non-header files but isn't static?
Fixes #2704
Thanks @jwnrt, the PR makes sense. Would you mind adding a separate example in examples/bindgen (for example a header that is used from both Rust and C++, and both libraries meet in a common binary) showing everything links together well?
Sure, I've added an example, let me know if it matches what you expected EDIT: also rebased.
Fixed those formatting problems (hopefully you folks don't mind me rebasing to keep the branch up to date)
Friendly bump: this is ready for review again. We can apply this as a patch downstream, so no rush from me.