Remove state file and solutions dir from .gitignore

This commit is contained in:
mo8it 2024-08-08 00:20:04 +02:00
parent 4933ace50b
commit 97719fe8da
3 changed files with 8 additions and 9 deletions

View file

@ -1,6 +1,6 @@
<a name="6.1.1"></a>
<a name="6.2.0"></a>
## 6.1.1 (2024-08-08)
## 6.2.0 (2024-08-08)
It is recommended to update to this version to fix issues with the language server `rust-analyzer`.
You can update using the following two commands:
@ -12,6 +12,7 @@ cargo install rustlings
- Fix `rust-analyzer` rebuilding all exercises after changing one file.
- Show a helpful error message when trying to install Rustlings with a Rust version lower than the minimum one that Rustlings supports.
- Remove the state file and the solutions directory from the generated `.gitignore` file.
- Run the final check of all exercises in parallel.
- Small exercise improvements.
- `dev check`: Check that all solutions are formatted with `rustfmt`.

View file

@ -76,8 +76,8 @@ pub fn new(path: &Path, no_git: bool) -> Result<()> {
pub const GITIGNORE: &[u8] = b".rustlings-state.txt
Cargo.lock
target
.vscode
target/
.vscode/
!.vscode/extensions.json
";

View file

@ -92,11 +92,9 @@ const INIT_SOLUTION_FILE: &[u8] = b"fn main() {
}
";
const GITIGNORE: &[u8] = b".rustlings-state.txt
solutions
Cargo.lock
target
.vscode
const GITIGNORE: &[u8] = b"Cargo.lock
target/
.vscode/
";
pub const VS_CODE_EXTENSIONS_JSON: &[u8] = br#"{"recommendations":["rust-lang.rust-analyzer"]}"#;