1.0.0-alpha.2 • Published 2 years ago
nx-cargo v1.0.0-alpha.2
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
- No need for
project.json
, subdirectories withCargo.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.
- No need for
- Dependency graph
- Local dependencies are added to the graph.
- Currently
dev-dependencies
andbuild-dependencies
are ignored. An option is planned to change this behavior.
- Currently
- Local dependencies are added to the graph.
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.
1.0.0-alpha.2
2 years ago