Rust Web Framework

Languages and libraries

web framework

SHOW HN2024

Legend

Rust Web Framework

Hi everyone, I've been "funemployed" for a few months and with all that free time and idle hands I wrote a…

github.com

#rust web framework#rust mvc#rust orm#django rust#rails rust

488points
258comments
#68of 3,515 in 2024
Top 2%of 2024 by points

How HN took it

DebatedReal support and real criticism

19 positive, 26 neutral or asking, 2 mixed, 18 critical, out of 65 comments about the project. Thread score +0.14.

Idea: 8 for, 10 againstExecution: 0 for, 4 againstDesign: 0 for, 2 againstDocs: 0 for, 1 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Fills a gap for a Django/Rails-style framework in Rust

    From 4 comments
    • Love it; this is a big gap in Rust's ecosystem IMO.
      the__alchemist on HN
    • > (think Rails, not Flask) I like that... we need more (or better) opiniated frameworks a la rails/django in static languages.
      JodieBenitez on HN
    • Cool! Since I learned Rust I've wanted a Django replacement that has the functionality of a batteries included Web Framework + the speed/footprint of Rust. I'll check it out!
      wormlord on HN
    • Great work!! I was just talking about how this is a major gap in Rust and here you are the very next day! Looking forward to use and contribute!
      apbytes on HN
  • Migration path from Python via WSGI is appealing

    From 2 comments
    • I can already hear people asking "Did you aRWF already?" Seriously, the migration option is precisely how I think migration for years. Great job!
      MASNeo on HN
    • Awesome, looking forward to testing it out. I really like that idea of being able to gradually migrate WSGI (Django) apps, or even support running both at the same time.
      dethos on HN
  • Batteries-included but not too prescriptive

    From 1 comment
    • I've been evaluating and building out small prototypes with all the usual suspects for backend Rust work. So far I've reluctantly agreed with the hive mind that Axum on balance…
      jamiedumont on HN

Objections

  • Building a custom ORM and template language instead of using existing ones

    From 1 comment
    • I would kinda expect REST framework to be able to generate Swagger (aka OpenAPI) definitions out of the box. That's one of the killer features of FastAPI in my opinion. Also, I…
      throwaway313373 on HN
  • Running a WSGI server inside the app raises stability concerns versus a reverse proxy

    From 1 comment
    • As SRE, I got interested in https://levkk.github.io/rwf/migrating-from-python/. On one hand, this is crazy neat you were able to pull it off. On the stability SRE hand, I'm…
      stackskipton on HN
  • Rust is slower to develop in than languages like Python or C#

    From 1 comment
    • I've tried to learn Rust but gave up early. Coming from C#, C/C++, Java, Python, Rust seems weird to me. And it's not the weirdness that discouraged me, is the slowness of…
      DeathArrow on HN

Requests

  • Generate OpenAPI/Swagger definitions

    From 1 comment
    • I would kinda expect REST framework to be able to generate Swagger (aka OpenAPI) definitions out of the box. That's one of the killer features of FastAPI in my opinion. Also, I…
      throwaway313373 on HN
  • Add CRUD generators and better docs

    From 3 comments
    • Do you plan on adding CRUD generators? That was the killer feature of MVC frameworks
      jcmontx on HN
    • Thanks for sharing! As a heads-up, The Pages documentation page is blank. https://levkk.github.io/rwf/controllers/pages/
      tommaho on HN
    • Looks great, very interesting! How is the state of to documentation?
      sureglymop on HN
  • Use SemVer and GitHub releases

    From 1 comment
    • Thanks for this. I've been looking for a Django-esque web-framework for Rust for a while now, and it would seem I'm not the only one[1]. Also, if you're open to suggestions, use…
      timkofu on HN

Questions

  • How does it compare to loco.rs

    From 2 comments
  • Why not integrate an existing ORM like diesel

    From 2 comments
    • I would kinda expect REST framework to be able to generate Swagger (aka OpenAPI) definitions out of the box. That's one of the killer features of FastAPI in my opinion. Also, I…
      throwaway313373 on HN
    • Nice, congratulations. It must feel so surreal launching this! One of my biggest learnings from doing a bunch of web MVC through Rails over the years is that the framework should…
      kvirani on HN

Alternatives named

  • Loco (loco.rs)

    From 2 comments
    • Lately I've been following https://loco.rs/ as it aims for a rails-like experience, complete with generators for workers, controllers, etc. I've only had time to experiment but…
      jakswa on HN
    • I've been evaluating and building out small prototypes with all the usual suspects for backend Rust work. So far I've reluctantly agreed with the hive mind that Axum on balance…
      jamiedumont on HN
  • Axum

    From 1 comment
    • I've been evaluating and building out small prototypes with all the usual suspects for backend Rust work. So far I've reluctantly agreed with the hive mind that Axum on balance…
      jamiedumont on HN
  • Diesel ORM

    From 2 comments
    • I would kinda expect REST framework to be able to generate Swagger (aka OpenAPI) definitions out of the box. That's one of the killer features of FastAPI in my opinion. Also, I…
      throwaway313373 on HN
    • I tried Diesel years ago, it was too "Rusty" for me. It made you define your schema twice, and couldn't use the same structs for inserts and selects (so 3 times, really).…
      levkk on HN
  • Rocket

    From 1 comment
    • I've been evaluating and building out small prototypes with all the usual suspects for backend Rust work. So far I've reluctantly agreed with the hive mind that Axum on balance…
      jamiedumont on HN
  • Ryde

    From 1 comment
    • Another related submission from today: Ryde: A Rust Web Framework - https://github.com/swlkr/ryde (October 2024, 5 comments)
      metadat on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/41914544)