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
as discussed in nrxus/faux#58 and brought forward by @nrxus, it would be nice if #[derive(Constructor)] could support arbitrary attributes. That way, we could use it in conjunction with faux.
#[cfg_attr(test, faux::create)]#[derive(Constructor)]// when in test, make the `impl` block generated by `derive_more::Constructor` forward a custom attribute#[cfg_attr(test, constructor(forward = "faux::methods"))]structFoo{bar:Bar,}
The text was updated successfully, but these errors were encountered:
Okay, so if I understand correctly, you want to put an attribute on the generated impl. That does seem useful. forward really isn't the right name though, because that already has a different meaning within derive_more. Something like attr seems a better choice for the name. Feel free to create a PR that implements this.
Hi,
as discussed in nrxus/faux#58 and brought forward by @nrxus, it would be nice if
#[derive(Constructor)]
could support arbitrary attributes. That way, we could use it in conjunction withfaux
.@nrxus proposed the following approach:
The text was updated successfully, but these errors were encountered: