-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add /.cargo to gitignore #29
base: cycacc
Are you sure you want to change the base?
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.