{"id":13728664,"url":"https://github.com/mandrean/cw-optimizoor","last_synced_at":"2025-07-28T15:30:51.560Z","repository":{"id":47295821,"uuid":"514743596","full_name":"mandrean/cw-optimizoor","owner":"mandrean","description":"A blazingly fast compiling \u0026 optimization tool for CosmWasm smart contracts.","archived":false,"fork":false,"pushed_at":"2023-11-28T21:40:25.000Z","size":677,"stargazers_count":50,"open_issues_count":9,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-14T19:40:01.949Z","etag":null,"topics":["cargo","cosmwasm","rust","wasm","webassembly"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mandrean.png","metadata":{"files":{"readme":"README.md","changelog":"Changelog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-07-17T04:11:40.000Z","updated_at":"2024-11-13T22:43:43.000Z","dependencies_parsed_at":"2024-01-07T16:32:26.992Z","dependency_job_id":null,"html_url":"https://github.com/mandrean/cw-optimizoor","commit_stats":{"total_commits":69,"total_committers":4,"mean_commits":17.25,"dds":0.07246376811594202,"last_synced_commit":"5f7282d4afc166d6b346f0881239c5a7e492adac"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mandrean%2Fcw-optimizoor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mandrean%2Fcw-optimizoor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mandrean%2Fcw-optimizoor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mandrean%2Fcw-optimizoor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mandrean","download_url":"https://codeload.github.com/mandrean/cw-optimizoor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227922911,"owners_count":17840940,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cargo","cosmwasm","rust","wasm","webassembly"],"created_at":"2024-08-03T02:00:47.286Z","updated_at":"2024-12-03T13:18:24.933Z","avatar_url":"https://github.com/mandrean.png","language":"Rust","funding_links":[],"categories":["Tooling"],"sub_categories":["Other Contracts"],"readme":"# cw-optimizoor\n\n![alt text](.img/wojak.png)\n\n[![Build Status](https://github.com/mandrean/cw-optimizoor/workflows/CI/badge.svg?branch=master)](https://github.com/mandrean/cw-optimizoor/actions/workflows/workflow.yaml)\n[![Latest version](https://img.shields.io/crates/v/cw-optimizoor.svg)](https://crates.io/crates/cw-optimizoor)\n[![Documentation](https://docs.rs/cw-optimizoor/badge.svg)](https://docs.rs/cw-optimizoor)\n![License](https://img.shields.io/crates/l/cw-optimizoor.svg)\n\nA blazingly fast alternative to [CosmWasm/rust-optimizer] for compiling \u0026 optimizing CW smart contracts.\n\nIt's primarily meant to speed up local development and testing.\n\n### Features:\n\n- **Fast** - especially in workspaces with many contracts\n- Uses same optimizations as `rust-optimizer` by default\n- No dependency on Docker\n- Supports both single- \u0026 multi-contract workspaces\n- Written as a [cargo subcommand]\n- Cross-platform, cross-arch\n\n### Installation\n\n```sh\n# Pre-requisites\n$ rustup install 1.69.0\n$ rustup target add wasm32-unknown-unknown\n\n$ cargo install cw-optimizoor\n```\n\nYou might also need any of the following:\n\n#### Linux\n```sh\n# Ubuntu\n$ sudo apt install -y cmake pkg-config libssl-dev clang\n\n# Fedora\n$ sudo dnf install -y cmake openssl-devel clang\n```\n\n#### macOS\n```sh\n$ xcode-select --install # clang\n$ brew install cmake pkg-config\n```\n\n#### Windows\n- [Visual Studio C++, Clang \u0026 Build Tools]\n- [CMake]\n- [Python]\n\n### Usage\n\n```sh\n$ cargo cw-optimizoor -h\n\nUsage: cargo cw-optimizoor [OPTIONS] [WORKSPACE_PATH]\n\nArguments:\n  [WORKSPACE_PATH]  Path to the workspace dir or Cargo.toml\n\nOptions:\n  -f, --features \u003cFEATURES\u003e  Space or comma separated list of features to activate\n      --all-features         Activate all available features\n      --no-default-features  Do not activate the `default` feature\n  -h, --help                 Print help information\n  -V, --version              Print version information\n```\n\n### Example\n```sh\n$ cargo cw-optimizoor              # defaults to the current dir\n# cargo cw-optimizoor Cargo.toml   # or this for pointing directly at a Cargo manifest\n# cargo cw-optimizoor .            # or this for the current dir\n\n🧐️  Compiling .../monorepo/Cargo.toml\n    Finished release [optimized] target(s) in 0.10s\n    \n🤓  Intermediate checksums:\n    ...326a37596ef54377869d8f7caa37cec393333b9808c9ecc75ddadf1357193a50  contract_1.wasm\n    ...170190ce817c36aa093263f4689abaffafe363909aea13e48b80c43a39a7cde9  contract_2.wasm\n    ...6a718777f28b2e213e3f18f60ffbf62febe563072e8a89b0cfa5359b3e0bed1b  contract_3.wasm\n    ...9f9dae24e8a388730b40de3092117cf84476dacfb6ed0112bec53b1b21127333  contract_4.wasm\n    ...9255c18758fd0b27de38c8aacd2030167b9d3c1575374d811f89742be8af4f8b  contract_5.wasm\n    \n🥸  Ahh I'm optimiziing\n    ...✅ contract_1 was optimized.\n    ...⏭️ contract_2 is unchanged. Skipping.\n    ...✅ contract_3 was optimized.\n    ...⏭️ contract_4 is unchanged. Skipping.\n    ...✅ contract_5 was optimized.\n    \n🤓  Final checksums:\n    ...e11db2d5b9ff3e14deee2a04ee40be0d1f8da96c4a45bc55348ea74ff4a4d4ae  contract_1-aarch64.wasm\n    ...0565368394fd2fa1409909f63fe11d09f37a1f777f26bc5ddb65d17c2fc82bb9  contract_2-aarch64.wasm\n    ...1364e024dab8cc057d090d8686042d8ab5e41e810b16d464be71a24aedc79ad3  contract_3-aarch64.wasm\n    ...4f553da8e620137c194eddfddcaa7baa29239ec723d0b1b2b49d11fe625986e5  contract_4-aarch64.wasm\n    ...61ea8988f4275c15785d7496c453a37ae4c3b021d4521120fc5c0d532287f864  contract_5-aarch64.wasm\n    \n🫡  Done. Saved optimized artifacts to:\n   .../monorepo/artifacts\n```\n\n[CosmWasm/rust-optimizer]: https://github.com/CosmWasm/rust-optimizer\n[CosmWasm]: https://cosmwasm.com\n[cargo subcommand]: https://doc.rust-lang.org/cargo/reference/external-tools.html#custom-subcommands\n[Visual Studio C++, Clang \u0026 Build Tools]: https://visualstudio.microsoft.com/downloads/\n[CMake]: https://cmake.org/download/\n[Python]: https://www.python.org/downloads/windows/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmandrean%2Fcw-optimizoor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmandrean%2Fcw-optimizoor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmandrean%2Fcw-optimizoor/lists"}