Skip to content

A way to require enum variant index being specified #666

Description

@nazar-pc

I think it would be valuable to make an enum variant index required in derived code.

The way to approach this might be to have a separate feature that would generate a compile-time warning when #[codec(index = something)] is missing.

This is important in blockchain environment where some data structures can evolve over time and refactoring can accidentally break things.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions