rustlings/src
Remo Senekowitsch dc086c6bf1 Improve initialization in workspace
- Detect if we are in a cargo project more reliably.
  (e.g. if `rustlings init` is run in the `src/` directory)

- Refuse to initialize rustlings in a non-workspace cargo project.

- Automatically populate the `workspace.members` field if `rustlings init` is
  run in a workspace.

  This may be considered risky, as there is no guarantee that's what the user
  wanted to do. However, it is consistent with the behavior of `cargo new`.
  Also, newcomers to Rust are unlikely to accidentally be in a cargo workspace,
  as they won't know how to create one in the first place.

  The use case for initialization in a workspace is when a workshop organizer
  wants to use rustlings alongside other exerices and provide a single
  repository with everything in one place.
2024-08-08 13:34:27 +02:00
..
dev Remove state file and solutions dir from .gitignore 2024-08-08 00:41:12 +02:00
list Remove inline 2024-05-14 00:55:07 +02:00
watch Improve the runner 2024-08-01 15:23:54 +02:00
app_state.rs Use trim_ascii instead of trim 2024-08-02 16:28:05 +02:00
cargo_toml.rs Fix tests 2024-07-04 23:39:06 +02:00
cmd.rs Avoid using RUSTFLAGS to not trigger rebuilding, especially in rust-analyzer 2024-08-07 23:35:50 +02:00
dev.rs Improve the runner 2024-08-01 15:23:54 +02:00
embedded.rs Add solutions to bins 2024-05-25 18:19:30 +02:00
exercise.rs Avoid using RUSTFLAGS to not trigger rebuilding, especially in rust-analyzer 2024-08-07 23:35:50 +02:00
info_file.rs Check exercises unsolved 2024-07-04 21:12:57 +02:00
init.rs Improve initialization in workspace 2024-08-08 13:34:27 +02:00
list.rs Use the rexported crossterm from ratatui 2024-07-25 16:26:48 +02:00
main.rs Allow initialization in a workspace 2024-08-08 02:45:18 +02:00
progress_bar.rs Use the rexported crossterm from ratatui 2024-07-25 16:26:48 +02:00
run.rs Improve the runner 2024-08-01 15:23:54 +02:00
term.rs Allow initialization in a workspace 2024-08-08 02:45:18 +02:00
terminal_link.rs Fix Windows terminal links 2024-05-13 04:11:11 +02:00
watch.rs Done documentation 2024-05-14 01:49:22 +02:00