google / google/comprehensive-rust

Worth keeping android/interoperability/cpp.html and chromium/interoperability-with-cpp.html in sync?

Open
#1,523 5 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue
Dominant language
Rust
Stars
33.4k
Forks
2.1k
Avg merge
1d 3h
Merged PRs (30d)
10

Description

Android-specific and Chromium-specific parts of the course both talk about using https://cxx.rs for C++/Rust interop. Is it worth it to somehow unify some of the content?

In particular, both introductory slides (at android/interoperability/cpp.html and chromium/interoperability-with-cpp.html) have a diagram of how `cxx` works, but Chromium also has additional speaker notes where it lists some benefits (over manually authoring the bindings).

PS. Some of the content will need to remain Android-specific and/or Chromium-specific:
* Error handling (Chromium disables C++ exceptions, so Android slides don't apply)
* Integration with [Chromium's `gn` templates](https://google.github.io/comprehensive-rust/chromium/interoperability-with-cpp/using-cxx-in-chromium.html) vs [`genrule`s on Android side](https://google.github.io/comprehensive-rust/android/interoperability/cpp/android-cpp-genrules.html)

/cc @adetaylor

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.