|
%!s(int64=5) %!d(string=hai) anos | |
---|---|---|
.github | %!s(int64=5) %!d(string=hai) anos | |
__test__ | %!s(int64=5) %!d(string=hai) anos | |
npm | %!s(int64=5) %!d(string=hai) anos | |
scripts | %!s(int64=5) %!d(string=hai) anos | |
src | %!s(int64=5) %!d(string=hai) anos | |
.gitignore | %!s(int64=5) %!d(string=hai) anos | |
Cargo.toml | %!s(int64=5) %!d(string=hai) anos | |
LICENSE | %!s(int64=5) %!d(string=hai) anos | |
README.md | %!s(int64=5) %!d(string=hai) anos | |
build.rs | %!s(int64=5) %!d(string=hai) anos | |
index.d.ts | %!s(int64=5) %!d(string=hai) anos | |
index.js | %!s(int64=5) %!d(string=hai) anos | |
package.json | %!s(int64=5) %!d(string=hai) anos | |
yarn.lock | %!s(int64=5) %!d(string=hai) anos |
@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.