Need suggestions on how to write decoupled/loosely coupled code

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

Our great sponsors
  • SonarLint - Clean code begins in your IDE with SonarLint
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • SaaSHub - Software Alternatives and Reviews
  • clinvoice-config

    User configuration of CLInvoice.

    Example: I split out all of the logic for reading my program's config file into its own crate. This is great, since only the main binary actually depends on this behavior. All of my database adapters, currency exchanging functions, my schema, etc, don't need any of that to compile. It really helps with reusability and separation of concerns.

  • clinvoice

    Invoice from the command line!

    Also, often when I use a dependency (and if it is viable to do so) I will write helpers around it so that if I change the dependency later, the odds of me having to change everything depending on certain functionality goes down.

  • 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.

  • alkonost

    Simple spam detector for YouTube chats with different UI options

    Trying to solve this exact issue I always end up with a bunch of modules, each with it's own message processing loop, and using crossbeam or Tokio channels to communicate with each other. Something like this: https://github.com/Asapin/alkonost/blob/master/chat_poller/src/lib.rs

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