wasm-bindgen/wasm-pack
58.6
Adequate · 14 November 2026
3.7k
lines of production code
Rust
primary language
5
measurements over time
What this system is
Features
Add --access flag to control npm package visibility
The publish command now supports an --access flag (accepting 'public' or 'restricted') to explicitly set the access level for npm packages, ensuring scoped packages can be published with restricted visibility as required by npm. This change introduces the access.rs module to parse and validate these levels and updates the publish logic to pass this setting to the underlying npm publish operation.
src/command/publish · high confidence
Added wasm-pack project template
The repository now includes a \wasm-pack-template\ directory containing a starter project for Rust and WebAssembly development. This template provides the necessary structure to compile Rust libraries into WebAssembly and publish them to NPM, including pre-configured files for \wasm-bindgen\, panic logging via \console\_error\_panic\_hook\, and basic test infrastructure. Users can now use \wasm-pack new\ to initialize projects based on this included template.
wasm-pack-template · high confidence
Initial project scaffolding and documentation
The repository is initialized with core project files, including a \.gitignore\ to exclude build artifacts and IDE configurations, a \CHANGELOG.md\ tracking version history, and standard legal documents (\LICENSE-APACHE\, \LICENSE-MIT\). A comprehensive \README.md\ is added to describe the tool's purpose, prerequisites, and commands, alongside \CONTRIBUTING.md\ and \CODE\_OF\_CONDUCT.md\ to guide community participation. This entry establishes the foundational structure and documentation for the project.
(repo-wide) · high confidence
Initial release of wasm-pack
This is the first release of wasm-pack, a CLI tool designed to simplify the workflow for building, testing, and publishing Rust/Wasm projects. It provides commands to build WebAssembly binaries using wasm-bindgen, run tests, and publish packages to npm. The tool includes features for automatic binary installation, progress reporting with emojis, and support for various build targets like Node.js, Web, and Deno.
src · high confidence
New \`wasm-pack test\` command and \`generate\` command for scaffolding projects
This release introduces two new CLI commands. The \wasm-pack test\ command allows you to run Rust tests in Node.js or browsers (Chrome, Firefox, Safari) with support for headless mode, specific driver paths, and extra cargo options. The \wasm-pack generate\ command (aliased as \new\) scaffolds a new Rust WASM project from a template using \cargo-generate\. Additionally, the \build\ command now supports a \--target deno\ option for generating Deno-compatible modules.
src/command · high confidence
New wasm-pack test subcommand for running Wasm tests
A new \wasm-pack test\ subcommand has been added, allowing users to run \cargo test\ against Rust crates compiled to WebAssembly. This feature includes infrastructure for managing WebDriver binaries (Chrome, Firefox, Safari) to support browser-based testing, and utilizes the \child::run\ helper to execute the test commands.
src/test · high confidence
Behavioural changes
Native binary installation replaces deprecated package
The npm package now installs the wasm-pack binary directly from GitHub releases instead of relying on the deprecated \binary-install\ package. This new installer script supports Windows, Linux, and macOS, including arm64 architectures (Apple Silicon and Linux ARM64), and automatically downloads and extracts the correct binary for the user's platform.
npm · high confidence
Refactored NPM manifest generation into modular, target-specific structs
The NPM manifest generation logic has been reorganized into separate modules for CommonJS, ES Modules, and No Modules targets. This change introduces distinct serialization structures for each target type, allowing for more precise control over the generated package.json fields. Specifically, the ES Modules manifest now includes a \sideEffects\ field (mapped from \side\_effects\) and explicitly sets the \type\ field to \module\, while the CommonJS and No Modules manifests retain their respective \main\ and \browser\ entry points. This modular approach ensures that each output format adheres strictly to its specific requirements, improving the accuracy of the generated NPM packages.
src/manifest/npm · high confidence
Refactored installation logic into modular components with improved platform support
The installation subsystem has been restructured into distinct modules (\arch\, \krate\, \mode\, \os\, \tool\) to improve maintainability and clarity. This change introduces explicit support for macOS aarch64 and Linux aarch64 targets, ensuring prebuilt binaries are correctly downloaded for these architectures. It also replaces the \curl\ dependency with \ureq\ for HTTP requests, adds proxy environment support, and includes a \--no-gitignore\ flag for the generate command. The logic now cleanly separates architecture detection, OS identification, and tool-specific download URLs, enhancing reliability across different platforms.
src/install · high confidence
Support for custom build profiles and enhanced manifest parsing
The manifest module now supports defining custom build profiles (dev, release, profiling, and custom) via \Cargo.toml\ under \\[package.metadata.wasm-pack.profile\]\, allowing users to configure wasm-bindgen and wasm-opt settings per profile. It also improves manifest reading by respecting \package.readme\ and \license-file\ fields from Cargo.toml, copying the \homepage\ field to package.json, and handling workspace inheritance. Additionally, the module includes better error reporting for typos in wasm-pack configuration keys using Levenshtein distance and rate-limits version check requests to avoid API abuse.
src/manifest · high confidence
Support for tier-3 wasm64 targets and arbitrary target verification
The build module now supports compiling for tier-3 targets like wasm64-unknown-unknown by verifying nightly toolchain prerequisites and automatically installing the rust-src component if missing, rather than relying on prebuilt sysroots. Additionally, target availability checks have been rewritten to use rustc's target-libdir for more robust detection, and the build process now correctly handles relative paths in extra options by converting them to absolute paths before passing them to cargo.
src/build · high confidence
Test coverage
Added WebDriver binary installation tests; Expanded integration test coverage for wasm-pack core features; New test utility modules for fixtures, manifests, and file operations.
Dependencies
Update to wasm-pack 0.15.0 with dependency refreshes
This release updates the wasm-pack tool to version 0.15.0. The Rust dependencies have been updated, including the switch to clap 4, the use of ureq instead of reqwest for HTTP requests, and updates to binary-install (v0.4.1) and various security-related crates like rustls and ring. The npm installer package has been updated to use tar v7.5.16 and requires Node.js \>=16. Additionally, the included wasm-pack-template has been updated to use wasm-bindgen 0.2.84.
(dependencies) · high confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings — which rule fired, in which file, on which line, and how to fix it — are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.
Score
- CAI 57 → 59 (+1.5)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.
Lenses
- Code Health 97 → 93 (-3.6)
- Architecture 100 → 100 (+0.0)
- Maturity 51 → 53 (+2.3)
- Readiness 68 → 68 (+0.6)
- Security 54 → 56 (+1.9)
- Performance 60 → 60 (+0.0)
Resolved (27)
- Duplicated block (10 lines × 2) (src/manifest/mod.rs)
- Hotspot: src/install/mod.rs (src/install/mod.rs)
- Inverted test pyramid
- Job token omits the contents scope its checkout needs
- Medium CVE: RUSTSEC-2026-0381 (Cargo.lock)
- Medium advisory (unsound): RUSTSEC-2026-0190 (Cargo.lock)
- Medium advisory (unsound): RUSTSEC-2026-0395 (Cargo.lock)
- Medium advisory (unsound): RUSTSEC-2026-0396 (Cargo.lock)
- Medium advisory (unsound): RUSTSEC-2026-0397 (Cargo.lock)
- Medium advisory (unsound): RUSTSEC-2026-0399 (Cargo.lock)
- Medium advisory (unsound): RUSTSEC-2026-0400 (Cargo.lock)
- Medium advisory (unsound): RUSTSEC-2026-0401 (Cargo.lock)
- Medium advisory (unsound): RUSTSEC-2026-0402 (Cargo.lock)
- Medium advisory (unsound): RUSTSEC-2026-0404 (Cargo.lock)
- Medium advisory (unsound): RUSTSEC-2026-0405 (Cargo.lock)
- Medium advisory (unsound): RUSTSEC-2026-0406 (Cargo.lock)
- Medium vulnerability: [GHSA redacted] (Cargo.lock)
- Medium vulnerability: RUSTSEC-2026-0367 (Cargo.lock)
- Medium vulnerability: RUSTSEC-2026-0391 (Cargo.lock)
- Medium vulnerability: RUSTSEC-2026-0398 (Cargo.lock)
- …and 7 more
New (28)
- Duplicated block (10 lines × 2) (src/manifest/mod.rs)
- Duplicated block (13–14 lines × 2) (src/build/mod.rs)
- Edited copies of one member (3 members, 14+ corresponding lines) (src/build/wasm_target.rs)
- Edited copies of one member (3 members, 19+ corresponding lines) (src/command/test.rs)
- Edited copies of one member (4 members, 11+ corresponding lines) (src/build/wasm_target.rs)
- Edited copies of one member (4 members, 24+ corresponding lines) (src/manifest/mod.rs)
- Edited copy of a member (10 corresponding lines) (src/build/wasm_target.rs)
- High: security finding (details withheld)
- Low coverage: src/bindgen.rs (src/bindgen.rs)
- Low coverage: src/build/wasm_target.rs (src/build/wasm_target.rs)
- Low coverage: src/child.rs (src/child.rs)
- Low coverage: src/command/login.rs (src/command/login.rs)
- Low coverage: src/command/mod.rs (src/command/mod.rs)
- Low coverage: src/command/pack.rs (src/command/pack.rs)
- Low coverage: src/command/publish/access.rs (src/command/publish/access.rs)
- Low coverage: src/command/publish/mod.rs (src/command/publish/mod.rs)
- Low coverage: src/command/test.rs (src/command/test.rs)
- Low coverage: src/command/utils.rs (src/command/utils.rs)
- Low coverage: src/install/arch.rs (src/install/arch.rs)
- Low coverage: src/install/krate.rs (src/install/krate.rs)
- …and 8 more
Changes since last survey
- 10 commits — 9 feature/other, 1 fixes
By area
- (root) — 4 commits
- .github/workflows — 4 commits
- src/install — 1 commit
- src/manifest — 1 commit
Notable commits
- fix: fix: resolve #1420 package.json parsing with two-step deserialization (#1533)
- change: Check wasm-bindgen-bot auto-merge when do not land is removed
- change: Comment on the release PR when a publish waits for approval (#1621)
- change: Download prebuilt wasm-bindgen on Windows ARM64, Linux RISC-V and musl ARM64 hosts (#1619)
- change: Install the native Apple Silicon build in init.sh (#1623)
- change: Only run the release workflow for semver tags (#1625)
- change: Publish the npm package with trusted publishing (#1617)
- change: Release 0.15.1 (#1620)
- change: Require wasm-bindgen-bot's author-ready label for auto-merge
- change: chore(deps): Bump binary-install to 0.6.1 (#1624)
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
wasm-bindgen/wasm-pack was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 14 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit c262c3307d95c842f40221df8e2dc119b4136f7b — the exact code this score is about.
- Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.65+preprod-e1a3b69fc8ee.