This library was generated with Nx.
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.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.
- [x] No need for
- Dependency graph
- [x] Local dependencies are added to the graph.
- [ ] Currently
dev-dependencies
andbuild-dependencies
are 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"]
}
Run npx nx build nx-cargo
to build the library.
Run npx nx test nx-cargo
to execute the unit tests via Jest.