Text of users.rust-lang.org › t › cli-github-user-activity › 139926 as Styx crawled it on Nov 19, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

Cli github user activity - code review - The Rust Programming Language Forum

Cli github user activity code review proRust May 3, 2026, 11:30pm 1 Hello everyone, I’m building a CLI application. This is my second program in Rust, so I don’t have much experience yet or a strong understanding of best practices. I’m sharing my code in case anyone would like to give feedback or suggestions to help me improve. I’ve also used AI to help me understand some parts that I still find difficult, but my main goal is to gain a solid understanding of the language and how it works.

Here is the GitHub repository: https://github.com/AppBlitz/github-user-activity If you find any issues or have suggestions, I would really appreciate your feedback. Thank you very much for your time and help. MOCKBA May 4, 2026, 12:37am 2 Do you mind to share the github link, instead of the git repository? A disk space is expensive recent time. sww1235 May 4, 2026, 1:16am 3 Your link is broken btw. proRust May 4, 2026, 2:32am 4 @sww1235 @MOCKBA I've now fixed the link; I'm sorry for my mistake Jesper May 4, 2026, 3:15am 5 I think you are splitting your source code into too many small files - at least for my taste.

Also - I notice you have both src/lib.rs and src/main.rs. Normally you don't have both - it is either a lib or a bin. If it is a lib you can put main(s) in src/bin or examples/ Then you run them with with cargo run --bin main or cargo run --example main . Joel_Halpern May 4, 2026, 3:36am 6 Maybe I am missing something. As I read Refactoring to Improve Modularity and Error Handling - The Rust Programming Language it recommends splitting a program into a main.rs, a lib.rs, and then other modules.

Did I misread it? robofinch May 4, 2026, 3:41am 7 No, I agree with you. I frequently do lib.rs + main.rs for executable projects. I just make sure to declare all mod s within lib.rs , not main.rs , even though it’s technically permissible to do a mix of both. jasonlikesrust May 4, 2026, 8:30pm 8 I prefer the folder structure and no mod.rs, but that's just me. What is the commands file for? Related topics Topic Replies Views Activity Repo_watch: a github cli tool for working in organizations with lots of repos announcements 0 472 September 17, 2020 Ferium, my first Rust project! code review 7 1403 September 17, 2021 Where to go for code review? help 12 1497 September 14, 2020 About the code review category code review 0 1886 March 20, 2020 Code Review / Critique Request: Unifying LLM providers & agent patterns behind shared core traits code review 2 445 September 6, 2026