Skip to content

Help with Tonic (Tonic-generated Rust files not created OR loading in Rustrover IDE) #1699

Closed Answered by cosmir17
cosmir17 asked this question in Q&A
Discussion options

You must be logged in to vote

I was able to resolve the issue with the guidance provided from Discord channel. Here's a summary of what I learned:

The target folder is typically placed in the workspace root by Cargo, rather than in each individual subproject or example folder. This is done to optimise disk space usage and enable features like incremental compilation. Cargo determines the workspace root based on the presence of a top-level Cargo.toml file.

In my case, I had opened only the examples module in my IDE, rather than the entire Tonic project root. This caused some confusion because the IDE was not aware of the workspace context. However, running cargo build from the command line created the target folder in …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cosmir17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant