doc: update napi-rs usage

resolve https://github.com/napi-rs/napi-rs/issues/78
This commit is contained in:
LongYinan 2020-06-21 10:57:04 +08:00
parent 91c1ab9ea4
commit c5d57969fe
No known key found for this signature in database
GPG key ID: A3FFE134A3E20881

View file

@ -81,8 +81,8 @@ Run `cargo build` to produce the `Dynamic lib` file. And install the `napi-rs` t
```json
{
"package": "your pkg",
"dependencies": {
"napi-rs": "^0.1"
"devDependencies": {
"napi-rs": "latest"
},
"scripts": {
"build": "cargo build && napi",