nx-cargo
v1.0.0-alpha.2
Published
This library was generated with [Nx](https://nx.dev).
Readme
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 withCargo.tomlwill be inferred as a nx project. - [ ] Planned: auto setup common targets for cargo packages.
- [ ] check
- [ ] build
- [ ] test
- [ ] clippy
- [ ] Planned: allow developers to use
package.metadatato configure targets.
- [x] No need for
- Dependency graph
- [x] Local dependencies are added to the graph.
- [ ] Currently
dev-dependenciesandbuild-dependenciesare ignored. An option is planned to change this behavior.
- [ ] Currently
- [x] 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.
