Skip to content

Move API-exposed types into dpd-types-versions - #343

Open
taspelund wants to merge 1 commit into
mainfrom
trey/dpd-api-escapes
Open

Move API-exposed types into dpd-types-versions#343
taspelund wants to merge 1 commit into
mainfrom
trey/dpd-api-escapes

Conversation

@taspelund

Copy link
Copy Markdown
Contributor

Summary

  • move the remaining DPD API wire types into the version module where each was introduced
  • make dpd-types, common, and aal compatibility facades over dpd-types-versions
  • remove non-version type dependencies from dpd-api and convert transceiver-controller values at the DPD runtime boundary

This is a refactor only; all blessed API documents remain unchanged.

Testing

  • cargo test -p dpd-types-versions -p dpd-api
  • cargo clippy -p dpd-types-versions -p dpd-types -p dpd-api -p common -p aal --all-targets
  • cargo clippy -p dpd --all-targets --features tofino_stub
  • cargo run --package dendrite-dropshot-apis --bin dendrite-dropshot-apis -- check (all 12 documents fresh)

@taspelund
taspelund force-pushed the trey/dpd-api-escapes branch from fce91ce to 87d342e Compare August 18, 2026 16:05
@taspelund taspelund self-assigned this Aug 18, 2026
@taspelund taspelund added the rust Pull requests that update rust code label Aug 18, 2026
@taspelund
taspelund force-pushed the trey/dpd-api-escapes branch from 87d342e to 7d542d5 Compare August 18, 2026 17:25

@sunshowers sunshowers left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks great, just a few comments.

Comment thread dpd-types/versions/src/initial/port.rs
Comment thread dpd-types/versions/src/impls/network.rs Outdated
Comment thread dpd-types/versions/src/latest.rs Outdated
Define the remaining API wire types in their introduction-version
modules, and make dpd-types, common, and aal compatibility re-export
layers. Keep runtime/controller types out of the API crate by converting
transceiver values at the DPD boundary.

Signed-off-by: Trey Aspelund <trey@oxidecomputer.com>
@taspelund
taspelund force-pushed the trey/dpd-api-escapes branch from 7d542d5 to 679eab5 Compare August 18, 2026 18:28
@taspelund

Copy link
Copy Markdown
Contributor Author

Thanks @sunshowers, all items addressed!

@taspelund
taspelund requested a review from sunshowers August 18, 2026 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants