Rewriting a Kotlin framework in Rust - code organization
โ Rust ๐ 2025-08-13 ๐ค surdeus ๐๏ธ 12Hi!
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):
- GitHub: GitHub - spxbhuhb/adaptive: A consolidated application platform for Kotlin Multiplatform.
- Website: https://adaptive.fun (desktop browser recommended โ not yet mobile-friendly)
Thanks in advance for any advice or opinions!
5 posts - 3 participants
๐ท๏ธ Rust_feed