Open failable opened 1 year ago
Yeah, this is currently not supported, due to technical limitations; see https://docs.rs/macro_rules_attribute/0.2.0/macro_rules_attribute/macro.derive_alias.html#caveat-regarding-derive-helpers-inert-made-attributes:
attribute_alias! {
#[apply(Serde)] = #[derive(::serde::Serialize, ::serde::Deserialize)];
}
#[apply(Serde)]
#[derive(Debug, Clone, Copy)]
struct Foo {
#[serde(rename = "$id")] // OK
pub id: i64,
}
Hi,
When I try to play with the library, I can not figure out how to make it work with
serde
. How can I fix this? Thanks.