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 1
1
Now let's suppose we want to generate bindings for a non-system library. We
2
2
will 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 `
4
4
containing
5
5
``` c
6
6
int hello () {
7
7
return 42;
8
8
}
9
9
```
10
- and a ` c ` header file ` hello.h ` containing
10
+ and a C header file ` hello.h ` containing
11
11
``` c
12
12
int hello ();
13
13
```
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
15
16
` build.rs ` build script to compile the ` hello.c ` source file into a static
16
17
libary:
17
18
@@ -103,4 +104,3 @@ fn main() {
103
104
.expect("Couldn't write bindings!");
104
105
}
105
106
```
106
-
You can’t perform that action at this time.
0 commit comments