News for hackers. Stuff that matters.
Re:100 Exercises to Learn Rust by maxbond on Friday May 17, 2024 @10:35AM (#40390406)
No, it's not like Go, you have to opt into async. (There was a time before 1.0 where it was, but that was removed.)

My reading is that, since their technique was to learn something and then immediately apply it to their project, they began making it async before they realized it was better of without it. Seems like a good learning experience to me, I think this approach is good.

Re:100 Exercises to Learn Rust by anssip on Friday May 17, 2024 @04:21PM (#40393837)
Yes, I had some feature in an earlier version that I wanted to add and the example code I was looking at was async and that made me think that I have to go to that route and also include an async runtime (Tokio). Once I was there, I ended up using async versions of some other dependencies as well.

Later on I then realized that in my CLI app I’m not gaining anything from it as there is no need for any parallel prosessing. It was just making my code more complex.

Re:100 Exercises to Learn Rust by mwigdahl on Saturday May 18, 2024 @12:31AM (#40396450)
Thanks for the information!