Skip to content

Commit 1f624d4

Browse files
committed
Add rust-analyzer.toml file
1 parent 2b7caf6 commit 1f624d4

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

dev-rust-analyzer.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# rust-analyzer configuration file
2+
# DO NOT edit what is already defined.
3+
# You may add new configurations as needed.
4+
check.extraArgs = ["--profile", "test"]

src/init.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ pub fn init() -> Result<()> {
130130
fs::write("Cargo.toml", updated_cargo_toml)
131131
.context("Failed to create the file `rustlings/Cargo.toml`")?;
132132

133+
let ra_toml = include_str!("../dev-rust-analyzer.toml");
134+
fs::write("rust-analyzer.toml", ra_toml)
135+
.context("Failed to create the file `rustlings/rust-analyzer.toml`")?;
136+
133137
fs::write(".gitignore", GITIGNORE)
134138
.context("Failed to create the file `rustlings/.gitignore`")?;
135139

0 commit comments

Comments
 (0)