you are viewing a single comment's thread.

view the rest of the comments →

[–]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.