'cargo build not generating some files in /target/debug

When using cargo build command some files are not being generated in my /target/debug folder. Instead when I use cargo build --release these files are correctly generated in /target/release folder. Why this behavior changes depending on debug or release?

I am trying to compile a sequoia project and for example sq.exe file is not generated within /target/debug but it is at /target/release so cargo build and cargo build --release behaves different?

There are no errors on compilation process, in both cases it finishes successfully.

Note: I am newbie on cargo and rust and now I am trying to compile a project which is not mine.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source