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

sp-api: Use macro to detect if frame-metadata is enabled #4117

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

bkchr
Copy link
Member

@bkchr bkchr commented Apr 14, 2024

While sp-api-proc-macro isn't used directly and thus, it should have the same features enabled as sp-api. However, I have seen issues around frame-metadata not being enabled for sp-api, but for sp-api-proc-macro. This can be prevented by using the frame_metadata_enabled macro from sp-api that ensures we have the same feature set between both crates.

While `sp-api-proc-macro` isn't used directly and thus, it should have
the same features enabled as `sp-api`. However, I have seen issues
around `frame-metadata` not being enabled for `sp-api`, but for
`sp-api-proc-macro`. This can be prevented by using the
`frame_metadata_enabled` macro from `sp-api` that ensures we have the
same feature set between both crates.
@bkchr bkchr added the R0-silent Changes should not be mentioned in any release notes label Apr 14, 2024
@bkchr bkchr requested a review from a team April 14, 2024 22:00
@michalkucharczyk michalkucharczyk requested a review from a team April 15, 2024 07:38
@bkchr bkchr added this pull request to the merge queue Apr 15, 2024
Merged via the queue into master with commit d1b0ef7 Apr 15, 2024
139 of 143 checks passed
@bkchr bkchr deleted the bkchr-sp-api-frame-metadata branch April 15, 2024 08:38
bkchr added a commit that referenced this pull request May 31, 2024
While `sp-api-proc-macro` isn't used directly and thus, it should have
the same features enabled as `sp-api`. However, I have seen issues
around `frame-metadata` not being enabled for `sp-api`, but for
`sp-api-proc-macro`. This can be prevented by using the
`frame_metadata_enabled` macro from `sp-api` that ensures we have the
same feature set between both crates.
EgorPopelyaev pushed a commit that referenced this pull request May 31, 2024
While `sp-api-proc-macro` isn't used directly and thus, it should have
the same features enabled as `sp-api`. However, I have seen issues
around `frame-metadata` not being enabled for `sp-api`, but for
`sp-api-proc-macro`. This can be prevented by using the
`frame_metadata_enabled` macro from `sp-api` that ensures we have the
same feature set between both crates.
bkchr added a commit that referenced this pull request Jul 4, 2024
While `sp-api-proc-macro` isn't used directly and thus, it should have
the same features enabled as `sp-api`. However, I have seen issues
around `frame-metadata` not being enabled for `sp-api`, but for
`sp-api-proc-macro`. This can be prevented by using the
`frame_metadata_enabled` macro from `sp-api` that ensures we have the
same feature set between both crates.
bkchr added a commit that referenced this pull request Jul 5, 2024
While `sp-api-proc-macro` isn't used directly and thus, it should have
the same features enabled as `sp-api`. However, I have seen issues
around `frame-metadata` not being enabled for `sp-api`, but for
`sp-api-proc-macro`. This can be prevented by using the
`frame_metadata_enabled` macro from `sp-api` that ensures we have the
same feature set between both crates.
bkchr added a commit that referenced this pull request Jul 10, 2024
While `sp-api-proc-macro` isn't used directly and thus, it should have
the same features enabled as `sp-api`. However, I have seen issues
around `frame-metadata` not being enabled for `sp-api`, but for
`sp-api-proc-macro`. This can be prevented by using the
`frame_metadata_enabled` macro from `sp-api` that ensures we have the
same feature set between both crates.
bkchr added a commit that referenced this pull request Jul 18, 2024
While `sp-api-proc-macro` isn't used directly and thus, it should have
the same features enabled as `sp-api`. However, I have seen issues
around `frame-metadata` not being enabled for `sp-api`, but for
`sp-api-proc-macro`. This can be prevented by using the
`frame_metadata_enabled` macro from `sp-api` that ensures we have the
same feature set between both crates.
bkchr added a commit that referenced this pull request Jul 18, 2024
While `sp-api-proc-macro` isn't used directly and thus, it should have
the same features enabled as `sp-api`. However, I have seen issues
around `frame-metadata` not being enabled for `sp-api`, but for
`sp-api-proc-macro`. This can be prevented by using the
`frame_metadata_enabled` macro from `sp-api` that ensures we have the
same feature set between both crates.
bkchr added a commit that referenced this pull request Jul 18, 2024
While `sp-api-proc-macro` isn't used directly and thus, it should have
the same features enabled as `sp-api`. However, I have seen issues
around `frame-metadata` not being enabled for `sp-api`, but for
`sp-api-proc-macro`. This can be prevented by using the
`frame_metadata_enabled` macro from `sp-api` that ensures we have the
same feature set between both crates.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R0-silent Changes should not be mentioned in any release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants