You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#[derive(Debug, Serialize, Deserialize)]
#[derive(Extract)]
#[derive(Response)] // LINE 3
pub struct Example {
#[prost(string, tag="1")] // LINE 5
pub data: String
}
with this error message:
error[E0658]: The attribute prost is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
--> src/logic.rs:89:5
|
89 | #[prost(string, tag="1")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
And
If we comment LINE 3, it compiles fine.
If we comment LINE 5, it compiles fine.
That implies Response doesn't work when prost is present.
The text was updated successfully, but these errors were encountered:
Just ran into this with diesel's Insertable derive macro as well. The #[table_name = "..."] attribute suddenly becomes unknown and wont compile. To get around this I manually derived Serialize onto the base struct, created a wrapper struct and had to do
Found out the same thing that serde() don't work and you need to manually add Serialize and/or Deserialize to the derives. Should we actually update the docs or there is a bug here?
The following code fails to compile:
with this error message:
And
LINE 3
, it compiles fine.LINE 5
, it compiles fine.That implies
Response
doesn't work whenprost
is present.The text was updated successfully, but these errors were encountered: