|
|
|
|
|
by asou
2095 days ago
|
|
Rust is too strict imo. I'm fairly experienced and I still can't throw up an HTTP server in Rust, even with libraries. I almost can do in with NodeJS and Express from memory. Something like app = require('express') app.listen('/', function ( req, res ){ res.send (' Hi Hn') }) ;
It's ok for different languages to do different things. I can't imagine anyone being faster with Rust than Python or JS. Of course eventually Rust gets a performance boost, but it's never going to matter unless you're talking about a larger scale project. |
|
See: https://rocket.rs/ https://actix.rs/
But, of course, the demo code is always easy. The real nightmare starts as soon as your application became complex enough, that the demo no longer fit and you need to manually spawn something (To handle TCP connection before it hits the framework for example) rather than just "actix_web::main" or "tokio::main".