|
il y a 5 ans | |
---|---|---|
.github | il y a 5 ans | |
__test__ | il y a 5 ans | |
npm | il y a 5 ans | |
scripts | il y a 5 ans | |
src | il y a 5 ans | |
.gitignore | il y a 5 ans | |
Cargo.toml | il y a 5 ans | |
LICENSE | il y a 5 ans | |
README.md | il y a 5 ans | |
build.rs | il y a 5 ans | |
index.d.ts | il y a 5 ans | |
index.js | il y a 5 ans | |
package.json | il y a 5 ans | |
yarn.lock | il y a 5 ans |
@napi-rs/package-template
Template project for writing node package with napi-rs.
Rust
NodeJS@8.9+
which supported N-API
yarn@1.x
And you will see:
$ ava --verbose
✔ sync function from native code
✔ sleep function from native code (201ms)
─
2 tests passed
✨ Done in 1.12s.
Ensure you have set you NPM_TOKEN in Github
project setting.
In Settings -> Secrets
, add NPM_TOKEN into it.
When you want release package:
yarn version [xxx]
git push --follow-tags
Github actions will do the rest job for you.