3 ms·
Yes, it should just work for all projects if you put in in ~/.cargo/config.toml, or as a per-project setting. Git life pro tip (that you didn't know you needed
by themulticaster 3y ago
Yes, it should just work for all projects if you put in in ~/.cargo/config.toml, or as a per-project setting.
Git life pro tip (that you didn't know you needed until now): You can use .git/info/exclude (present in every Git repository) as a local, private version of .gitignore. It has the same syntax as .gitignore, but isn't tracked by Git. So you could add .cargo/config.toml to .git/info/exclude, changing the linker locally without Git considering it as an untracked file. I generally use this feature to ignore files that are specific to my development setup which I don't want to list in .gitignore.
- maximilianroos 3y agoGreat tip! Didn't know about this. A similar one: ~/.config/git/ignore is a global private gitignore. Great for files across repos which you always want to ignore, such as temporary files from an editor
- unshavedyak 3y agoSome projects add project/.cargo/config.toml which is unfortunate, but cool to learn about a global config for this purpose! Ty