Any web frameworks that could compare to Symfony?

This page summarizes the projects mentioned and recommended in the original post on /r/rust

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • Symfony

    The Symfony PHP framework

  • I know most devs want to see something like Rust on Rails which I'm totally okay with, but if I'm being honest my absolute favorite framework to use is Symfony (I can hear all of you Larvel devs typing your hate bellow, but just remember... Larvel is built using Symfony components).

  • template-benchmarks-rs

    Discontinued Collected benchmarks for templating crates written in Rust

  • Personally, I'd recommend Maud if you don't need something with runtime reloading. Not only is it much faster, it implements a template language that is effectively the Rust-syntax equivalent to Slim or Haml using a procedural macro, so you get compile-time verification that your HTML output is well-formed.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • sea-orm

    🐚 An async & dynamic ORM for Rust

  • SeaORM is the most advanced option right now (though a lot of people prefer to go direct to the underlying SQLx library) but it doesn't yet match Django ORM for offering auto-generation of draft database migrations, which is one of the things I'm unwilling to regress on. (i.e. so all I need to hand-edit is stuff like "that's a rename, not a remove+add" and so on)

  • slm

    Slim, Jade like template engine for node

  • Personally, I'd recommend Maud if you don't need something with runtime reloading. Not only is it much faster, it implements a template language that is effectively the Rust-syntax equivalent to Slim or Haml using a procedural macro, so you get compile-time verification that your HTML output is well-formed.

  • serde

    Serialization framework for Rust

  • Figment or Confique would be the go-to configuration libraries. They both support Serde as a backend, and Serde supports a long list of formats including YAML so, once you've declared your schema, it's a matter of changing one line to switch between YAML, JSON, TOML, etc.

  • markup.rs

    A blazing fast, type-safe template engine for Rust.

  • (Sailfish is fastest, but it's syntax is of the more traditional <%= msg %> flavour and Markup.rs is second-fastest with a Maud-like syntax but the author apparently doesn't have time to rewrite the syntax reference, so you have to follow a link from the open issue to an old version of the README.)

  • sailfish

    Simple, small, and extremely fast template engine for Rust

  • (Sailfish is fastest, but it's syntax is of the more traditional <%= msg %> flavour and Markup.rs is second-fastest with a Maud-like syntax but the author apparently doesn't have time to rewrite the syntax reference, so you have to follow a link from the open issue to an old version of the README.)

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • maud

    :pencil: Compile-time HTML templates for Rust

  • Personally, I'd recommend Maud if you don't need something with runtime reloading. Not only is it much faster, it implements a template language that is effectively the Rust-syntax equivalent to Slim or Haml using a procedural macro, so you get compile-time verification that your HTML output is well-formed.

  • Haml

    HTML Abstraction Markup Language - A Markup Haiku

  • Personally, I'd recommend Maud if you don't need something with runtime reloading. Not only is it much faster, it implements a template language that is effectively the Rust-syntax equivalent to Slim or Haml using a procedural macro, so you get compile-time verification that your HTML output is well-formed.

  • actix-web

    Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust.

  • You description of how dependency injection works in Symfony sounds like how actix-web uses generics to make its "Extractors" work and, while I haven't used Axum (The other big name in Rust), it appears to do the same thing.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts