-
Notifications
You must be signed in to change notification settings - Fork 174
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
Add initialisation macro to baked output #4014
Conversation
@@ -1,37 +1,18 @@ | |||
// @generated | |||
include!("macros.rs"); | |||
/// Implement `DataProvider<M>` on the given struct using the data |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question: where did these docs go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I decided these should not be public, only locally usable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you decide that? I thought we had decided that these macros were public API of the data crates. We just talked about that together earlier this week.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They haven't been public before, and impl_data_provider
doesn't work reexported because it cannot address the individual macros (well, it can, but then it wouldn't work locally anymore). AnyProvider can be implemented through the impl_dynamic_data_provider macro.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I see, this is impl_data_provider
. But shouldn't impl_any_provider
still work reexported? It doesn't reference macros, only types. impl_dynamic_data_provider
needs a list of keys.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it should if impl_data_provider
isn't. Remember we don't like AnyProvider
s anymore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
@@ -1,37 +1,18 @@ | |||
// @generated | |||
include!("macros.rs"); | |||
/// Implement `DataProvider<M>` on the given struct using the data |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
Fixes #3535