pnpm can now install and run Rust crates as global tools
pnpm 12.25 adds a crate: protocol, so pnpm add -g and pnx can fetch, build and run a Rust binary the same way they already handle npm packages.
pnpm 12.25.0 shipped on 29 November with a new crate: protocol. pnpm add -g crate:<name> builds a Rust crate’s executables and links them into pnpm’s global bin directory, for example pnpm add -g crate:ripgrep@14. pnx crate:<name> skips the install step and just runs the executable, downloading the crate and its dependencies into the store and building them offline with a Rust toolchain pulled from the store.
You don’t need Rust set up first: if there’s no toolchain available, pnpm installs rustup itself to build the crate. pnpm list -g, update -g and remove -g all accept the same crate:<name> selector, so a Rust-built tool is managed exactly like a global npm package.
Why it matters: this is a step beyond pnpm 12.17’s Cargo dependency updates. That let pnpm outdated see into Cargo.toml; this lets pnpm actually install and run a Rust binary, with no separate cargo install or rustup setup. If your project already standardises on pnpm for tool installs, a CLI like ripgrep or any other crate now fits the same command instead of a second toolchain to document.
The caveat: pnpm builds the crate from source rather than fetching a prebuilt binary, so the first install compiles it, which takes longer than a typical npm package download.