Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@napi-rs/cli
Advanced tools
@napi-rs/cli
Cli tools for napi-rs
DEBUG="napi:*" napi [command]
napi build
Build command. Build rust codes and copy the dynamic lib binary file to the dist dir.
--platform
default
false
Append platform-arch-[abi]
name to dist file. eg: index.darwin-x64.node
.
--release
default
false
Is release build. This flag will be passed to Cargo
directly.
--features
default
''
Cargo features, passthrough to cargo build
command.
--config,-c
default
package.json
napi-rs
config file name. napi-rs
config example :
{
"name": "@native-binding/fib",
"version": "0.1.0",
"napi": {
"name": "fib", // binary name
"triples": {
"defaults": true, // default true, if this value is true, will build `x86_64-pc-windows-msvc`, `x86_64-apple-darwin` and `x86_64-unknown-linux-gnu`
"addition": [
"x86_64-unknown-linux-musl",
"x86_64-unknown-freebsd",
"aarch64-unknown-linux-gnu"
]
}
}
}
--cargo-name
default
undefined
If not set, cli will read the package.name
field in Cargo.toml
under process.cwd()
. The -
in the name will be replaced with _
.
--target
default
undefined
This value will be passed to Cargo build
command directly. eg: napi build --target x86_64-unknown-linux-musl
--cargo-flags
default
undefined
Other flags you want pass to Cargo build
.
napi artifacts
Copy artifact files in Github actions.
FAQs
Cli tools for napi-rs
The npm package @napi-rs/cli receives a total of 42,096 weekly downloads. As such, @napi-rs/cli popularity was classified as popular.
We found that @napi-rs/cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.