File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,9 @@ pub fn init() -> Result<()> {
130
130
fs:: write ( "Cargo.toml" , updated_cargo_toml)
131
131
. context ( "Failed to create the file `rustlings/Cargo.toml`" ) ?;
132
132
133
+ fs:: write ( "rust-analyzer.toml" , RATOML )
134
+ . context ( "Failed to create the file `rustlings/rust-analyzer.toml`" ) ?;
135
+
133
136
fs:: write ( ".gitignore" , GITIGNORE )
134
137
. context ( "Failed to create the file `rustlings/.gitignore`" ) ?;
135
138
@@ -169,6 +172,11 @@ const INIT_SOLUTION_FILE: &[u8] = b"fn main() {
169
172
}
170
173
" ;
171
174
175
+ const RATOML : & [ u8 ] = br#"# rust-analyzer configuration file
176
+ # DO NOT edit what is already defined.
177
+ # You may add new configurations as needed.
178
+ check.extraArgs = ["--profile", "test"]"# ;
179
+
172
180
const GITIGNORE : & [ u8 ] = b"Cargo.lock
173
181
target/
174
182
.vscode/
You can’t perform that action at this time.
0 commit comments