IgnisDa / npm-libs

A set of packages for different javascript needs
https://www.npmjs.com/~ignisda
MIT License
8 stars 6 forks source link

@ignisda/nx-rust: nx dep-graph does not show dependencies between workspace crates #1

Closed ndrsg closed 2 years ago

ndrsg commented 2 years ago

Im using "@ignisda/nx-rust": "14.5.9", with "@nrwl/workspace": "14.5.10".

In my nx.json, i have: "plugins": ["@ignisda/nx-rust"], set.

When running nx dep-graph there are no dependencies shown between my rust crates.

IgnisDa commented 2 years ago

Can you share your GitHub repository so that i can look into it?

If not possible, please show a screenshot of the graph.

ndrsg commented 2 years ago

https://github.com/ndrsg/nx-rust-demo

Thanks for having a look!

image

Expectation: rust-app-one |---------> rust-lib-one ------> rust-lib-two |---------> rust-lib-two

IgnisDa commented 2 years ago

@ndrsg The name of the project in workspace.json should match the name in Cargo.toml of the projects. You have to make this change in workspace.json:

image

Please feel free to reopen if you encounter another error!

ndrsg commented 1 year ago

thanks!