9.1 语言互操作
01-语言互操作 — Comprehensive Rust
1分钟内可阅读完
译文 · 基于 Comprehensive Rust
原文链接: https://google.github.io/comprehensive-rust/unsafe-deep-dive/ffi.html
本段课程介绍 Rust 的外部函数接口(foreign function interface,FFI)。
大纲:
01-语言互操作 — Comprehensive Rust
02-策略 — Comprehensive Rust
03-考量:类型安全 — Comprehensive Rust
语言差异 — Comprehensive Rust
04-封装 abs(3) — Comprehensive Rust
05-封装 srand(3) 与 rand(3) — Comprehensive Rust
06-练习:C 库 — Comprehensive Rust
07-练习:C++ 库 — Comprehensive Rust