npm-release-binaries-0.0.7 is not a library.
npm-release-binaries
Generate and publish platform-specific npm packages from Rust binaries
Usage
Configure your packages in npm-release-binaries.toml:
[]
= "@scope/my-cli"
= "My CLI tool"
= "https://github.com/org/repo/releases/download/v{{version}}"
= "@scope/cli-{{target}}"
= "public"
[]
= true
= true
= true
= true
= true
Artifact naming convention
When using artifacts-dir (e.g. in CI), the tool expects archive files named
{bin}-{rust_triple}.{ext}, where bin defaults to the package key. For
a package with bin = "my-cli", the expected files are:
| Target | Expected archive file |
|---|---|
darwin-arm64 |
my-cli-aarch64-apple-darwin.tar.gz |
darwin-x64 |
my-cli-x86_64-apple-darwin.tar.gz |
linux-arm64 |
my-cli-aarch64-unknown-linux-gnu.tar.gz |
linux-x64 |
my-cli-x86_64-unknown-linux-gnu.tar.gz |
win32-x64 |
my-cli-x86_64-pc-windows-msvc.zip |
Each archive must contain the binary at any path — the tool matches by filename
(my-cli or my-cli.exe for Windows).
You can override the archive name for a specific target:
[]
= { = "custom-name.tar.gz" }
When archive-base-url is set and no artifacts-dir is provided (local
testing), archives are fetched from {archive-base-url}/{archive-name}.
Generate npm packages:
Publish to npm:
License
Apache-2.0