CosmWasm / optimizer

Dockerfile and script to deterministically produce the smallest possible Wasm for your Rust contract
Apache License 2.0
118 stars 57 forks source link

Use sccache consistently in rust-optimizer and workspace-optimizer #136

Closed webmaster128 closed 10 months ago

webmaster128 commented 10 months ago

Part of #135 with the long term goal to only require one image that dynamically switches between the single contract and workspace case

webmaster128 commented 10 months ago

Actually I think this is the wrong direction. sccache is only useful when multiple Rust projects are compiled in one call of rust-optimizer. I.e. for CONTRACTDIR in "$@"; do is more than one argument. This usecase is very much irrelevant these days. It was built for the cosmwasm-examples repo before there was workspace-optimizer. See https://github.com/deus-labs/cw-contracts/blob/main/README.md?plain=1#L51-L64.

Instead we should error if "$@" contains more than one entry and require