1
0
Fork 0
mirror of https://github.com/notohh/rustlings.git synced 2024-12-18 15:08:08 -05:00

Add rust-analyzer.toml file

This commit is contained in:
Ali Bektas 2024-09-12 15:26:40 +02:00
parent 2b7caf6fcb
commit 1f624d4c2a
2 changed files with 8 additions and 0 deletions

4
dev-rust-analyzer.toml Normal file
View file

@ -0,0 +1,4 @@
# rust-analyzer configuration file
# DO NOT edit what is already defined.
# You may add new configurations as needed.
check.extraArgs = ["--profile", "test"]

View file

@ -130,6 +130,10 @@ pub fn init() -> Result<()> {
fs::write("Cargo.toml", updated_cargo_toml)
.context("Failed to create the file `rustlings/Cargo.toml`")?;
let ra_toml = include_str!("../dev-rust-analyzer.toml");
fs::write("rust-analyzer.toml", ra_toml)
.context("Failed to create the file `rustlings/rust-analyzer.toml`")?;
fs::write(".gitignore", GITIGNORE)
.context("Failed to create the file `rustlings/.gitignore`")?;