Skip to content

chore: add ic-xrc-types to workspace dependencies#9443

Draft
jasonz-dfinity wants to merge 2 commits intomasterfrom
jason/add-ic-xrc-types-to-workspace
Draft

chore: add ic-xrc-types to workspace dependencies#9443
jasonz-dfinity wants to merge 2 commits intomasterfrom
jason/add-ic-xrc-types-to-workspace

Conversation

@jasonz-dfinity
Copy link
Contributor

@jasonz-dfinity jasonz-dfinity commented Mar 17, 2026

Why

Several crates pin ic-xrc-types individually at various versions (1.0.0, 1.1.0). The Bazel side already pins ^1.2.0 in rust.MODULE.bazel. This consolidates the Cargo side to match.

What

  • Added ic-xrc-types = "1.2.0" to [workspace.dependencies] in the root Cargo.toml
  • Switched all 6 crates (including xrc_mock) from inline version pins to { workspace = true }

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR centralizes the ic-xrc-types dependency version by moving several crates from an inline pinned version to using the workspace-managed dependency, and adds ic-xrc-types to the workspace dependency list in the root Cargo.toml.

Changes:

  • Switched multiple rs/* crates from ic-xrc-types = "1.0.0" to ic-xrc-types = { workspace = true }.
  • Added ic-xrc-types = "1.0.0" under [workspace.dependencies] in the root Cargo.toml.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
rs/tests/testnets/Cargo.toml Uses workspace-managed ic-xrc-types instead of a crate-local pinned version.
rs/nns/test_utils/Cargo.toml Uses workspace-managed ic-xrc-types instead of a crate-local pinned version.
rs/nns/integration_tests/Cargo.toml Uses workspace-managed ic-xrc-types instead of a crate-local pinned version.
rs/nns/cmc/Cargo.toml Uses workspace-managed ic-xrc-types instead of a crate-local pinned version.
rs/nervous_system/integration_tests/Cargo.toml Uses workspace-managed ic-xrc-types instead of a crate-local pinned version.
Cargo.toml Adds ic-xrc-types to [workspace.dependencies] to support workspace-based dependency declarations.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Cargo.toml Outdated
ic-transport-types = { version = "0.45.0" }
ic-utils = { version = "0.45.0", features = ["raw"] }
ic-vetkeys = "0.6.0"
ic-xrc-types = "1.0.0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants