tower VS black-hat-rust

Compare tower vs black-hat-rust and see what are their differences.

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
tower black-hat-rust
14 48
3,258 3,047
2.6% 1.6%
2.1 4.3
13 days ago 7 months ago
Rust Rust
MIT License MIT License
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.

tower

Posts with mentions or reviews of tower. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-10-07.
  • Collection of trait implementations with associated types (GATs?)
    1 project | /r/rust | 15 Feb 2023
    This question is partially inspired by this PR which is kinda trying to do the same thing.
  • dd-trace-layer - A web application middleware for sending Datadog's trace
    3 projects | /r/rust | 7 Oct 2022
    dd-trace-layer is a middleware for sending Datadog's trace. It's based on Tower and OpenTelemetry Rust.
  • GCP firestore and logging SDK in rust
    3 projects | /r/rust | 6 Oct 2022
    I'm pretty sure that GCP's APIs (unlike AWS, which uses Smithy for very genuinely, very good reason) are defined using Protobuf and can be communicated with over gRPC, which means that you don't need to bind via cxx to GCP's C++ APIs. Take a look at this example using Tonic. If you're to use Tonic, you'll also be able to use Tower's middleware (main crate, http-specific) to implement retries, timeouts, tracing, and all the other things you need to be production-ready.
  • Which Rust web framework to choose in 2022 (with code examples)
    7 projects | dev.to | 27 Sep 2022
    #[derive(Clone)] struct MyMiddleware { inner: S, } impl Service> for MyMiddleware where S: Service, Response = Response> + Clone + Send + 'static, S::Future: Send + 'static, { type Response = S::Response; type Error = S::Error; type Future = BoxFuture<'static, Result>; fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll> { self.inner.poll_ready(cx) } fn call(&mut self, mut req: Request) -> Self::Future { println!("before"); // best practice is to clone the inner service like this // see https://github.com/tower-rs/tower/issues/547 for details let clone = self.inner.clone(); let mut inner = std::mem::replace(&mut self.inner, clone); Box::pin(async move { let res: Response = inner.call(req).await?; println!("after"); Ok(res) }) } } fn main() { let app = Router::new() .route("/", get(|| async { /* ... */ })) .layer(layer_fn(|inner| MyMiddleware { inner })); }
  • How to schedule and run cron jobs in Rust using apalis
    2 projects | dev.to | 14 Aug 2022
    For this tutorial, we're going to use apalis to run cron jobs in an async context. We will also look at how to decorate our jobs with tower middleware allowing us to unlock features like retries, prometheus, sentry etc
  • Warp or Rocket.rs or Actix Web?
    8 projects | /r/rust | 29 May 2022
    So I have now had a look at Axum and think I will give it a try. In the readme in the repository it says something about tower or tower::Service and tonic, what exactly is that? I do not understand that yet.
  • tower-lsp 0.16.0 β€” Lightweight framework for building LSP servers
    2 projects | /r/rust | 11 Mar 2022
    Better compatibility with tower ecosystem.
  • ratpack: a simpleton's HTTP framework
    6 projects | /r/rust | 24 Jan 2022
    ratpack is idealized in the simplicity of the sinatra (ruby) framework in its goal, and attempts to be an alternative to other async HTTP frameworks such as tower, warp, axum, and tide.
  • When and how to use traits?
    3 projects | /r/rust | 21 Aug 2021
    i would browse the standard library, tower, nom, or my own bitvec to see layout and trait/record separation. in particular, std::io and std::net may be of use: io::Read and io::Write are pervasive examples of implementing unixy file-descriptor-like behavior in the type system
  • I could use some help!
    2 projects | /r/learnrust | 15 Jul 2021
    We're not there yet. I keep an eye on Tower which looks promising to build on top of. And I keep an eye on MoonZoon (full stack framework, unashamedly opinionated!).

black-hat-rust

Posts with mentions or reviews of black-hat-rust. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-10-20.
  • Cloudflare for Speed and Security
    2 projects | /r/CloudFlare | 20 Oct 2023
    Bonuses: If you purchase Cloudflare for Speed and Security before November 4, 2023, you'll get my bestseller, Black Hat Rust, for free! Yes, you read it right, two books for less than the price of one!
  • Show HN: I'm writing a book – Cloudflare for Speed and Security
    1 project | news.ycombinator.com | 18 Oct 2023
    Hey HN,

    I'm so excited to finally share with you what I've been working on recently.

    One month ago I asked my audience what they wanted to learn about Websites, APIs and Servers security [0].

    From the feedback, I've identified a few recurring pain points that I've started to address (and many more) in this new book.

    From theory to practice, you will learn how low-level network and security protocols work. How to configure Cloudflare to secure and scale your web applications. How to create serverless applications and which database to chose with serverless functions. How to optimize your caching policies. How to distribute videos globally. And a lot of other things, all of that while significantly reducing your cloud bill.

    Today, the book is far from ready, but I still wanted to release it as "Early Access". First, to enable you to start learning today and, secondly, to garner feedback and refine the book's content.

    Between writing, editing, and technical reviewing, it can take some time to complete a book. That's why I release my books before they are fully completed - so you can commence learning before the book is 100% ready, provide feedback, and help shape the content. Rest assured, all future updates are free of charge.

    The final publication date is set for mid-January 2024.

    Bonuses: If you purchase Cloudflare for Speed and Security before November 4, 2023, you'll get my bestseller, Black Hat Rust [1], for free! Yes, you read it right, two books for less than the price of one!

    Furthermore, all early-access supporters will receive the checklist I use to quickly set up a new domain on Cloudflare, ensuring the right balance between security, performance, and user experience.

    Lastly, the price is likely to increase once the book transitions out of Early Access, so don't postpone getting your copy.

    Sylvain

    [0] https://kerkour.com/what-do-you-want-to-learn-about-web-and-...

    [1] https://kerkour.com/black-hat-rust

  • Black Hat Rust
    1 project | /r/savedForMS | 1 May 2023
  • The EU Suppressed a 300-Page Study That Found Piracy Doesn’t Harm Sales
    1 project | news.ycombinator.com | 25 Apr 2023
    The best way I have found to prevent the piracy of my book (https://kerkour.com/black-hat-rust) is to inundate pirate platforms with only the first chapter and with a discount inside for those who can't afford the original price.

    So far it worked really well.

  • [Question] Does Rusts safety features make it less useful for pentesting?
    3 projects | /r/rust | 5 Mar 2023
    Black Hat Rust
  • Offensive Rust
    2 projects | /r/redteamsec | 8 Jan 2023
    You mean like this? https://kerkour.com/black-hat-rust
  • Position Independent Shellcodes in Rust (PIC)
    1 project | dev.to | 14 Dec 2022
    As usual, you can find the code on GitHub: github.com/skerkour/black-hat-rust (please don't forget to star the repo πŸ™).
  • How to Write and Compile a Shellcode in Rust
    1 project | dev.to | 12 Dec 2022
    This post is an excerpt from my book Black Hat Rust
  • Learn Rust, Offensive Security and Applied Cryptography
    3 projects | dev.to | 11 Nov 2022
    This is why I dedicated the past months to write a book about the topic: Black Hat Rust - Applied offensive security with the Rust programming language.
  • Backdooring Rust crates for fun and profit
    5 projects | dev.to | 9 Nov 2022
    Want to learn more Rust, Offensive Security and Applied Cryptography? Take a look at my book Black Hat Rust Get 42% off until Friday, November 12 with the coupon 1311B892

What are some alternatives?

When comparing tower and black-hat-rust you can also consider the following projects:

hyper - An HTTP library for Rust

sn0int - Semi-automatic OSINT framework and package manager

tower-lsp - Language Server Protocol implementation written in Rust

zero-to-production - Code for "Zero To Production In Rust", a book on API development using Rust.

tower-http - HTTP specific Tower utilities.

yakuza-freecam - Yakuza Freecam Tool made in Rust

bitvec - A crate for managing memory bit by bit

dirble - Fast directory scanning and scraping tool

apalis - Simple, extensible multithreaded background job and message processing library for Rust

rust-windows-shellcode - Windows shellcode development in Rust

Tide - Fast and friendly HTTP server framework for async Rust

CVE-2022-0337-PoC-Google-Chrome-Microsoft-Edge-Opera - 🎩 🀟🏻 [P1-$10,000] Google Chrome, Microsoft Edge and Opera - vulnerability reported by Maciej Pulikowski - System environment variables leak - CVE-2022-0337