Rustler VS actix-web

Compare Rustler vs actix-web and see what are their differences.

Rustler

Safe Rust bridge for creating Erlang NIF functions (by rusterlium)

actix-web

Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust. (by actix)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
Rustler actix-web
35 171
4,152 20,200
1.7% 2.0%
8.6 9.2
27 days ago 6 days ago
Rust Rust
Apache License 2.0 Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

Rustler

Posts with mentions or reviews of Rustler. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-09.
  • AI Toolkit: Give a brain to your game's NPCs, a header-only C++ library
    2 projects | news.ycombinator.com | 9 Jan 2024
    For performance intensive tasks, you could rely on Rust NIFs, there is this great project: https://github.com/rusterlium/rustler

    My last project with Elixir was using Elixir merely as an orchestrator of static binaries (developed in golang) which were talking in JSON via stdin/stdout.

  • Building Apps with Tauri and Elixir
    14 projects | dev.to | 19 Oct 2023
    From the moment we discovered Tauri, we really felt like this was the perfect fit. The API is really solid, the configuration files are minimal and easy to understand, and the usage of Rust makes it way easier to add new functionalities and think about interesting ways of interoperating with Elixir via the Rustler library.
  • Async Rust Is A Bad Language
    11 projects | news.ycombinator.com | 8 Sep 2023
    Elixir/Rust is the new Python/C++, and Rustler makes the communicating between the 2 languages super easy: https://github.com/rusterlium/rustler
  • Why elixir over Golang
    10 projects | /r/elixir | 29 May 2023
    Rustler is so awesome for this. Write Elixir NIFs in Rust? Yes, please!
  • Is RUST a good choice for building web browsers?
    6 projects | /r/rust | 27 May 2023
  • Why do you enjoy systems programming languages?
    2 projects | /r/rust | 25 May 2023
    But really, I would suggest thinking about what you want to build before "how" or "with which tool" - one of the signs of a person becoming a good engineer is having an array of tools at their disposal and being able to choose a correct tool for the correct task. Rust also excels in integrating with other languages - with JS via WebAssembly (a bit of self-promotion, for example), with Elixir via Rustler, with Python via PyO3 and PyOxidizer, etc. So you absolutely can start writing a frontend app with JS, or a distributed system with Elixir, or a data processing/ML app with Python and use Rust to speed up critical parts of those. Or, in reverse, you can start with Rust & add new capabilities to whatever you're building, that being a frontend, a resilient chat interface, or an ML model.
  • PasswordRs 0.1.0 released (Rust NIF for password hashing)
    4 projects | /r/elixir | 24 Apr 2023
    I created a elixir (wrapper) library to generate password hashes. Other Elixir libraries use a C NIF to generate password hashes. This libary uses a Rust NIF (using Rustler) and the Rust libraries the generate the different hashes. Additionally this library uses RustlerPrecompiled so you don't need to have a Rust compiler installed to use this library. It supports argon2, scrypt, brypt and pbkdf2.
  • Elixir and Rust is a good mix
    10 projects | news.ycombinator.com | 13 Apr 2023
    > I guess, why not use Rust entirely instead of as a FFI into Elixir or other backend language?

    Because Rust brings none of the benefits of the BEAM ecosystem to the table.

    I was an early Elixir adopter, not working currently as an Elixir developer, but I have deployed one of the largest Elixir applications for a private company in my country.

    I know it has limits, but the language itself is only a small part of the whole.

    Take ML, Jose Valim and Sean Moriarity have studied the problem, made a plan to tackle it and started solving it piece by piece [1] in a tightly integrated manner, it feels natural, as if Elixir always had those capabilities in a way that no other language does and to put the icing on the cake the community released Livebook [2] to interactively explore code and use the new tools in the simplest way possible, something that Python notebooks only dream of being capable of, after a decade of progress

    That's not to say that Elixir is superior as a language, but that the ecosystem is flourishing and the community is able to extract the 100% of the benefits from the tools and create new marvellously crafted ones, that push the limits forward every time, in such a simple manner, that it looks like magic.

    And going back to Rust, you can write Rust if you need speed or for whatever reason you feel it's the right tool for the job, it's totally integrated [3][4], again in a way that many other languages can only dream of, and it's in fact the reason I've learned Rust in the first place.

    The opposite is not true, if you write Rust, you write Rust, and that's it. You can't take advantage of the many features the BEAM offers, OTP, hot code reloading, full inspection of running systems, distribution, scalability, fault tolerance, soft real time etc. etc. etc.

    But of course if you don't see any advantage in them, it means you probably don't need them (one other option is that you still don't know you want them :] ). In that case Rust is as good as any other language, but for a backend, even though I gently despise it, Java (or Kotlin) might be a better option.

    [1] https://github.com/elixir-nx/nx https://github.com/elixir-nx/axon

    [2] https://livebook.dev/

    [3] https://github.com/rusterlium/rustler

    [4] https://dashbit.co/blog/rustler-precompiled

  • It's legos all the way down
    3 projects | dev.to | 17 Feb 2023
    unfortunately as of the time of this writing, rustler does not support generic type intefaces so I guess this is impossible?
  • When Rust Hurts
    6 projects | news.ycombinator.com | 15 Feb 2023
    One thing that drew me to Rust was actually Elixir/Erlang calling out to it for certain specialized needs. Within Elixir/Erlang you get best of breed concurrency but exiting the BEAM to run other code is unsafe. Calling out to Rust, however, comes with great safety guarantees.

    Managing concurrency outside of Rust and then calling Rust for the more focused and specialized work is a good combination IMO.

    https://github.com/rusterlium/rustler

actix-web

Posts with mentions or reviews of actix-web. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-09.
  • Empowering Web Privacy with Rust: Building a Decentralized Identity Management System
    3 projects | dev.to | 9 Apr 2024
    Actix Web Documentation: Detailed documentation on using Actix-web, including examples and best practices for building web applications with Rust.
  • Ntex: Powerful, pragmatic, fast framework for composable networking services
    2 projects | news.ycombinator.com | 23 Mar 2024
    I can't speak to the "is it any good" part, but (after a bit of research) I can share what I've found. I'll try to represent things as best as I understand, but I may have some finer details mixed up.

    ntex is written by the same person that started actix-web, Nikolay Kim (fafhrd91 on GitHub). There was a bunch of drama a while back due to actix-web using (what many reasoned to be) avoidable unsafe code, which was later found to be buggy. Nikolay was pilloried online, resulting in him transferring leadership of actix-web to someone else. ntex is, as I understand it, essentially Nikolay picking back up on his ideals for what could have been actix-web, if people hadn't pushed him out of his own project.

    How ntex compares to the pre-/post-leadership change of actix-web, I don't know.

    Here are some jumping points if you want more of the backstory.

    https://www.theregister.com/2020/01/21/rust_actix_web_framew...

    https://steveklabnik.com/writing/a-sad-day-for-rust

    https://github.com/actix/actix-web/issues/1289

  • Building a REST API for Math Operations (+, *, /) with Rust, Actix, and Rhai🦀
    2 projects | dev.to | 22 Mar 2024
    Are you ready to embark on another journey in Rust? Today, we'll explore how to create a REST API that performs basic mathematical operations: addition, multiplication, and division. We'll use Actix, a powerful web framework for Rust, together with Rhai, a lightweight scripting language, to achieve our goal.
  • Actix-Web: v4.5.0
    1 project | news.ycombinator.com | 4 Feb 2024
  • Getting Started with Actix Web - The Battle-tested Rust Framework
    2 projects | dev.to | 15 Dec 2023
    Within actix-web, middleware is used as a medium for being able to add general functionality to a (set of) route(s) by taking the request before the handler function runs, carrying out some operations, running the actual handler function itself and then the middleware does additional processing (if required). By default, actix-web has several default middlewares that we can use, including logging, path normalisation, access external services and modifying application state (through the ServiceRequest type).
  • Show HN: Play Euchre with AI Bots
    2 projects | news.ycombinator.com | 12 Oct 2023
  • Actix-Web: v4.4.0
    1 project | news.ycombinator.com | 30 Aug 2023
  • Choosing the Right Rust Web Framework: An Overview
    4 projects | news.ycombinator.com | 23 Aug 2023
  • Building a Rust app with Perseus
    8 projects | dev.to | 5 Jul 2023
    Rust is a popular system programming language, known for its robust memory safety features and exceptional performance. While Rust was originally a system programming language, its application has evolved. Now you can see Rust in different app platforms, mobile apps, and of course, in web apps — both in the frontend and backend, with frameworks like Rocket, Axum, and Actix making it even easier to build web applications with Rust.
  • Introducing SQLPage : write websites entirely in SQL
    8 projects | /r/rust | 4 Jul 2023
    actix to handle HTTP requests

What are some alternatives?

When comparing Rustler and actix-web you can also consider the following projects:

gleam - ⭐️ A friendly language for building type-safe, scalable systems!

axum - Ergonomic and modular web framework built with Tokio, Tower, and Hyper

hsnif - Tool that allows to write Erlang NIF libraries in Haskell

Rocket - A web framework for Rust.

nifty - helpful tools for when I need to create an Elixir NIF .

Tide - Fast and friendly HTTP server framework for async Rust

carbon-lang - Carbon Language's main repository: documents, design, implementation, and related tools. (NOTE: Carbon Language is experimental; see README)

tonic - A native gRPC client & server implementation with async/await support.

Akka - Build highly concurrent, distributed, and resilient message-driven applications on the JVM

hyper - An HTTP library for Rust

elixir-nodejs - An Elixir API for calling Node.js functions

salvo - A powerful web framework built with a simplified design.