Skip to content

Force default attribute on enums when Default derive is enabled #43

@kossnocorp

Description

@kossnocorp

Right now, Default is not derived at all, and an attempt to enable it via configuration will result in incorrect Rust code being generated. The default enum variant must be annotated with #[default] to make it work. Similarly, Genotype should accept this attribute and propagate it to Rust.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DXDeveloper experience improvementsFeatureNew featuresPracticalSomething that is needed for a real-world projectTarget: RustRust code generation

    Projects

    Status

    Shipped

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions