mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-25 15:10:26 +00:00
Merge pull request #2107 from alibektas/ratoml_for_rustlings
Add rust-analyzer.toml file
This commit is contained in:
commit
45abd7d59e
1 changed files with 8 additions and 0 deletions
|
@ -130,6 +130,9 @@ pub fn init() -> Result<()> {
|
|||
fs::write("Cargo.toml", updated_cargo_toml)
|
||||
.context("Failed to create the file `rustlings/Cargo.toml`")?;
|
||||
|
||||
fs::write("rust-analyzer.toml", RATOML)
|
||||
.context("Failed to create the file `rustlings/rust-analyzer.toml`")?;
|
||||
|
||||
fs::write(".gitignore", GITIGNORE)
|
||||
.context("Failed to create the file `rustlings/.gitignore`")?;
|
||||
|
||||
|
@ -169,6 +172,11 @@ const INIT_SOLUTION_FILE: &[u8] = b"fn main() {
|
|||
}
|
||||
";
|
||||
|
||||
const RATOML: &[u8] = br#"# rust-analyzer configuration file
|
||||
# DO NOT edit what is already defined.
|
||||
# You may add new configurations as needed.
|
||||
check.extraArgs = ["--profile", "test"]"#;
|
||||
|
||||
const GITIGNORE: &[u8] = b"Cargo.lock
|
||||
target/
|
||||
.vscode/
|
||||
|
|
Loading…
Reference in a new issue