Implement new commands `build` and `check` + introduce bundles (.contract files)
Created by: cmichi
Closes #96 (closed) by implementing
- a new command
cargo contract build
, which results in atarget/metadata.json
, atarget/<name>.wasm
, and atarget/<name>.contract
(the .pack file mentioned in the issue). - a new command
cargo contract check
, which just tries to build the contract without generating metadata or optimizing the Wasm. - deprecates
cargo contract generate-metadata
forcargo contract build
(which implicitly does this or via--metadata-only
skips unnecessary operations not strictly needes for generating metadata).