Skip to content

Support feature-gated rust attributes #2801

@teh-cmc

Description

@teh-cmc

Consider e.g.:

"attr.rust.derive": "::serde::Serialize, ::serde::Deserialize",

This should only be active if the serde feature is enabled, i.e.

#[cfg_attr(feature = "serde", derive("::serde::Serialize, ::serde::Deserialize"))]

rather than merely

#[derive("::serde::Serialize, ::serde::Deserialize")]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions