I was planning on using rustc crates for my project in order to extract type information of variables.
I have come across following example: Type checking.
Since it already seemed promising and I wanted to test around, I have gone ahead and created a new project containing this example.
Therefore, I cloned the repository and setup everything as explained in linked guide.
I made sure I was using the same nightly version as provided in the example.
Here some questions arrived.
Since I could not find a document with the environment variables and what they are supposed to be, I was wondering if there is something like that. I had to set some to build successfully and was never sure whether I set them correctly or not.
The only problem left is that when running, I always get following error:
error: failed to find codegen-backends
folder in the sysroot candidates:
* /path/to/proj/target/debug
* /path/to/proj/target/debug
I don't quite understand how to resolve this.
Can I set sysroot? What should it be?
Looking forward to your answers.
Thank you!