什么是 rust-ffi?
用于 C 互操作性的 Rust FFI 技能。从 Rust 调用 C 库、使用 bindgen 生成 Rust 绑定、使用 cbindgen 将 Rust 函数导出到 C、围绕不安全的 FFI 编写安全包装器或链接系统和供应商库时使用。在有关 bindgen、cbindgen、extern "C"、不安全 FFI、Rust C 绑定、从 Rust 链接 C 或 sys crate 的查询时激活。 来源:mohitmishra786/low-level-dev-skills。