Skip to main content

derive

Attribute Macro derive 

Source
#[derive]
Expand description

Special version of #[derive(..)] macro. Works just like the standard one, except it will de-duplicate the derives expanded from Config and explicit ones.

Thus declaration such as #[setty::derive(Config, Clone, serde::Deserialize)] will always derive Clone and Deserialize even if those are not configured via top-level features, and will not duplicate implementations if those features were enabled.