In [[ https://phab.comm.dev/D4540#142224 | D4540 ]] comments @varun suggested using [[ https://crates.io/crates/anyhow | anyhow ]] to easily handle errors. It looks like a good and tested [[ https://github.com/geekbrother/cxx-corrosion-cmake/blob/cece42d59545a5ac8f8c36a2ca278b6bc22679a7/src/cxxbridge_code/src/lib.rs#L37 | playground ]] solution.
To use it in a Tunnelbroker codebase we need to add it to the `Cargo.toml` dependencies.
`Cargo.lock` file is also included in this diff.