Hacker News new | ask | show | jobs
by squeral 2062 days ago
I agree. It will take some time until we have a Rust framework that is as robust and feature-rich as Django or Rails.
1 comments

Rails was released 16 years ago (according to wikipedia). Rocket just got the first release that builds on stable rust. Thus: Give it 15 years, we'll be there!
I used Django from pretty much it's first public release and it was broadly feature complete back then.
The ecosystem between then and now is night and day, though, and that's an extremely important part of a framework.
In case of Django, I actually don’t feel much difference in this regard—it’s always been very much batteries included. It is natural for a project to have no dependencies but Django (and maybe psycopg2 bindings), business domain-specific dependencies excluded. Happily used it since before the first major release.
It had been in production use for a while prior to its public release, yeah?
IIRC, it was (like Rails) extracted from an existing web application.
Yes. I believe it was spun out of an internal project at Lawrence Journal-World.
> Rocket just got the first release that builds on stable rust.

As far as I can tell, Rocket is still on 0.4.5.

Your comment and the comment you are replying to are both correct.

Rocket's current released version is 0.4.5, and that version builds with a stable Rust toolchain.

It looks to me like 0.4.5 still requires nightly:

  error: failed to run custom build command for `rocket_codegen v0.4.5`
  
  Caused by:
    process didn't exit successfully: `/home/vlad/code/test-rocket/target/debug/build/rocket_codegen-f5b5d853ac3ddd89/build-script-build` (exit code: 101)
    --- stderr
    Error: Rocket (codegen) requires a 'dev' or 'nightly' version of rustc.
    Installed version: 1.47.0 (2020-10-07)
    Minimum required:  1.33.0-nightly (2019-01-13)
Edit: formatting
Indeed. Apparently the support for stable Rust was merged onto master months ago, but there hasn't been a release since then. 0.5 should be the first version that builds on stable Rust according to this thread: https://github.com/SergioBenitez/Rocket/issues/19
You can use 0.5.0-dev if you want stable rust.
I want to caveat this by first saying I’m a fan of Rust in general, but does one not see the irony in the article’s claim to the effect “yes, it’s ready as a Rails replacement”, yet requires you to use an unreleased dev version of a library to even build from a stable release of the language?
Yeah, and I don't know how anyone could claim its a Rails replacement. Diesel, warp, rocket et al are great but the DX and feature completeness aren't there yet.

That said, with Cargo using the unreleased version is as simple as changing `rocket = "0.4.5"` to `rocket = { git = "https://github.com/SergioBenitez/Rocket" }` so it's not like you even have to clone it manually. You can even specify branches if you urgently need a PR and patch entire workspaces with forked versions and so on.