Skip to content

[Bug] Rust generation: Implement the serialize trait correctly for the TupleArray#60

Description

@MathieuDutSik

馃悰 Bug

The serialize trait is not correctly implemented for generated code in rust.

To reproduce

The following code does not pass

Signature:
  NEWTYPESTRUCT:
    TUPLEARRAY:
      CONTENT: U8
      SIZE: 64

The generated rust code is

#[derive(Clone, Debug, PartialEq, PartialOrd, Serialize, Deserialize)]
pub struct Signature(pub [u8; 64]);

and it does not compile since there is no serialization/deserialization implementations for [u8; 64].

I think here

Expected Behavior

I think implementing the trait in the generated code is the way forward.

System information

The bug is generic.

Additional context

None.

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions