Skip to content

Commit 2f30a04

Browse files
authored
add instruction for build.rs (#51)
1 parent 09f3058 commit 2f30a04

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,15 @@ Then update crate type to ```cdylib``` to generate node.js compatible native mod
9797
crate-type = ["cdylib"]
9898
```
9999

100+
Finally, add ```build.rs``` at the top of the project with following content:
101+
102+
```
103+
fn main() {
104+
node_bindgen::build::configure();
105+
}
106+
```
107+
108+
100109
# Example
101110

102111
Here is a function that adds two numbers. Note that you don't need to worry about JS conversion.

0 commit comments

Comments
 (0)