Traits now support async fn and -> impl Trait (with some limitations), the compiler got faster, version = in Cargo​.toml is now optional, and many small functions have been stabilized!

  • MrGG@lemmy.ca
    link
    fedilink
    arrow-up
    30
    ·
    11 months ago

    Nice! Just in time for my yearly “I should finally learn rust” and then forget about it a week later habit.

    • sheogorath@lemmy.world
      link
      fedilink
      arrow-up
      14
      ·
      11 months ago

      I kept reading the same few chapters of the rust book. It’s a yearly ritual for me. Same as installing Bethesda games and the Sims and just playing a few hours before uninstalling.

      • MrGG@lemmy.ca
        link
        fedilink
        arrow-up
        6
        ·
        11 months ago

        Haha also yearly for me. I have actually written a small utility in rust that interacts with mysql, but it was basically just transposing python to rust, plus it’s hacky as hell and I didn’t really learn anything.

        I’ve stuck that rust book in the “one day” silo, along with the guitar, learning French, eating healthy, and getting enough sleep. One day.

      • Buttons@programming.dev
        link
        fedilink
        English
        arrow-up
        6
        ·
        11 months ago

        Build a ray tracer in Rust. Follow something like Ray Tracing in One Weekend. Don’t be scared that the example code is in C, translating it to Rust is easy enough and is part of the learning process; it’s good that you can’t just copy paste.