The main.rs file currently contains the majority of the application’s logic, making it lengthy and less maintainable. To follow Rust best practices, core functionality should be moved to a lib.rs file, leaving main.rs as a concise entry point.
This refactor will improve maintainability, readability, and adherence to Rust's idiomatic project structure.