From 7952ab776bf58116ab862f4eeee7c64e548334dc Mon Sep 17 00:00:00 2001 From: sify21 Date: Wed, 24 Sep 2025 16:21:09 +0800 Subject: [PATCH] Update ffi.md a typo in ffi.md --- src/ffi.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ffi.md b/src/ffi.md index 2eb4337..d88cfe2 100644 --- a/src/ffi.md +++ b/src/ffi.md @@ -25,7 +25,7 @@ libc = "0.2.0" Because [snappy](https://github.com/google/snappy) is a static library by default. So there is no C++ std linked in the output artifact. -n order to use this foreign library in Rust, we have to manually specify that we want to link stdc++ in our project. +In order to use this foreign library in Rust, we have to manually specify that we want to link stdc++ in our project. The easiest way to do this is by setting up a build script. First edit `Cargo.toml`, inside `package` add `build = "build.rs"`: