reqwest VS actix-web

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

reqwest

An easy and powerful Rust HTTP Client (by seanmonstar)

actix-web

Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust. (by actix)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
reqwest actix-web
57 171
9,095 20,249
- 2.0%
8.7 9.1
10 days ago about 14 hours 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.

reqwest

Posts with mentions or reviews of reqwest. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-18.
  • The Linux Kernel Prepares for Rust 1.77 Upgrade
    9 projects | news.ycombinator.com | 18 Feb 2024
    > If you are equally picky and constrain yourself to parts of the ecosystem which care about binary size, you still have more options and can avoid size issues.

    What's an example of this for, say, libcurl? On my system it has a tiny number of recursive dependencies, around a dozen. [0] Furthermore if I want to write a C program that uses libcurl I have to download zero bytes of data ... because it's a shared library that is already installed on my system, since so many programs already use it.

    I don't really know the appropriate comparison for Rust. reqwest seems roughly comparable, but it's an HTTP client library, and not a general purpose network client like curl. Obviously curl can do a lot more. Even the list of direct dependencies for reqwest is quite long [1], and it's built on top of another http library [2] that has its own long list of dependencies, a list that includes tokio, no small library itself.

    In terms of final binary size, the installed size of the curl package on my system, which includes both the command line tool and development dependencies for libcurl, is 1875.03 KiB.

    [0] I'm excluding the dependency on the ca-certificates package, since this only provides the certificate chain for TLS and lots of programs rely on it.

    [1] https://crates.io/crates/reqwest/0.11.24/dependencies

    [2] https://crates.io/crates/hyper/0.14.28/dependencies

  • What We Need Instead of "Web Components"
    8 projects | news.ycombinator.com | 22 Dec 2023
  • ReductStore 1.6.0 has been released with new license and client SDK for Rust
    3 projects | dev.to | 15 Aug 2023
    ReductStore was rewritten from C++ to Rust a few months ago. We are delighted to be part of the Rust community and have taken a new step towards Rust with the Client SDK. The SDK is powered by reqwest and enables asynchronous integration of the database into Rust applications:
  • Rust dependency woes
    2 projects | /r/rust | 20 Jun 2023
    From what I could turn up when googling the specific error lines (here), it has something to do with the crate mio not having support for WASM, but I don’t understand what’s being said on this thread.
  • Using Auth0 with Tauri
    1 project | dev.to | 7 May 2023
    You can use the tauri-plugin-deep-link crate to register your app as a protocol handler. After you get your code, you can exchange it for an auth token in the same manner as the Electron guide, but for Rust you can use reqwest for the HTTP call.
  • Authentication system using rust (actix-web) and sveltekit - Automated testing
    3 projects | dev.to | 6 May 2023
    When starting out, we made some design decisions at the backend. The decision will allow us to independently test the service without interfering with the real application using a term called integration testing. We'll utilize two "dev" packages: reqwest and fake. Dev dependencies only get introduced into your application in development or during testing. In production, they are not included:
  • How can I save a blob:<url> to my hard disk? Im currently using Rust to scrape a website, however I dont even know if that is possible
    1 project | /r/rust | 22 Apr 2023
    It's possible, you will want to use crates like https://docs.rs/reqwest/ to download the page and https://docs.rs/scraper/ to extract elements from the page.
  • Becoming Rustacean:Awesome Free Online Resources to Learn Rust Programming
    6 projects | news.ycombinator.com | 11 Apr 2023
    Rust allows me to mainly only run the application to confirm things work from a business perspective.

    For people starting out building stuff in rust - understand that there is a distinction of async code and libraries and can lead to confusing compiler errors if you don't realize there is a distinction. It's simple in hindsight but did cause me to waste hours barking up the wrong trees at first. Other wise just learn about `match` and Result/Option types asap, they're fundamental.

    https://github.com/http-rs/tide tide is great to create an http server / routes

    https://github.com/djc/askama I use this to template out HTML and it checks all my boxes, dynamic data, passing in functions, control flow.

    https://github.com/launchbadge/sqlx sql interface for a variety of backend, async safe.

    https://github.com/seanmonstar/reqwest http client to make requests

    Rust is amazing, don't let the initial few speed bumps discourage you - building real things with rust is no more challenging today than any other modern language stack.

  • This Month in hyper: March 2023
    3 projects | /r/rust | 7 Apr 2023
    Is there any this month in reqwest? I would like to show my interest in https://github.com/seanmonstar/reqwest/issues/39
  • Reqwest cookies feature not working
    1 project | /r/rust | 3 Apr 2023
    The relevant issue seems to be https://github.com/seanmonstar/reqwest/pull/1753

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 reqwest and actix-web you can also consider the following projects:

hyper - An HTTP library for Rust

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

curl-rust - Rust bindings to libcurl

Rocket - A web framework for Rust.

ureq - A simple, safe HTTP client

Tide - Fast and friendly HTTP server framework for async Rust

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

surf - Fast and friendly HTTP client framework for async Rust

tokio - A runtime for writing reliable asynchronous applications with Rust. Provides I/O, networking, scheduling, timers, ...

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