If you are running the built file (target/{debug,release}/<executable name>.exe
) then it will just flicker on the screen. If you want to run it and see the output (on the console) you need to either add some kind of pause at the end or run it in a terminal (cmd
or power shell).
To be clear, the pause doesn't need to be in Rust. For example, if you put in this in the same directory as Cargo.toml
(the filename can be whatever you want, I'm calling it run-release.bat
for the sake of it):
cargo run --release
pause
That will run the release build and then pause (press any key to continue). You'll see output that way. You're better off opening a command prompt or power shell instance and working in there (at least in some way), but this will get you started.