Conversation
so closing this merge request |
|
This is wrong. .cargo is local. It should never be committed. That is the reason for existing beyond Cargo.toml. Default configuration goes into Cargo.toml. Local goes to .cargo. See documentation: |
|
Documentation says:
So fair enough, the documentation says you can possibly check it in. I personally develop mostly against atttiny13a, attiny24a. And I always check compatibility with atmega328(p) (because it is so ubiquitous). Therefor I do change the target often. And I do not want to commit this by mistake. Reading the doc further, the env var I do have to find out how to override this target to rust-analyzer. For now I have simply modified TL;DR: committing |
Reopened the merge request to get more exposure for it . |
|
I use neovim with coc. Looks like I can add a local config file, which will then pass https://github.com/neoclide/coc.nvim/wiki/Using-the-configuration-file#configuration-file-resolve Anyways, I feel like I am bike-shedding here. I don't want to waste anyone's time. |
For reference, here is the content of my local
.cargo/config.toml. With this, the Rust language server will autocomplete for the given target instead of using the host's platform.