7.2.1 桥接模块
01-桥接模块 — Comprehensive Rust
1分钟内可阅读完
译文 · 基于 Comprehensive Rust
原文链接: https://google.github.io/comprehensive-rust/android/interoperability/cpp.html
CXX crate 实现了 Rust 与 C++ 之间的安全互操作。
整体方法如下图:
01-桥接模块 — Comprehensive Rust
02-Rust 桥接 — Comprehensive Rust
03-生成的 C++ — Comprehensive Rust
04-C++ 桥接 — Comprehensive Rust
05-共享类型 — Comprehensive Rust
06-共享枚举 — Comprehensive Rust
07-Rust 错误处理 — Comprehensive Rust
08-C++ 错误处理 — Comprehensive Rust
09-其他类型 — Comprehensive Rust
10-为 Android 构建:Genrules — Comprehensive Rust
11-为 Android 构建:C++ — Comprehensive Rust
12-为 Android 构建:Rust — Comprehensive Rust