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
Support adding an arbitrary attribute on top of Constructor
impl
#336
Comments
Can you clarify what code this would generate if the test feature is enabled? Is this request similar to this one? #102 |
Basically, we would have something like this as a result: #[cfg_attr(test, faux::methods)]
impl Foo {
fn new(bar: Bar) -> Self {
Self { bar }
}
} |
Okay, so if I understand correctly, you want to put an attribute on the generated |
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: