Skip to content

Refactor large Rust files in hk-core for long-term maintainability #91

Description

@Orchardxyz

I noticed that there are several Rust files in hk-core that are already over 1000 lines.

Based on the structure commonly seen in many well-maintained open source projects, keeping a single source file within a reasonable size usually makes the codebase easier to navigate, review, and maintain over time.

As a first step, I tried splitting rules.rs into smaller modules for better long-term maintainability. This change is intended as a structural refactor only, without changing behavior.(#92)

There are still several other large modules in hk-core that have not been adjusted yet. If you agree with this direction, we can continue optimizing the remaining large files in follow-up commits.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions