-
Hi. To get cross to work, I had to create a modified Dockerfile, that only copies my libs and *.h files into the image. After that cross worked as expected, but rust-analyzer cannot expand procMacros and searches the target directory in my os-root. My current rust-analyzer configuration.
Dockerfile
Cross.toml
Rust analyzer version rust-analyzer 1.76.0 Is there a guide to setup Rust-analyzer with cross to have all the building happen with cross, because of dependencies that are precompiled for the target platform ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
This is more a rust-analyzer problem. We shouldnt do anything to make this not work. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your reply. The solution was, to just start rust-analyzer in a cross container with |
Beta Was this translation helpful? Give feedback.
Thanks for your reply.
I discussed the issue in the rust forum Discussion
The solution was, to just start rust-analyzer in a cross container with
cross-util run -i --target <target> -- rust-analyzer