File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -165,6 +165,8 @@ pub fn init() -> Result<()> {
165165 fs:: write ( ".gitignore" , GITIGNORE )
166166 . context ( "Failed to create the file `rustlings/.gitignore`" ) ?;
167167
168+ fs:: write ( "README.md" , README ) . context ( "Failed to create the file `rustlings/README.md`" ) ?;
169+
168170 create_dir ( ".vscode" ) . context ( "Failed to create the directory `rustlings/.vscode`" ) ?;
169171 fs:: write ( ".vscode/extensions.json" , VS_CODE_EXTENSIONS_JSON )
170172 . context ( "Failed to create the file `rustlings/.vscode/extensions.json`" ) ?;
@@ -220,6 +222,14 @@ target/
220222.vscode/
221223" ;
222224
225+ const README : & [ u8 ] = b"# Rustlings
226+
227+ This is your space to solve Rustlings exercises.
228+ Simply run `rustlings` in this directory to get started!
229+ Learn more about using Rustlings here:
230+ <https://rustlings.rust-lang.org/usage/>
231+ " ;
232+
223233pub const VS_CODE_EXTENSIONS_JSON : & [ u8 ] = br#"{"recommendations":["rust-lang.rust-analyzer"]}"# ;
224234
225235const IN_INITIALIZED_DIR_ERR : & str = "It looks like Rustlings is already initialized in this directory.
You can’t perform that action at this time.
0 commit comments