Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
morenol authored Sep 27, 2023
1 parent 6a3d241 commit 9c8b118
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

# Compatibility with Node.js version

This project uses the v7 of Node N-API. Please see following [compatibility](https://nodejs.org/api/n-api.html#n_api_n_api_version_matrix) matrix.
This project uses the v8 of Node N-API. Please see following [compatibility](https://nodejs.org/api/n-api.html#n_api_n_api_version_matrix) matrix.

Following OS are supported:
* Linux
Expand Down Expand Up @@ -81,13 +81,13 @@ Add two dependencies to your projects' ```Cargo.toml```.
Add ```node-bindgen``` as a regular dependency (as below):
```
[dependencies]
node-bindgen = { version = "5.1" }
node-bindgen = { version = "6.0" }
```

Then add ```node-bindgen```'s procedure macro to your build-dependencies as below:
```
[build-dependencies]
node-bindgen = { version = "5.1", features = ["build"] }
node-bindgen = { version = "6.0", features = ["build"] }
```

Then update crate type to ```cdylib``` to generate node.js compatible native module:
Expand Down Expand Up @@ -155,7 +155,7 @@ Then in the Node.js, rust function can be invoked as normal node.js function:

```js
$ node
Welcome to Node.js v14.0.0.
Welcome to Node.js v18.18.0.
Type ".help" for more information.
> let addon = require('./dist');
undefined
Expand Down

0 comments on commit 9c8b118

Please sign in to comment.