How should I structure a medium sized crate?

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

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • grill

  • For example, this file1 is currently at 3043 lines, is lacking a great deal of documentation (especially examples), I've split off a lot of the logic into private modules, and I've moved the tests out into a separate mod as well.

  • tokio

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

  • For example, check out src/io/mod.rs or src/fs/mod.rs, which has a lot of re-exports. See also the standard library, e.g., src/sync/mod.rs.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • rust

    Empowering everyone to build reliable and efficient software.

  • For example, check out src/io/mod.rs or src/fs/mod.rs, which has a lot of re-exports. See also the standard library, e.g., src/sync/mod.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