Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ApiKey additions #98

Merged
merged 2 commits into from
Dec 2, 2024
Merged

ApiKey additions #98

merged 2 commits into from
Dec 2, 2024

Conversation

rukai
Copy link
Collaborator

@rukai rukai commented Nov 21, 2024

This PR introduces 2 new pieces of functionality around ApiKey
These were required to implement a unit test in my project that compares the currently supported versions of the project against the supported versions of the kafka-protocol crate.

The additions are:

  • Add ApiKey::iterate_all() function, it returns an iterator that iterates once over every ApiKey variant
  • Add ApiKey::valid_versions(&self) method, it returns the valid versions that can be used with this ApiKey variant.

I'm happy to split the PR in two if one of these is easy to land and the other is not.

@rukai rukai force-pushed the version_api_improvements branch from 6990104 to 9a8d839 Compare November 21, 2024 04:40
@tychedelia tychedelia added this to the 0.14.0 milestone Dec 2, 2024
@tychedelia tychedelia added the enhancement New feature or request label Dec 2, 2024
protocol_codegen/src/generate_messages.rs Show resolved Hide resolved
src/messages.rs Outdated Show resolved Hide resolved
@tychedelia
Copy link
Owner

Oy, apologies, I think I may have merged these out of order and caused conflicts here. Messages needs to be regenerated.

@rukai rukai force-pushed the version_api_improvements branch from cffaf4d to 4f063db Compare December 2, 2024 04:51
@rukai rukai merged commit 46c99ae into tychedelia:main Dec 2, 2024
3 checks passed
@tychedelia
Copy link
Owner

@rukai lmk when you think we should do a release.

@rukai
Copy link
Collaborator Author

rukai commented Dec 2, 2024

I'm thinking now is a good time, I don't have any other changes in mind atm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants