Skip to content

chore: replace dfn_core type re-exports with direct ic_base_types imports#9129

Draft
jasonz-dfinity wants to merge 1 commit intomasterfrom
jasonz/dfn-core-reexport-cleanup
Draft

chore: replace dfn_core type re-exports with direct ic_base_types imports#9129
jasonz-dfinity wants to merge 1 commit intomasterfrom
jasonz/dfn-core-reexport-cleanup

Conversation

@jasonz-dfinity
Copy link
Contributor

Summary

  • Replace dfn_core::CanisterId and dfn_core::api::PrincipalId re-exports with direct ic_base_types:: imports across nervous_system and registry crates
  • Remove the dfn_core dependency entirely from nervous_system/canisters and nervous_system/common/test_utils (these were their only dfn_core usages)
  • Zero behavioral change: dfn_core literally re-exports these types from ic_base_types

Test plan

  • rustfmt — no changes needed
  • cargo clippy — passed clean
  • bazel build — all 10 directly affected targets pass
  • bazel test — 8 directly affected test targets pass (unit + integration)

🤖 Generated with Claude Code

…orts

`dfn_core::CanisterId` and `dfn_core::api::PrincipalId` are literal
re-exports of `ic_base_types::{CanisterId, PrincipalId}`. Replace them
with direct imports to reduce unnecessary dfn_core dependencies.

For `nervous_system/canisters` and `nervous_system/common/test_utils`,
these were the only dfn_core usages, so the dfn_core dependency is
removed entirely from those crates.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant