nx-cargo
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-alpha.2 • Public • Published

nx-cargo

This library was generated with Nx.

Usage

nx-cargo is a plugin to make nx work with cargo workspace.

The following features are implemented or planned:

  • Project Inference
    • [x] No need for project.json, subdirectories with Cargo.toml will be inferred as a nx project.
    • [ ] Planned: auto setup common targets for cargo packages.
      • [ ] check
      • [ ] build
      • [ ] test
      • [ ] clippy
    • [ ] Planned: allow developers to use package.metadata to configure targets.
  • Dependency graph
    • [x] Local dependencies are added to the graph.
      • [ ] Currently dev-dependencies and build-dependencies are ignored. An option is planned to change this behavior.

To use nx-cargo, just install it and add the following line to nx.json.

yarn add --dev nx-cargo
{
  "plugins": ["nx-cargo"]
}

Building

Run npx nx build nx-cargo to build the library.

Running unit tests

Run npx nx test nx-cargo to execute the unit tests via Jest.

Readme

Keywords

none

Package Sidebar

Install

npm i nx-cargo

Weekly Downloads

4

Version

1.0.0-alpha.2

License

none

Unpacked Size

21.3 kB

Total Files

28

Last publish

Collaborators

  • equalma