From a0edd51120deddf56167134438c3295c6fc51a19 Mon Sep 17 00:00:00 2001 From: Jason Lin Date: Mon, 28 Jul 2025 12:29:32 +1000 Subject: [PATCH] Add a note about using rust-bindgen (#2818) Co-authored-by: Dmitri Gribenko --- src/unsafe-rust/exercise.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/unsafe-rust/exercise.md b/src/unsafe-rust/exercise.md index 208ec97f..14da5368 100644 --- a/src/unsafe-rust/exercise.md +++ b/src/unsafe-rust/exercise.md @@ -74,3 +74,13 @@ functions and methods: {{#include exercise.rs:main}} ``` + +
+ +FFI binding code is typically generated by tools like [bindgen], rather than +being written manually as we are doing here. However, bindgen can't run in an +online playground. + +
+ +[bindgen]: https://github.com/rust-lang/rust-bindgen