Concordium / concordium-smart-contract-tools

Tools for building, deploying, and interacting with smart contracts
Apache License 2.0
2 stars 8 forks source link

Cargo-concordium: output to `concordium-out/module.wasm.v1` by default #155

Closed Bargsteen closed 3 months ago

Bargsteen commented 8 months ago

Description Cargo concordium should output the wasm module to PROJECT_ROOT/concordium-out/module.wasm.v1 by default, as it is cumbersome and error-prone to write manually all the time. Where PROJECT_ROOT is the folder with the manifest file (Cargo.toml). All of our example contracts with integration tests require this location anyhow and we also recommend it in our developer documentation.

The only downside is that it is a breaking change.

abizjak commented 8 months ago

I don't think it should be ./.... cargo-concordium can be run from other places, e.g., inside src directory.

If anything it should be relative to the location of the manifest file.

Bargsteen commented 8 months ago

Good point. I've amended the description.