-
Notifications
You must be signed in to change notification settings - Fork 29
feat: upgrade chain dependencies to 1.19 #265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -11,17 +11,17 @@ anyhow = { version = "1.0.66" } | |||||||||||
| base64 = { version = "0.21.5" } | ||||||||||||
| cosmos-sdk-proto = { version = "0.20.0", default-features = false } | ||||||||||||
| cosmwasm-schema = { version = "1.5.0" } | ||||||||||||
| cosmwasm-std = { version = "3.0.2", features = [ "cosmwasm_1_2", "cosmwasm_1_3", "cosmwasm_1_4", "cosmwasm_2_0", "iterator", "stargate" ] } | ||||||||||||
| cosmwasm-std = { version = "3.0.5", features = [ "cosmwasm_1_2", "cosmwasm_1_3", "cosmwasm_1_4", "cosmwasm_2_0", "iterator", "stargate" ] } | ||||||||||||
|
Comment on lines
13
to
+14
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: # Find the Cargo.toml file and examine the workspace dependencies
find . -name "Cargo.toml" -type f | head -20Repository: InjectiveLabs/cw-injective Length of output: 380 🏁 Script executed: # Check the root Cargo.toml to see the workspace and dependency declarations
cat -n Cargo.toml | head -30Repository: InjectiveLabs/cw-injective Length of output: 1669 🌐 Web query:
💡 Result: In the Cargo.toml for cosmwasm-std version 3.0.5, the [dev-dependencies] section includes cosmwasm-schema = { workspace = true }, along with cosmwasm-core = { workspace = true }, chrono = { version = "0.4", default-features = false, features = ["alloc", "std"] }, crc32fast = "1.3.2", hex-literal = "0.4.1", paste = "1.0.15", and proptest = { version = "1.5.0", default-features = false, features = ["attr-macro", "std"] }. This is confirmed directly from the original Cargo.toml source on docs.rs for version 3.0.5, which shows cosmwasm-schema referenced via workspace inheritance in the dev-dependencies. Citations:
🌐 Web query:
💡 Result: The latest release version of cosmwasm-schema is 3.0.4, released on 2026-02-10. Citations:
Bump
🔧 Proposed fix-cosmwasm-schema = { version = "1.5.0" }
+cosmwasm-schema = { version = "3.0.4" }
cosmwasm-std = { version = "3.0.5", features = [ "cosmwasm_1_2", "cosmwasm_1_3", "cosmwasm_1_4", "cosmwasm_2_0", "iterator", "stargate" ] }📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||
| cw-multi-test = { version = "3.0.0" } | ||||||||||||
| cw-storage-plus = { version = "3.0.1" } | ||||||||||||
| cw2 = { version = "3.0.0" } | ||||||||||||
| ethereum-types = { version = "0.5.2" } | ||||||||||||
| hex = { version = "0.4.3", features = [ "serde" ] } | ||||||||||||
| injective-cosmwasm = { version = "0.3.5-1" } | ||||||||||||
| injective-math = { version = "0.3.5-1" } | ||||||||||||
| injective-std = { version = "1.18.0" } | ||||||||||||
| injective-test-tube = { version = "1.18.0" } | ||||||||||||
| injective-testing = { path = "./packages/injective-testing" } | ||||||||||||
| injective-cosmwasm = { version = "0.3.6" } | ||||||||||||
| injective-math = { version = "0.3.6" } | ||||||||||||
| injective-std = { version = "1.19.0" } | ||||||||||||
| injective-test-tube = { version = "1.19.0" } | ||||||||||||
| injective-testing = { version = "1.19.0", path = "./packages/injective-testing" } | ||||||||||||
| primitive-types = { version = "0.12.2", default-features = false } | ||||||||||||
| prost = { version = "0.13.5", features = [ "prost-derive" ] } | ||||||||||||
| rand = { version = "0.4.6" } | ||||||||||||
|
|
@@ -47,9 +47,3 @@ opt-level = 3 | |||||||||||
| overflow-checks = true | ||||||||||||
| panic = 'abort' | ||||||||||||
| rpath = false | ||||||||||||
|
|
||||||||||||
| [patch.crates-io] | ||||||||||||
| # injective-cosmwasm = { path = "./packages/injective-cosmwasm" } | ||||||||||||
| # injective-math = { path = "./packages/injective-math" } | ||||||||||||
| # injective-protobuf = { path = "./packages/injective-protobuf" } | ||||||||||||
| # injective-testing = { path = "./packages/injective-testing" } | ||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: InjectiveLabs/cw-injective
Length of output: 606
🏁 Script executed:
cat -n .github/workflows/Basic.yml | head -100Repository: InjectiveLabs/cw-injective
Length of output: 3805
🌐 Web query:
actions-rs/cargo deprecated GitHub Actions💡 Result:
Yes, the GitHub Action actions-rs/cargo is deprecated and unmaintained. The repository https://github.com/actions-rs/cargo was archived on October 13, 2023, and is now read-only. It used Node.js 12, which is deprecated, causing warnings and potential failures in workflows. The recommended replacement is to run cargo commands directly using the 'run:' step after setting up the Rust toolchain. GitHub-hosted runners have Rust preinstalled, and the official GitHub Rust workflow template uses: - actions/checkout@v4 - dtolnay/rust-toolchain@stable (or similar for toolchain setup) - actions/cache@v4 for Cargo registry, git, and target directories - Then 'run: cargo check', 'run: cargo test', etc. This approach is simpler, faster, and maintained. For toolchain management, use dtolnay/rust-toolchain or actions-rust-lang/setup-rust-toolchain. Many projects have migrated by removing actions-rs/cargo and using direct cargo runs, as GitHub runners include cargo by default.
Citations:
actions-rs/cargolibp2p/rust-libp2p#3398🌐 Web query:
actions-rs/toolchain deprecated GitHub Actions💡 Result:
actions-rs/toolchain is effectively deprecated/unmaintained: it’s referenced by projects as “unmaintained” and people have moved away from it; additionally the broader actions-rs organization repositories were archived (read-only) starting Oct 13, 2023. What to do instead (recommended). 1) Prefer using rustup directly (often no action is needed on GitHub-hosted runners). Pin your toolchain in rust-toolchain.toml (or rust-toolchain) and run cargo commands; rustup supports toolchain overrides via rust-toolchain.toml. 2) If you want a dedicated GitHub Action to install the toolchain, use actions-rust-lang/setup-rust-toolchain or dtolnay/rust-toolchain. Both are designed to install a Rust toolchain via rustup; dtolnay/rust-toolchain documents a concise “uses: dtolnay/rust-toolchain@” pattern. Practical examples. - Use rust-toolchain.toml in your repo (then just run cargo in CI; rustup will pick the pinned toolchain as overrides). - Or in workflow: - uses: actions-rust-lang/setup-rust-toolchain@v1 - uses: dtolnay/rust-toolchain@stable Notes. - The actions-rs/toolchain project also had issues unrelated to maintenance status (e.g., it surfaced GitHub Actions deprecation warnings like set-output / Node 12), and users report switching away from it to other actions.
Citations:
Replace all deprecated
actions-rsactions (CI blocker).Both
actions-rs/cargo@v1andactions-rs/toolchain@v1are archived and unmaintained since October 2023. They use deprecated Node.js 12 and will cause CI failures. Migrate to standard Rust tooling:actions-rs/toolchain@v1withdtolnay/rust-toolchain@stable(or pin specific version).actions-rs/cargo@v1with plainrun: cargo <command>steps after toolchain installation.Migration example
Apply to all 8 affected steps: toolchain install steps (18, 42, 57, 81) and cargo command steps (26, 64, 89, 96).
🧰 Tools
🪛 actionlint (1.7.12)
[error] 26-26: the runner of "actions-rs/cargo@v1" action is too old to run on GitHub Actions. update the action's version to fix this issue
(action)
🤖 Prompt for AI Agents