@taariq Hi, Taariq. The problem was running discovery compile, which it seems, as a final step copies the compiled wasm file to another location. And when it is named something other than contract.wasm it fails.
The limitation on the name is not with rustc or cargo but with discovery.
I am using rustc and cargo v1.38.0.