Rewriting a Kotlin framework in Rust - code organization

โš“ Rust    ๐Ÿ“… 2025-08-13    ๐Ÿ‘ค surdeus    ๐Ÿ‘๏ธ 2      

surdeus

Hi!

Iโ€™ve been developing a Kotlin framework thatโ€™s grown to about 80k lines of code, and Iโ€™m planning to rewrite it in Rust.

Iโ€™m new to Rust, so my plan is to start with proof-of-concept implementations, experimenting with different approaches, and creating a clear rewrite plan before committing to the full migration.

My first question is about source code organization. The current project has around 20 non-trivial subprojects, each containing many packages.

What would be a good approach for organizing a Rust project of this size?

You can check out the current project here (still in development, not production-ready):

Thanks in advance for any advice or opinions!

5 posts - 3 participants

Read full topic

๐Ÿท๏ธ Rust_feed