bevyengine / bevyengine/bevy-website

VSCode, Rust-analyzer recompiling issue in Bevy 0.13.2

Open
#1,158 1 comment 0 reactions 0 assignees View on GitHub
A-Book C-Correction S-Needs-Investigation
Dominant language
JavaScript
Stars
249
Forks
450
Avg merge
16h 20m
Merged PRs (30d)
6

Description

## How can Bevy's documentation be improved?
In the [Setup](https://bevyengine.org/learn/quick-start/getting-started/setup/) page, it is given that the new cargo config file should be located in `/.cargo/config.toml`. I had a problem where the game would recompile every time i ran it,

My suggestion is to add an extra rust-analyzer setting flag to force it use the new `config.toml` file.

In `settings.json` add the `"rust-analyzer.cargo.targetDir": true` flag to force rust-analyzer.

Contributor guide

Open the contributing guide

Research direction

Open the Setup page linked in the issue and review the guidance around /.cargo/config.toml. Check the VSCode settings.json guidance and add the rust-analyzer.cargo.targetDir setting described in the report. Done means the setup documentation includes this workaround for avoiding repeated recompilation.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, vscode
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.