Skip to content

Conversation

@ia0
Copy link
Member

@ia0 ia0 commented Dec 23, 2025

The goal is to call the appropriate service based on the device version.

@ia0 ia0 added crate:cli Modifies the users CLI for:usability Improves users (and maintainers) life crate:protocol Modifies the platform protocol labels Dec 23, 2025
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a DynDevice wrapper to cache the device's protocol version upon connection. This is a great improvement for efficiency, as it avoids repeated calls to get the version. The changes are applied consistently across the cli-tools and example crates, replacing dyn Connection with the new DynDevice type. The removal of the PlatformApiVersion action simplifies the API.

I have one main point of feedback regarding the removal of a workaround for USB/IP devices, which might be a potential regression. Please see the detailed comment.

@ia0 ia0 force-pushed the api-version branch 2 times, most recently from 6255f5b to 70a91ea Compare December 24, 2025 11:26
@ia0 ia0 merged commit e9921db into google:main Dec 24, 2025
53 checks passed
@ia0 ia0 deleted the api-version branch December 24, 2025 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

crate:cli Modifies the users CLI crate:protocol Modifies the platform protocol for:usability Improves users (and maintainers) life

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants