Skip to content

Derive requires direct dependency on parity-scale-codec #68

@ascjones

Description

@ascjones

Discussed here and here.

Using the derive crate assumes a direct dependency on parity-scale-codec from the user's crate. Brainstorming ideas:

  • as Basti suggests do a reexport of the required types (see comment)
  • better error message if the crate is not present
  • add a feature "compact" or so to enable that functionality for which the codec types are required.
  • make the macro determine whether any compact fields are present and only import the lib.

This also feeds into the larger discussion about how these two libraries coexist, and to what extent they should be coupled.

/cc @Robbepop @dvdplm @ordian

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