Beginner's Guide to Error Handling in Rust

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

Our great sponsors
  • SonarLint - Clean code begins in your IDE with SonarLint
  • InfluxDB - Access the most powerful time series database as a service
  • SaaSHub - Software Alternatives and Reviews
  • cockroach

    CockroachDB - the open source, cloud-native distributed SQL database.

    > In Go, you can build massive projects without needing any dependencies to make error handling ergonomic.

    are we talking about the same go where the average code looks like this, a big long chain of if blabla return nil, err ?

    like, code like this is exactly the reason why exceptions were invented

  • failure

    Error management

    > It's not like there's likely hidden segfaults or memory vulns waiting there…

    It's funny you mention that, because the now-deprecated 'failure' crate has such a memory-safety vulnerability:

    Granted, consuming code is only vulnerable if they opt-in to implementing a provided trait method that most people should never ever need to implement. But I would still try to eliminate 'failure' from my dependency graph if possible (and I recently submitted PRs to two dependencies I was using to remove 'failure' from _their_ dependencies).

  • SonarLint

    Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.

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