File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11Now let's suppose we want to generate bindings for a non-system library. We
22will be the same crate setup as the previous tutorial. First let's create a new
3- directory ` hello ` with two files inside it. A ` c ` source file ` hello.c `
3+ directory ` hello ` with two files inside it. A C source file ` hello.c `
44containing
55``` c
66int hello () {
77 return 42;
88}
99```
10- and a ` c ` header file ` hello.h ` containing
10+ and a C header file ` hello.h ` containing
1111``` c
1212int hello ();
1313```
14- given that the library has not been compiled yet, we need to modify the
14+
15+ Given that the library has not been compiled yet, we need to modify the
1516` build.rs ` build script to compile the ` hello.c ` source file into a static
1617libary:
1718
@@ -103,4 +104,3 @@ fn main() {
103104 .expect("Couldn't write bindings!");
104105}
105106```
106-
You can’t perform that action at this time.
0 commit comments