DEV Community

Discussion on: What are your biggest obstacles/questions for moving from NodeJS to Rust?

Collapse
 
gndplayground profile image
Giang Nguyen

I tried Rust but for now, I could say that moving all from Node to Rust is not a good thing.

Libraries document in Rust is very bad. Yeah, we have a tool to auto-generate document in Rust but many libraries expect the user is a genius hacker. I gave you API document with the minimal tutorial so I expected you can understand how to use it. Even Tokio has a separate document from API document but it's incredibly hard for beginners to understand.

Yeah JS doesn't have a standard tool to do that, I know. So they have to force to write a document from scratch, and it's might be the good thing for end user.

I want simple Promise example like Nodejs, But hey you can't do that easily.
Welcome to the bottom of hell with Tokio, Mio...
Did I hear async await?

Look at Go, and see how popular it is. In my country, a lot of company is hiring Go developers now. Mozzila is not pushed and promo the language enough. Compare to Google, Google has infinite money. If you want a stable career as a web developer then learn Go is easier.

I love Rust for trying to compete with C++. And looking forward to re-learning it again. But as a web developer, I think rust is not a good choice to do web things for now.