npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@eddacraft/nxrust

v0.1.2

Published

Nx plugin that wraps Cargo — executors, generators, and project-graph integration for Rust workspaces inside Nx monorepos.

Readme

nxrust

Nx plugin for Rust workspaces. Wraps cargo as Nx executors and generators, and parses cargo metadata into the Nx project graph so nx affected works across your Rust crates.

Inspired by the public API shape of @monodon/rust, with an Apache-2.0 codebase targeting Nx 22.

Install

pnpm add -D @eddacraft/nxrust
# or: npm i -D @eddacraft/nxrust  / yarn add -D @eddacraft/nxrust

Register in nx.json:

{
  "plugins": ["@eddacraft/nxrust"]
}

Executors

| Executor | Wraps | Cache | | ----------------------- | ---------------------- | ----- | | @eddacraft/nxrust:build | cargo build | yes | | @eddacraft/nxrust:check | cargo check | yes | | @eddacraft/nxrust:clippy / lint| cargo clippy | yes | | @eddacraft/nxrust:fmt | cargo fmt | yes | | @eddacraft/nxrust:run | cargo run | no | | @eddacraft/nxrust:test | cargo test | yes | | @eddacraft/nxrust:release-publish| cargo publish | no (use via nx release publish) |

All executors accept a shared option set:

| Option | Type | Notes | | ------------- | ---------------------- | ---------------------------------------------- | | toolchain | stable/beta/nightly | Translates to cargo +<toolchain> … | | target | string | Rust target triple | | profile | string | cargo profile (e.g. dev, release) | | release | boolean | --release | | features | string \| string[] | --features | | all-features| boolean | --all-features | | target-dir | string | --target-dir | | args | string \| string[] | Forwarded after -- |

Individual executors add specialised flags — see each schema.

Generators

# Library crate
nx g @eddacraft/nxrust:crate my-crate

# Binary crate
nx g @eddacraft/nxrust:crate my-cli --bin
# or alias:
nx g @eddacraft/nxrust:binary my-cli

# Library alias
nx g @eddacraft/nxrust:library my-lib

Generated crates are added to the root Cargo.toml [workspace.members] (comments preserved via @ltd/j-toml) and get a minimal project.json pre-wired to the plugin's executors.

Project graph

The plugin runs cargo metadata --format-version=1 and emits:

  • Nx project nodes for every workspace member (keyed by its directory).
  • External nodes (cargo:<name>) for every registry / git dependency.
  • Dependency edges for every direct dependency resolved via metadata.

This is what makes nx affected -t test correct across your Rust crates.

Requirements

  • Node.js ≥ 20
  • Nx ≥ 22
  • Cargo on PATH
  • A Cargo workspace at the Nx workspace root (or a single crate at root)

License

Apache-2.0 © eddacraft. See LICENSE.

This project does not contain code copied from @monodon/rust; it references the public API shape only. cargo metadata is the official Rust tooling contract.

Acknowledgements

Thanks to the author of @monodon/rust; that project established the shape of Rust support many Nx users expect.