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

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.
This commit is contained in:
Bastian Köcher authored and GitHub committed 2024-04-15 08:11:51 +00:00
1 parent 6acf4787e1
commit d1b0ef76a8
8 files changed
+22 -27

No files matched your search

+1 -1
View File
@@ -68,4 +68,4 @@ std = [
disable-logging = ["log/max_level_off"]
# Do not report the documentation in the metadata.
no-metadata-docs = ["sp-api-proc-macro/no-metadata-docs"]
frame-metadata = ["sp-api-proc-macro/frame-metadata", "sp-metadata-ir"]
frame-metadata = ["sp-metadata-ir"]