Rust’s most popular framework just got a major upgrade

Поділитися
Вставка
  • Опубліковано 2 сер 2024
  • In this video, we will explore the groundbreaking upgrades in Rust's most popular framework! It has it's latest enhancements and features that have revolutionized the framework's capabilities. Discover how these updates empower developers and elevate the coding experience in Rust.
    FREE Rust training: letsgetrusty.com/bootcamp
    Chapters:
    0:00 Intro
    0:37 Framework background
    0:52 Issues and problems
    1:37 Major release
    2:37 The features
    3:25 Outro
  • Наука та технологія

КОМЕНТАРІ • 137

  • @letsgetrusty
    @letsgetrusty  8 місяців тому +4

    📝Get your FREE Rust training :
    letsgetrusty.com/bootcamp

  • @wigosas
    @wigosas 8 місяців тому +181

    No way, Sergio gave my class a few lectures this week, I didn't image he was the only one maintaining Rocket. I wish he's ok now

  • @Ma1ne2
    @Ma1ne2 8 місяців тому +65

    As a web dev, I find those route handlers looking absolutely clean and practical.

  • @FemLolStudio
    @FemLolStudio 8 місяців тому +46

    cratesio downloads:
    Axum: 25,7 M
    Actix: 15,0 M
    Rocket: 3,8 M
    I choosed Axum bc the popularity and bc it have a stable future. I currently love it, I can do everything with it what I wanted.

    • @georgehelyar
      @georgehelyar 8 місяців тому +8

      Yea if you asked a room full of rust devs what the most popular web framework was, I don't think anyone would say rocket.

    • @theintjengineer
      @theintjengineer 8 місяців тому

      Yeah. I don't even know why Bogdan would put something like that in the title ('most popular').
      We did give them a try(Rocket and Actix), but we found working with Axum better in the end.
      And at other times, we just use FastAPI haha.
      C++ is and remains our main language though.

    • @hubciooo
      @hubciooo 8 місяців тому

      yeah, but rocket was inactive for years. those are really good numbers considering that.

    • @TorreInformativa
      @TorreInformativa 8 місяців тому

      I tried to add a spa to my Axum project but i cant, finnaly chose actix 🥴🥴

    • @ohmyv3gatron
      @ohmyv3gatron 8 місяців тому

      @@TorreInformativawhy not?

  • @yds6268
    @yds6268 8 місяців тому +39

    Not a web dev, but good news for Rust community all the same.
    I'd really love to see Scientific Computation frameworks popping up, that's what I'm mainly trying to use Rust for.

    • @xynyde0
      @xynyde0 8 місяців тому +4

      something like numpy?

    • @yds6268
      @yds6268 8 місяців тому

      @@xynyde0 yes, but also scipy. Though I don't use Python.

    • @ssmith5048
      @ssmith5048 8 місяців тому +1

      use Fortran or C / C++.....

    • @nocodenoblunder6672
      @nocodenoblunder6672 8 місяців тому

      @@xynyde0yeah

    • @kevinmcfarlane2752
      @kevinmcfarlane2752 8 місяців тому

      I’m guessing that in this field Mojo will likely dominate in the next few years. Not that Rust can’t do it, just that Mojo is more aligned with the ecosystem.

  • @narutosimas
    @narutosimas 8 місяців тому +12

    I think actix and axum already passed rocket in popularity

    • @letsgetrusty
      @letsgetrusty  8 місяців тому +1

      According to crates.io download stats yes

  • @harrynair1811
    @harrynair1811 8 місяців тому +5

    As someone who have been following Rust pre 1.0 … and someone who tried to a rest framework with Rust, Rocket was clean and Amazing to work with. The documentation was best of the breed in fact I would argue still is one among the best there is.. from Rust’s perspective.. Go Rocket

  • @jadelily18
    @jadelily18 8 місяців тому +18

    would be awesome to see an axum vs actix vs rocket comparison 👀

  • @bikerinbeta
    @bikerinbeta 8 місяців тому +24

    Can't believe rocket didn't have async. Glad I just chose axum and never looked back. I chose axum because I thought with it's deep connection to tokio libs, it wouldn't go stale.

    • @LtdJorge
      @LtdJorge 8 місяців тому

      Axum is great

    • @letsgetrusty
      @letsgetrusty  8 місяців тому +4

      Yeah axums deep connection to tokio makes me very confident that it will be around for a long time

  • @sadramohh
    @sadramohh 8 місяців тому +4

    Rocket was my gateway to rust development. It showed me that while rust is a low level language, it doesn't have to come with the tedious developer experience of a such language.
    Really hope the new leadership model pans out.

  • @nerdy_dav
    @nerdy_dav 8 місяців тому +7

    All the best to Sergio ...
    It is not a simple thing to balance time to run a major open source project. I was still happy to use rocket. I was slowly looking at Actix and some other frameworks. Looks like I get to update my sites now with 0.5.

  • @whyando
    @whyando 8 місяців тому +2

    FYI when I used it, rocket had massive memory leak issues and I switched all my stuff to warp which does the same but with no issues

  • @user-abc855
    @user-abc855 8 місяців тому +6

    personally I prefer Axum because it is built on Hyper, which has great ecosystem with Tower and Tower-Http

  • @blightning1476
    @blightning1476 8 місяців тому +12

    I'm kinda all in with actix at this point. Could not be happier :)
    It's great to see that rocket isn't dead, though!

    • @gagaxueguzheng
      @gagaxueguzheng 8 місяців тому

      Same, we had tried Rocket and it was nice but seemed dead and actix seemed to have a much more active community and more information about it.

  • @MrRobmango
    @MrRobmango 8 місяців тому

    Thanks for doing this one. I was just doing an initial review of rust web frameworks and didn't run into the rocket governance doc, good to know about and good news for that project.

  • @NexusGamingRadical
    @NexusGamingRadical 7 місяців тому +1

    Honestly I've tried all of the top 6 give or take frameworks. And poem has been the best. Specifically poem-openapi. Man I just can't go back to anything else ever. It scratches that typesafety itch. Imagine a fully typesafety, self documenting, rest API. Amazing!

  • @utenatenjou2139
    @utenatenjou2139 8 місяців тому +11

    I still wait to see Rust framework that has native swagger built into the framework. In enterprise ecology, swagger is important for sign-off, integration and testing.

    • @Luxalpa
      @Luxalpa 8 місяців тому +3

      I found swagger / OpenAPI very nice to add in Rocket, especially compared to the implementations in NodeJS.

    • @oserodal2702
      @oserodal2702 8 місяців тому +2

      Poem framework has built in support for OpenAPI spec and is as nice to use as Rocket.

    • @utenatenjou2139
      @utenatenjou2139 8 місяців тому

      @@oserodal2702Thx, I looking at poem for quite awhile, I hope it get populized. It is hard in enterprise space, to challenge spring boot or quarkus. If rust's framework won't have ecology that support (project management side of thing, spec sign-off, test, opinioned way of integration. (Investment in enterprises framework required these for adoption)

    • @headlibrarian1996
      @headlibrarian1996 Місяць тому +1

      I believe Salvo does OpenAPI natively as well.

  • @felixklg
    @felixklg 8 місяців тому +14

    Axum 💪
    Used to love Rocket but Axum is so much better.

    • @v0xl
      @v0xl 8 місяців тому

      i actually hated axum and really wanted to go back to rocket (which wasn't the best option either due to issues with it's development speed)

    • @felixklg
      @felixklg 8 місяців тому

      @@v0xl That's a fair standpoint, for me personally I disliked the strong reliance on macros in Rocket as well as the relative heaviness of Rocket. I personally find Axum to be smoother, and for obvious reasons it integrates with Tokio a lot stronger.

    • @v0xl
      @v0xl 8 місяців тому

      @@felixklg yeah rocket is pretty bloatead and slow to compile but i still really love it. it seems like it has a "clean" way of handling almost everything and i really like that

  • @adaliszk
    @adaliszk 8 місяців тому +3

    Rocket looks cool, but I feel like its not as popular as the chad ones like Axum and Actix.

  • @tidus4400
    @tidus4400 8 місяців тому +1

    thanks for the news! I thought this project was done for good, glad it's not the case!

  • @TheNoirKamui
    @TheNoirKamui 8 місяців тому +7

    Nah, Axum is the thing! Its amazing even while very new, it doesn't even have a proper website or docs and they have outdated examples... I hope they slowly fix everything and build upon this great serde-focused library, that works well and completely without mysterious macros!

    • @flogginga_dead_horse4022
      @flogginga_dead_horse4022 8 місяців тому +1

      yeah I wish they had a good website etc. doesn't seem very well documented. Even Salvo has a decent website and docs.

  • @TheZdannar
    @TheZdannar 8 місяців тому

    Glad to see it is getting some love, but I started with actix and have no complaints. Rocket wasn't an option without being in stable and not having async.

  • @abdullahmertozdemir9437
    @abdullahmertozdemir9437 8 місяців тому +4

    I thought tokio would be the most popular since it can be used by everyone for any reason while rocket is only for web devs

    • @theintjengineer
      @theintjengineer 8 місяців тому +1

      I too thought *Tokio* when I read the title🤔

  • @abdelhaksidialimebarek8615
    @abdelhaksidialimebarek8615 8 місяців тому +5

    I personally use poem, which is not the most hyped one, but is pretty stable and easy to use. Anyone has feedback about it?

  • @alecksgates
    @alecksgates 8 місяців тому +4

    Here I am using poem-openapi like a pleb

  • @oleksiistri8429
    @oleksiistri8429 8 місяців тому +1

    For some reason I thought Actix or Axum was most popular, no?

  • @hm_kaiser
    @hm_kaiser 8 місяців тому +1

    That’s a great news ! I’ve always liked this framework !

  • @Dygear
    @Dygear 8 місяців тому

    Happy Rocket landed on stable. I use Axum and it’s really very good.

  • @rumplstiltztinkerstein
    @rumplstiltztinkerstein 8 місяців тому +8

    I use actix regularly. What are your thoughts on it compared to other frameworks?

    • @KresnaPermana
      @KresnaPermana 8 місяців тому

      Still hard to understand why the websocket is need actor

    • @nicomiebach
      @nicomiebach 8 місяців тому +1

      we use actix in production and it works great!

  • @haliszekeriyaozkok4851
    @haliszekeriyaozkok4851 8 місяців тому +4

    since actix is most stable web framework in rust i'm using it and unless axum don't hit 1.0 i don't think i'll look any other framework.

    • @theLowestPointInMyLife
      @theLowestPointInMyLife 8 місяців тому +1

      Don't wait for 1.0, Axum is rock solid and the best backend framework around, not just in rust.

    • @haliszekeriyaozkok4851
      @haliszekeriyaozkok4851 8 місяців тому +2

      @@theLowestPointInMyLife then why they dont ship axum 1.0? That's obvious there are somethlng that's not stable.

    • @haliszekeriyaozkok4851
      @haliszekeriyaozkok4851 8 місяців тому +1

      @@theLowestPointInMyLife then why they dont ship axum 1.0? That's obvious there are somethlng that's not stable.

  • @andredasilva6807
    @andredasilva6807 8 місяців тому +1

    Cant wait. Hopefully rocket will have a brighter future

  • @xDELTAGIx
    @xDELTAGIx 8 місяців тому

    While in general Rocket has better documentation than Axum I’d still use Axum. Already had to port my app once not going back. Axum is also extremely similar to Rocket but imo works a bit better

  • @filipslezak5152
    @filipslezak5152 7 місяців тому

    Sadly we moved to axum at this point. Hope rocket will get some more active maintainers.

  • @thurston04
    @thurston04 8 місяців тому +3

    Rocket is my choice of backend and has been since v3

  • @MisFakapek
    @MisFakapek 8 місяців тому +4

    Go go axum!

  • @kolebynov
    @kolebynov 8 місяців тому

    I tried Rocket, but I dropped it after a few days when I noticed there is no normal middlewares in Rocket. In 2023 I can't imagine web framework without middlewares that can preprocess request, post process response or stop request pipeline and return response.

    • @flogginga_dead_horse4022
      @flogginga_dead_horse4022 8 місяців тому +1

      fairings don't do that?

    • @kolebynov
      @kolebynov 8 місяців тому

      @@flogginga_dead_horse4022 ​ I knew someone mentioned it). Fairings are not good middleware IMHO. I can't stop request/response pipeline and return my own response. Good middleware for me is a chain of responsibility. Actix, Axum, ASP NET Core (I came from NET) implement middlewares as a chain of responsibility.

  • @mozabeta7003
    @mozabeta7003 8 місяців тому

    Great news but I, like most people, have moved onto Axum. Don’t this there are any compelling reasons to use Rocket even with these developments.

  • @adriancruz2822
    @adriancruz2822 8 місяців тому

    The reverb is way too high dude. Otherwise, good stuff

  • @VolodymyrMoon
    @VolodymyrMoon 8 місяців тому +1

    Is there any framework that allows automatic OpenAPI schema generation, similar to pythons FastAPI?

    • @nicomiebach
      @nicomiebach 8 місяців тому

      we have that with actix + utoipa. But I think other frameworks like axum etc. are also supported by the utoipa crate.

    • @headlibrarian1996
      @headlibrarian1996 Місяць тому

      Poem and Salvo?

  • @thatonesnowboarde
    @thatonesnowboarde 3 дні тому

    @letsgetrusty can you make a tutorial on Rocket building CRUD app... all the tutorials seem old

  • @Pedram-cy3wu
    @Pedram-cy3wu 8 місяців тому +1

    I think actix is most popular and most perfomant rust web framework

  • @JohnDoe-ji1zv
    @JohnDoe-ji1zv 8 місяців тому +1

    Actix web ftw 🙌

  • @randomhunter47
    @randomhunter47 8 місяців тому

    Like that reply, why not actix?

  • @vmachacek
    @vmachacek 8 місяців тому +1

    oh wait, there was endorsed framework by official docs which was maintained by single person? okay

  • @armanradan
    @armanradan 8 місяців тому +1

    What about leptos?

    • @dapoakinola8999
      @dapoakinola8999 8 місяців тому +3

      Leptos is Rust WebAssembly for frontend. Not to compare an apple with an orange, you may want to rather compare Leptos with Yew or Dioxus instead of Rocket, Actix, Axum, Warp

  • @logicalimmanuel2357
    @logicalimmanuel2357 8 місяців тому +1

    Rocket api is more intuitive❤

  • @nathanaelbennett8286
    @nathanaelbennett8286 8 місяців тому

    People use Rocket still?

  • @fswerneck
    @fswerneck 8 місяців тому

    As a Pythonist Rustling who likes Flask: go Rocket 🚀🤸

  • @irlshrek
    @irlshrek 8 місяців тому

    Yeah.. It's going to take something seriously amazing to pull me away from Axum

  • @mannycalavera121
    @mannycalavera121 8 місяців тому

    Axum is superior but Rocket has pretty red symbol

  • @khmerai3096
    @khmerai3096 8 місяців тому

    Rocket is awesome

  • @konga8165
    @konga8165 8 місяців тому +1

    Rocket is not the most popular. Axum is. Check your stats.

  • @charliewhousen7133
    @charliewhousen7133 8 місяців тому +1

    poem is superior

  • @ssmith5048
    @ssmith5048 8 місяців тому +2

    The cult that is Rust.

    • @wrong1029
      @wrong1029 8 місяців тому +1

      if its a cult, it's made me a fuckton of money so far so I'm for it.

    • @diadetediotedio6918
      @diadetediotedio6918 8 місяців тому +1

      The cult that is [insert anything you don't like].

  • @pantanom18
    @pantanom18 8 місяців тому

    rusters gonna rust

  • @soundreamerbg
    @soundreamerbg 8 місяців тому +1

    Just actix bruh.

  • @ankitkumarjat9886
    @ankitkumarjat9886 8 місяців тому +1

    I always thought actix is top 😅

  • @lipepaniguel
    @lipepaniguel 8 місяців тому

    axum FTW

  • @arcstur
    @arcstur 8 місяців тому

    Are you sure Rocket is the most popular framework?

  • @user-ci5kj5kq4c
    @user-ci5kj5kq4c 8 місяців тому +1

    rocket is one of the best web framework , and that thought is not changing soon

  • @AlexanderBorshak
    @AlexanderBorshak 8 місяців тому

    Rocket is dead! Long live Rocket!

  • @pavanj3666
    @pavanj3666 8 місяців тому +1

    Hello… I am a college dropout and looking for a job and right now i am trying to choose between rust and c++…. Please help which one should i learn to get a job as a fresher…?

    • @masela01
      @masela01 8 місяців тому +1

      c++ is still better for getting jobs so probably that one? idk i recommend doing some more proper research abt it. look through job listings, articles abt the thing etc. good luck out there

    • @Lampomaniac
      @Lampomaniac 8 місяців тому +2

      how about... going back to college

    • @gagaxueguzheng
      @gagaxueguzheng 8 місяців тому

      Not sure if finishing your education wouldn't be more useful. But if I had to choose and my priority was earning money, I'd go with C++.

    • @pavanj3666
      @pavanj3666 8 місяців тому

      @@gagaxueguzheng so learning rust won’t get me a job as a fresher..?

    • @gagaxueguzheng
      @gagaxueguzheng 8 місяців тому

      @@pavanj3666 I program in Rust in a professional context. We built one system in Rust because we wanted to.
      But just do your research. Go on job platforms and compare the number of jobs that require Rust knowledge vs. C++. I bet C++ will be several times more.
      But that's not even the most important decision. Learn how to program while learning a language. It's not necesarily about the language you learn..Most programming skills can be transferred to new languages. I started with Basic and Pascal when I was young. Learned C when I was older. Then I studied, learned Java, C++ and C#. Programmed in Perl and now I'm in a Typescript and Rust project. Of course, having a lot of experience in one language helps as a beginner because only that will help you understand programming. It's about solving problems in a certain manner more than it is about learning a specific syntax.
      But if you need to find a job, learn what's popular and in demand. You need to get your foot in the door of a company and then you can learn more or other languages.

  • @pabloqp7929
    @pabloqp7929 8 місяців тому

    praise the sun

  • @alexhri
    @alexhri 8 місяців тому

    Imo poem>rocket>actix in terms of ergonomics

  • @AssFaceNFT
    @AssFaceNFT 8 місяців тому

    😮 i love rust

  • @michaelpacheco7421
    @michaelpacheco7421 8 місяців тому +3

    🚀

  • @Miaut236
    @Miaut236 8 місяців тому +2

    What exactly does "diversify leadership" mean. Cause anything that has that word attached to it is never good. I hope he means handing it to competent and responsible people.

  • @redhathackermod
    @redhathackermod 8 місяців тому

    Answer my Question Please...I'm from India and i completed my basic python and i have command on all IT Skills and now I want to learn new programing language to secure my future should I go for rust I'll complete my graduation in 2027

  • @Jiftoo
    @Jiftoo 8 місяців тому

    "Most popular" is untrue

  • @mr.togrul--9383
    @mr.togrul--9383 8 місяців тому

    Fuiyohhh

  • @alexon2010
    @alexon2010 6 місяців тому

    Eu gostaria muito de aprender Rust, acredito que seu conteúdo é muito legal, mas eu realmente não gosto de ver com legenda do inglês para português, não tenho condição de aprender inglês pelo tanto de outras coisas que tenho que estudar, sou designer de produto e desenvolvedor de sistema, em designer de produto estou quase terminando a fabricação minha Router CNC para uso industrial, gostaria muito de criar uma interface visual que fosse sensacional para Linux CNC, já que as interfaces que existem para são muito ruim ou feias... é baita desafios e me colocando um monte de coisas para estudar... seria maravilhoso se seus vídeos fosse dublados por IA a google oferece uma ferramenta chamada de aloud que a dublagem fica muito legal e... seria muito legal ver seus videos como este por exemplo: ua-cam.com/video/jNm2g4Tkf3E/v-deo.html

  • @kirillgimranov4943
    @kirillgimranov4943 8 місяців тому +4

    Rocket sucks, Axum is da best!

    • @31redorange08
      @31redorange08 8 місяців тому +1

      Why?

    • @kirillgimranov4943
      @kirillgimranov4943 8 місяців тому

      @@31redorange08 Google will help ya with that question, my boi. Any rust dev know the truth

  • @0xedb
    @0xedb 8 місяців тому +1

    still axum or actix-web

  • @UwU-dx5hu
    @UwU-dx5hu 7 місяців тому

    I Just googled.actix's speed is off the charts man!

  • @burnheart2965
    @burnheart2965 8 місяців тому

    So someone with a shit trackrecord of consistent development wants money for "governance" (overhead) and promises to do better this time. Sounds like a disaster waiting to happen.