From 6d3e23fe9c7c27bb096992db3f445f0296cff5a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=A4ufler?= Date: Wed, 4 Sep 2024 22:44:42 +0200 Subject: [PATCH] Fix small error in c bindings --- src/interoperability/c-with-rust.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interoperability/c-with-rust.md b/src/interoperability/c-with-rust.md index 9c56c6aa..74ec868b 100644 --- a/src/interoperability/c-with-rust.md +++ b/src/interoperability/c-with-rust.md @@ -87,7 +87,7 @@ Rather than manually generating these interfaces, which may be tedious and error 3. Feed this `bindings.h` file, along with any compilation flags used to compile your code into `bindgen`. Tip: use `Builder.ctypes_prefix("cty")` / `--ctypes-prefix=cty` and `Builder.use_core()` / `--use-core` to make the generated code `#![no_std]` compatible. -4. `bindgen` will produce the generated Rust code to the output of the terminal window. This file may be piped to a file in your project, such as `bindings.rs`. You may use this file in your Rust project to interact with C/C++ code compiled and linked as an external library. Tip: don't forget to use the [`cty`](https://crates.io/crates/cty) crate if your types in the generated bindings are prefixed with `cty`. +4. `bindgen` will produce the generated Rust code to the output of the terminal window. This output may be piped to a file in your project, such as `bindings.rs`. You may use this file in your Rust project to interact with C/C++ code compiled and linked as an external library. Tip: don't forget to use the [`cty`](https://crates.io/crates/cty) crate if your types in the generated bindings are prefixed with `cty`. [bindgen]: https://github.com/rust-lang/rust-bindgen [bindgen user's manual]: https://rust-lang.github.io/rust-bindgen/