Skip to content

Conversation

@lklimek
Copy link
Contributor

@lklimek lklimek commented Sep 3, 2025

Issue being fixed or feature implemented

Dashcore v0.40-dev requires newer rust version

What was done?

Update rust to 1.89

How Has This Been Tested?

GHA + cargo build

Breaking Changes

New Rust required to build, but we don't consider it breaking

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have added "!" to the title and described breaking changes in the corresponding section if my code contains any
  • I have made corresponding changes to the documentation if needed

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

Summary by CodeRabbit

  • Chores

    • Standardized the Rust toolchain to version 1.89 across the workspace to ensure consistent builds.
    • Applied a minor formatting tweak (trailing comma) with no functional impact.
  • Documentation

    • Updated README prerequisites to require Rust 1.89+ for the wasm32 target; commands remain the same.
    • Note: If you build from source, please update your local Rust toolchain to 1.89 to avoid build issues.

@lklimek lklimek added this to the v2.1 milestone Sep 3, 2025
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 3, 2025

Walkthrough

Bumps the Rust toolchain/workspace version from 1.85 to 1.89 across Cargo.toml, rust-toolchain.toml, and README.md, and adds a trailing comma to the workspace members array in Cargo.toml.

Changes

Cohort / File(s) Summary of changes
Toolchain version bump
Cargo.toml, rust-toolchain.toml, README.md
Updated Rust version references from 1.85 to 1.89 (workspace.package rust-version, toolchain channel, README prerequisites).
Cargo formatting
Cargo.toml
Added a trailing comma to the last entry in [workspace].members.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

Suggested labels

cleanup

Suggested reviewers

  • QuantumExplorer
  • shumkov

Poem

A hop, a bump—version winds align,
From 1.85 to 1.89 we shine.
Commas trail like footprints light,
Toolchains tuned, the build feels right.
Thump-thump—my paws approve the line! 🐇✨

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch deps/rust-1.89

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore or @coderabbit ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (2)
rust-toolchain.toml (1)

1-5: Consider adding rustfmt/clippy components for smoother onboarding

Many contributors rely on them; adding components avoids “component not available” hiccups in CI/local.

Apply if desired:

 [toolchain]
 # Rust version the same as in /README.md
 channel = "1.89"

-targets = ["wasm32-unknown-unknown"]
+targets = ["wasm32-unknown-unknown"]
+components = ["rustfmt", "clippy"]
README.md (1)

53-53: Doc bump to Rust 1.89 is consistent; tiny wording tweak recommended

Since rust-toolchain.toml pins 1.89.x, consider clarifying users don’t need to manage versions manually.

-  - [rust](https://www.rust-lang.org/tools/install) v1.89+, with wasm32 target (`rustup target add wasm32-unknown-unknown`)
+  - [rustup](https://www.rust-lang.org/tools/install) (repo pins Rust 1.89 via rust-toolchain); add wasm32 target (`rustup target add wasm32-unknown-unknown`)
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 23125f8 and 1bcc7a6.

📒 Files selected for processing (3)
  • Cargo.toml (1 hunks)
  • README.md (1 hunks)
  • rust-toolchain.toml (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2024-10-18T15:39:51.172Z
Learnt from: lklimek
PR: dashpay/platform#2254
File: packages/rs-sdk/src/sdk.rs:585-585
Timestamp: 2024-10-18T15:39:51.172Z
Learning: The 'platform' project uses Rust version 1.80, so code in 'packages/rs-sdk' can use features available in Rust 1.80, such as the `abs_diff()` method.

Applied to files:

  • Cargo.toml
🪛 LanguageTool
README.md

[grammar] ~53-~53: There might be a mistake here.
Context: ...stup target add wasm32-unknown-unknown`) - [protoc - protobuf compiler](https://gith...

(QB_NEW_EN)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
  • GitHub Check: Build Docker images (Dashmate helper, dashmate-helper, dashmate-helper) / Build Dashmate helper image
  • GitHub Check: Build Docker images (DAPI, dapi, dapi) / Build DAPI image
  • GitHub Check: Build Docker images (Drive, drive, drive-abci) / Build Drive image
  • GitHub Check: Build JS packages / Build JS
  • GitHub Check: Rust crates security audit
🔇 Additional comments (2)
rust-toolchain.toml (1)

3-3: Toolchain bump to 1.89 looks good

Matches README/Cargo changes.

Cargo.toml (1)

37-38: Trailing comma in workspace members is fine

No functional impact; aligns with common formatting.


rust-version = "1.85"

rust-version = "1.89"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

MSRV raised to 1.89 — verify CI and per-crate overrides

Ensure CI/tooling (e.g., Docker images, actions, Makefiles) don’t pin older Rust, and that no crate overrides rust-version inconsistently.

Run to spot lingering pins:


🏁 Script executed:

#!/bin/bash
# Find old pins/usages
rg -nP '\b1\.85\b|\bstable-1\.85\b|rustc 1\.85' -g '!**/target/**' -S

# List any per-crate rust-version overrides
rg -nP '^\s*rust-version\s*=\s*".+?"' -g '!**/target/**' -S

# Check CI/tooling references
fd -H tests.yml .github | xargs rg -nP '\b(1\.85|1\.89)\b' -S
fd -H Dockerfile | xargs rg -nP '\b(1\.85|1\.89)\b' -S

Length of output: 456


Per-crate MSRV override needs update
packages/wasm-drive-verify/Cargo.toml (line 6) still pins rust-version = "1.74" — bump to "1.89" or remove the override to match the workspace MSRV. No CI or Dockerfile references to 1.85 remain.

🤖 Prompt for AI Agents
In packages/wasm-drive-verify/Cargo.toml around line 6, the per-crate MSRV is
pinned to rust-version = "1.74" which conflicts with the workspace MSRV of 1.89;
update that rust-version entry to "1.89" (or remove the rust-version override
entirely) so the crate matches the workspace MSRV, and scan other crate
Cargo.toml files to ensure no remaining per-crate overrides still reference
older Rust versions.

@QuantumExplorer QuantumExplorer merged commit 734c9aa into v2.1-dev Sep 3, 2025
15 of 17 checks passed
@QuantumExplorer QuantumExplorer deleted the deps/rust-1.89 branch September 3, 2025 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants