You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Declare rustc deps under [target.'cfg(unix)'.dependencies] (I'm on macos so this target section is taken into account when IDEA imports the project)
"Refresh Cargo Projects". Adter that IDEA resolves imports, but Cargo wouldn't build my project as it tries to build rustc crates also, which cannot succeed
Change target from unix to NOT_A_PLATFORM in [target.'cfg(unix)'.dependencies], and don't reimport the project. This way Cargo is be able to build AND IDEA is able to resolve imports
some projects need to use rustc-related dependency (like rust-lang/clippy)
but RustRover cannot find them
I have two choices:
rustc_xxx = {path = ".../rust/complie/..."}
at Cargo.tomlcan make RustRover find them
but will lose the env variable
cannot compile
So I want to ask:
Is there any ticky method I can use to make RustRover find dependencies and compile them successfully?
someone says add dependency at
[target.'cfg(NOT_A_PLATFORM)'.dependencies]
can work.
I tried and its not working
now my solution is using VSCode + rust-analyzer in this project. it worked well.
The text was updated successfully, but these errors were encountered: