Move cmdline arg parsing to a separate compilation unit (with tests).

This CL takes `QCHECK_OK`s (related to --public_headers,
--targets_and_headers and other cmdline parameters) from
`rs_bindings_from_cc.cc` and moves them into separate (unit-testable!)
functions in a new compilation unit.  The old behavior is mostly
preserved, except for the following:

*) instead of `QCHECK`-ing the new functions return an
   `absl::StatusOr<...>`.

*) --do_nothing is applied later, after validation of *all* cmdline
   arguments

*) some error messages may have been tweaked

PiperOrigin-RevId: 431974972
5 files changed
tree: 838d5ce221f9eda6a1a59720324f0f9ad0502d77
  1. lifetime_annotations/
  2. rs_bindings_from_cc/
  3. CODE_OF_CONDUCT
  4. CONTRIBUTING
  5. LICENSE
  6. README.md
README.md

Crubit: C++/Rust Bidirectional Interop Tool

Extremely experimental interop tooling for C++ and Rust.

Please don‘t use, this is an experiment and we don’t yet know where will it pull us. There will be breaking changes without warning. Unfortunately, we can't take contributions at this point.