Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Async updates and reformatting for new exercise #2216

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Polycarbohydrate
Copy link
Contributor

  • Renamed/ordered the directories for macros, clippy, and conversions, shifting them all one up in numerical order to fit async as number 21
  • Added the 21_async directories in exercises and solutions
  • Added async1.rs in the 21_async directory in exercises and solutions
  • Added async to the info.toml in rustlings-macros and reordered the rest of the exercises in there as well
  • Created an exercise for async1 and its solution

The first exercise demonstrates the concept of adding the async keyword to the function signature to declare the function as asynchronous. It introduces the tokio crate with its sleep function and uses futures with await.

- Renamed/ordered the directories for macros, clippy, and conversions, shifting them all one up in numerical order to fit async as number 21
- Added the 21_async directories in exercises and solutions
- Added async1.rs in the 21_async directory in exercises and solutions
- Added async to the info.toml in rustlings-macros and reordered the rest of the exercises in there as well
- Created an exercise for async1 and its solution
Added new line to end of README to pass the format job
@Polycarbohydrate
Copy link
Contributor Author

Polycarbohydrate commented Mar 8, 2025

I saw the file in dev\Cargo.toml and knew the file would be updated by running cargo run -- dev update but checking the Contributing.md (which is extremely outdated), it did not state to run that command then pushing those files into the repository.

Should I run cargo run -- dev update then add the updated Cargo.toml to the repository?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant