bazel /
crubit /
016eb36e38a859ee4d5d0689aa663d47b91edbe6 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
- lifetime_annotations/
- rs_bindings_from_cc/
- CODE_OF_CONDUCT
- CONTRIBUTING
- LICENSE
- 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.