mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-25 15:10:26 +00:00
Add rust-analyzer.toml file
This commit is contained in:
parent
2b7caf6fcb
commit
1f624d4c2a
2 changed files with 8 additions and 0 deletions
4
dev-rust-analyzer.toml
Normal file
4
dev-rust-analyzer.toml
Normal 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"]
|
|
@ -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`")?;
|
||||
|
||||
|
|
Loading…
Reference in a new issue