-
-
Notifications
You must be signed in to change notification settings - Fork 794
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
The attribute serde
is currently unknown to the compiler
#1261
Comments
The stabilisation of this feature is being tracked here: rust-lang/rust#29642 |
rust-lang/rust#29642 is a different feature. Attributes in custom derive have been stable since 1.15.0. Check if you missed any steps on this checklist: https://serde.rs/derive.html. |
I took all the steps on the steplist, derive is working fine. Only when adding an attribute as described in the doc it requires nightly, for example:
Is this supposed to work on stable if you set up the derive steps correctly? |
Can you share the definition of the struct that contains |
serde
is currently unknown to the compiler
Your struct is missing a |
I've been trying to use attributes on Rust stable 1.26.0, but the compiler won't allow it:
The documentation on https://serde.rs/attributes.html says:
This statement seems incorrect. Or am I misunderstanding something?
The text was updated successfully, but these errors were encountered: