AbstractSDK / cw-orchestrator

All-in-one Rust-based CosmWasm testing, scripting, and deployment tool.
https://orchestrator.abstract.money
GNU General Public License v3.0
76 stars 18 forks source link

Allow cw-orch wasm compilation without features #342

Closed Buckram123 closed 6 months ago

Buckram123 commented 6 months ago

This PR aims to allow adding derive attributes for wasm targets, by not generating any code.

Interface can be removed as well. Users can also use the #[cfg(not(target_arch = "wasm32"))] to shield the interface instead of the interface feature

cloudflare-pages[bot] commented 6 months ago

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 17e108f
Status: ✅  Deploy successful!
Preview URL: https://0c8feadd.cw-orchestrator.pages.dev
Branch Preview URL: https://misha-orc-85-cw-orchqueryfns.cw-orchestrator.pages.dev

View logs

codecov[bot] commented 6 months ago

Codecov Report

Attention: Patch coverage is 91.11111% with 8 lines in your changes are missing coverage. Please review.

Project coverage is 66.8%. Comparing base (40a8a0f) to head (17e108f). Report is 1 commits behind head on main.

Additional details and impacted files | [Files](https://app.codecov.io/gh/AbstractSDK/cw-orchestrator/pull/342?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AbstractSDK) | Coverage Δ | | |---|---|---| | [contracts/counter/src/msg.rs](https://app.codecov.io/gh/AbstractSDK/cw-orchestrator/pull/342?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AbstractSDK#diff-Y29udHJhY3RzL2NvdW50ZXIvc3JjL21zZy5ycw==) | `75.0% <100.0%> (ø)` | | | [contracts/mock\_contract/src/lib.rs](https://app.codecov.io/gh/AbstractSDK/cw-orchestrator/pull/342?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AbstractSDK#diff-Y29udHJhY3RzL21vY2tfY29udHJhY3Qvc3JjL2xpYi5ycw==) | `97.9% <100.0%> (+1.0%)` | :arrow_up: | | [contracts/mock\_contract/src/msg\_tests.rs](https://app.codecov.io/gh/AbstractSDK/cw-orchestrator/pull/342?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AbstractSDK#diff-Y29udHJhY3RzL21vY2tfY29udHJhY3Qvc3JjL21zZ190ZXN0cy5ycw==) | `94.8% <100.0%> (ø)` | | | [packages/cw-orch-contract-derive/src/lib.rs](https://app.codecov.io/gh/AbstractSDK/cw-orchestrator/pull/342?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AbstractSDK#diff-cGFja2FnZXMvY3ctb3JjaC1jb250cmFjdC1kZXJpdmUvc3JjL2xpYi5ycw==) | `93.0% <100.0%> (+0.6%)` | :arrow_up: | | [packages/cw-orch-fns-derive/src/execute\_fns.rs](https://app.codecov.io/gh/AbstractSDK/cw-orchestrator/pull/342?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AbstractSDK#diff-cGFja2FnZXMvY3ctb3JjaC1mbnMtZGVyaXZlL3NyYy9leGVjdXRlX2Zucy5ycw==) | `99.2% <100.0%> (+<0.1%)` | :arrow_up: | | [packages/cw-orch-fns-derive/src/query\_fns.rs](https://app.codecov.io/gh/AbstractSDK/cw-orchestrator/pull/342?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AbstractSDK#diff-cGFja2FnZXMvY3ctb3JjaC1mbnMtZGVyaXZlL3NyYy9xdWVyeV9mbnMucnM=) | `94.9% <100.0%> (+0.3%)` | :arrow_up: | | [contracts/mock\_contract/src/custom\_resp.rs](https://app.codecov.io/gh/AbstractSDK/cw-orchestrator/pull/342?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AbstractSDK#diff-Y29udHJhY3RzL21vY2tfY29udHJhY3Qvc3JjL2N1c3RvbV9yZXNwLnJz) | `0.0% <0.0%> (ø)` | | | [contracts/mock\_contract\_u64/src/lib.rs](https://app.codecov.io/gh/AbstractSDK/cw-orchestrator/pull/342?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AbstractSDK#diff-Y29udHJhY3RzL21vY2tfY29udHJhY3RfdTY0L3NyYy9saWIucnM=) | `83.5% <62.5%> (+0.1%)` | :arrow_up: |