Splitting a big struct impl into multiple files?

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

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • inox2d

    Native Rust reimplementation of Inochi2D

  • For example, I wouldn't want to separate this into multiple files, would make it harder to see where all the deserialization logic is.

  • rust-xpath

    Remake of sxd-xpath to fit my specific needs.

  • Yea, that's fine. Here's another example of my XPATH Parser which is currently 900 lines long. I could trim a little bit (~100 lines) from the file but everything otherwise is meant to be in there. If you have lots of functions that are long (200+ lines each) then you could consider sub moduling it like this (these are separated functions, not impls though) but I assume this one is further away than what you're trying to do.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • backblaze-btwo

    Backblaze B2 API

  • Yea, that's fine. Here's another example of my XPATH Parser which is currently 900 lines long. I could trim a little bit (~100 lines) from the file but everything otherwise is meant to be in there. If you have lots of functions that are long (200+ lines each) then you could consider sub moduling it like this (these are separated functions, not impls though) but I assume this one is further away than what you're trying to do.

  • rust

    Empowering everyone to build reliable and efficient software.

  • Lastly I'd like to leave you with rusts' Expression Parser to remove more doubt.

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

  • Using the mold linker for fun and 3x-8x link time speedups

    4 projects | news.ycombinator.com | 3 Jun 2022
  • Create a Custom GitHub Action in Rust

    3 projects | dev.to | 28 Apr 2024
  • I hate Rust (programming language)

    1 project | news.ycombinator.com | 22 Apr 2024
  • Rust Weird Exprs

    1 project | news.ycombinator.com | 11 Apr 2024
  • Critical safety flaw found in Rust on Windows (CVE-2024-24576)

    1 project | news.ycombinator.com | 10 Apr 2024