Rust Cargo Doesn't Produce an Executable
Hello all! When I use cargo build (or cargo build --release), there is no contact.exe file produced in the target/debug (or target/release) folder, but there is a file named 'contact' with no extension. How can I get it to produce an executable instead?
That is an executable. It's just a Linux executable, which tend to have no extensions, as opposed to Windows ones which have
.exe. You won't be able to run it (the one with no extension) on Windows (or vice versa), but to run it here on replit, you can go to the shell and type
./target/release/contact. The reason it is generating a Linux executable is because your repl is actually on a Linux system.