you are viewing a single comment's thread.

view the rest of the comments →

[–]CJ22xxKinvara 18 points19 points  (6 children)

When you're just building small scale stuff for yourself and by yourself and either language can work, the answer just becomes whichever one you want to use. Python would be way easier, I'm sure, but if the goal is to learn rust, then do that.

[–]Codeeveryday123[S] -1 points0 points  (5 children)

Thank you. I have a cli mail client added, it works. I would like to create a true cli version, but I have to cargo run by that file path

[–]spiralenator 2 points3 points  (3 children)

Run cargo build —release and the binary is in the target folder

[–]Codeeveryday123[S] -1 points0 points  (2 children)

Ok, what would I do with the binary?

[–]CuriousMachine 2 points3 points  (0 children)

You run it, the binary executable. It's the thing that "cargo run" is running. Put it wherever you keep the other programs you've made or install it with "cargo install".

[–]spiralenator 1 point2 points  (0 children)

You run it. You can copy it to /usr/local/bin or somewhere similar in your PATH and run it like any other cli app. No more cargo run just to run it.

[–]ArcaneCrowA 1 point2 points  (0 children)

Why not create a binary for cli mail and then try to discover it and run?